DeckLink output --enable-decklink

Website, builds, or other suggestions.
laurb
Posts: 4
Joined: Tue Dec 02, 2014 6:33 am

Re: DeckLink output --enable-decklink

Post by laurb » Thu Dec 04, 2014 11:19 am

Ok, no error on -list_devices and no COM error.
But did you try to output something?
Lates zeranoe build (git-5fe026f) which include Jonathan's patch still not working for me :(

[decklink @ 02f7e980] Could not open output device from 'DeckLink SP'

No error with previous versions. Am I Doing Something Wrong? I try to play a 576i file...

best regards,
laurb

iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Thu Dec 04, 2014 1:09 pm

laurb wrote:Ok, no error on -list_devices and no COM error.
But did you try to output something?
Lates zeranoe build (git-5fe026f) which include Jonathan's patch still not working for me :(

[decklink @ 02f7e980] Could not open output device from 'DeckLink SP'

No error with previous versions. Am I Doing Something Wrong? I try to play a 576i file...

best regards,
laurb
Hi laurb,
Check your decklink drivers version and Blackmagic design Control panel settings!
I don't have problems with this build:

Code: Select all

D:\>ffmpegz.exe -i test_dv.avi -pix_fmt uyvy422 -f decklink "Intensity Pro"
ffmpeg version N-68199-g5fe026f Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec  3 2014 23:57:35 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutl
s --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libi
lbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
 --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-l
ibvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvi
d --enable-decklink --enable-zlib
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'test_dv.avi':
  Metadata:
    encoder         : Lavf56.15.101
    timecode        : 00:00:00:00
  Duration: 00:00:55.20, start: 0.000000, bitrate: 30347 kb/s
    Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 28820 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s
[decklink @ 0000000002c48300] Found Decklink mode 720 x 576 with rate 25.00(i)
Output #0, decklink, to 'Intensity Pro':
  Metadata:
    timecode        : 00:00:00:00
    encoder         : Lavf56.15.102
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.13.100 rawvideo
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc56.13.100 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo (native) -> rawvideo (native))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[decklink @ 0000000002c48300] Encoder did not produce proper pts, making some up.
frame= 1105 fps= 25 q=0.0 Lsize=N/A time=00:00:44.20 bitrate=N/A

jbalvarado
Posts: 50
Joined: Thu Oct 03, 2013 3:47 pm

Re: DeckLink output --enable-decklink

Post by jbalvarado » Thu Dec 04, 2014 6:20 pm

The missing *.idl files are now in the new msys2 update. Now I only wait of the okay from blackmagic that I am allow to give a download link to the include files from the sdk, then I can integrate decklink in my script.

BHamler
Posts: 3
Joined: Mon Mar 16, 2015 5:42 pm

Re: DeckLink output --enable-decklink

Post by BHamler » Mon Mar 16, 2015 6:17 pm

Did BMD allow to publish modified files and are those already in latest script?

jbalvarado
Posts: 50
Joined: Thu Oct 03, 2013 3:47 pm

Re: DeckLink output --enable-decklink

Post by jbalvarado » Thu Mar 19, 2015 9:55 am

Yes they allow me to use the needed files, not the complete sdk. The script you found here:
https://github.com/jb-alvarado/media-autobuild_suite
Be careful with the script, at the moment mplayer doesn't work, so better disable it.

BHamler
Posts: 3
Joined: Mon Mar 16, 2015 5:42 pm

Re: DeckLink output --enable-decklink

Post by BHamler » Fri Mar 20, 2015 3:24 pm

The script runs fine and the build is successful, but there seems to be some problem with input options for decklink (with -bm_channels & -bm_audiodepth).
E.g.:

Code: Select all

ffmpeg -bm_v210 1 -f decklink -i "DeckLink 4K [email protected]" -acodec copy -vcodec copy output.avi
works fine, but

Code: Select all

ffmpeg -bm_audiodepth 32 -f decklink -i "DeckLink 4K [email protected]" -acodec copy -vcodec copy output.avi
and

Code: Select all

ffmpeg -bm_channels 8 -f decklink -i "DeckLink 4K [email protected]" -acodec copy -vcodec copy output.avi
both give this type of error:

Code: Select all

Unrecognized option 'bm_channels'.
Error splitting the argument list: Option not found
[I posted here as it is the last active thread with decklink.] Any ideas?

BHamler
Posts: 3
Joined: Mon Mar 16, 2015 5:42 pm

Re: DeckLink output --enable-decklink

Post by BHamler » Mon Mar 23, 2015 10:11 am

UPDATE:
-bm_audiodepth & -bm_channels are not implemented yet. The documentation is wrong.

jbalvarado
Posts: 50
Joined: Thu Oct 03, 2013 3:47 pm

Re: DeckLink output --enable-decklink

Post by jbalvarado » Mon Mar 23, 2015 8:19 pm

Good to know, thank you!

stehohrhase
Posts: 2
Joined: Mon Apr 25, 2016 2:04 pm

Re: DeckLink output --enable-decklink

Post by stehohrhase » Mon Apr 25, 2016 2:26 pm

During searching i found this post. Are there any news? Is it possible to capture 8 Audio-Channels?

fffelix
Posts: 1
Joined: Thu Oct 27, 2016 10:56 pm

Re: DeckLink output --enable-decklink

Post by fffelix » Fri Oct 28, 2016 6:19 pm

Unfortunately the Zeranoe binaries are skipping some output modes like 1080i50, 108030i in playback mode.
It will always take the 1st mode available for the framerate you have set in commandline.

I would like to compile a version with fixed output mode like 1080i50 or 1080i30.

Can someone explain where and how to change the sourcecode to fix the output mode to a specific value?
Or anyone here who could fix or patch this issue? Maybe the best way would be to have a ffmpeg version which could set the playback output mode like in capture mode with -f decklink 'Intensity [email protected]'. 11 would be the mode for output.

Appreciate any help.

Post Reply
'