[FFmpeg-user] Decklink question / what am I possibly doing wrong.

ffmpeg at dx9s.net ffmpeg at dx9s.net
Wed Sep 27 22:59:24 EEST 2017


Build a custom .deb set of packages based on 3.3.4:

     dx at x299:~/deb/decklink-ffmpeg-3.3.4$ ls -la
     total 22748
     drwxrwxr-x 2 dx dx    4096 Sep 24 18:27 .
     drwxrwxr-x 5 dx dx    4096 Sep 24 18:27 ..
     -rw-r--r-- 1 dx dx 1534142 Sep 24 18:22 ffmpeg_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx 1738990 Sep 24 18:22 ffmpeg-doc_3.3.4-1_all.deb
     -rw-r--r-- 1 dx dx 4466548 Sep 24 18:22 
libavcodec57_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx 4935942 Sep 24 18:22 
libavcodec-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   24536 Sep 24 18:22 
libavcodec-extra_3.3.4-1_all.deb
     -rw-r--r-- 1 dx dx 4469096 Sep 24 18:22 
libavcodec-extra57_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   91360 Sep 24 18:22 
libavdevice57_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx  108806 Sep 24 18:22 
libavdevice-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx  811824 Sep 24 18:22 
libavfilter6_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx  944842 Sep 24 18:22 
libavfilter-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   24530 Sep 24 18:22 
libavfilter-extra_3.3.4-1_all.deb
     -rw-r--r-- 1 dx dx  820978 Sep 24 18:22 
libavfilter-extra6_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx  921742 Sep 24 18:22 
libavformat57_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx 1101246 Sep 24 18:22 
libavformat-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   63048 Sep 24 18:22 
libavresample3_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   72302 Sep 24 18:22 
libavresample-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   24754 Sep 24 18:22 libav-tools_3.3.4-1_all.deb
     -rw-r--r-- 1 dx dx  192106 Sep 24 18:22 
libavutil55_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx  293600 Sep 24 18:22 
libavutil-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   60226 Sep 24 18:22 
libpostproc54_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   60948 Sep 24 18:22 
libpostproc-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   65412 Sep 24 18:22 
libswresample2_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx   77884 Sep 24 18:22 
libswresample-dev_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx  157836 Sep 24 18:22 
libswscale4_3.3.4-1_amd64.deb
     -rw-r--r-- 1 dx dx  174864 Sep 24 18:22 
libswscale-dev_3.3.4-1_amd64.deb


I've installed them and run the following command and get:

     dx at x299:~/capture$ ffmpeg -f decklink -video_input hdmi -audio_input 
embedded -bm_v210 1 -i 'DeckLink Studio 4K' -acodec copy -vcodec copy 
bleh.avi
     ffmpeg version 3.3.4-1 Copyright (c) 2000-2017 the FFmpeg developers
       built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
       configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared
       WARNING: library configuration mismatch
       avcodec     configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared --enable-version3 
--disable-doc --disable-programs --enable-libopencore_amrnb 
--enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc 
--enable-netcdf
       avfilter    configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared --enable-version3 
--disable-doc --disable-programs --enable-libopencore_amrnb 
--enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc 
--enable-netcdf
       libavutil      55. 58.100 / 55. 58.100
       libavcodec     57. 89.100 / 57. 89.100
       libavformat    57. 71.100 / 57. 71.100
       libavdevice    57.  6.100 / 57.  6.100
       libavfilter     6. 82.100 /  6. 82.100
       libavresample   3.  5.  0 /  3.  5.  0
       libswscale      4.  6.100 /  4.  6.100
       libswresample   2.  7.100 /  2.  7.100
       libpostproc    54.  5.100 / 54.  5.100
     [decklink @ 0x55ed6daa50e0] Cannot enable video input
     DeckLink Studio 4K: Input/output error


I can capture video no problem from the Media Express (in MJPEG, 8 or 10 
bit YUV or 10 bit RGB, each progressively larger files)... So it isn't 
an issue of input but what additionally I need to set. I saw for older 
ffmpeg code a format_code thing but that also didn't work.. so with my 
newest version:

     dx at x299:~/capture$ ffmpeg -f decklink -list_formats 1 -i 'DeckLink 
Studio 4K' dummy
     [...]
     [decklink @ 0x55c30d5f6000] Supported formats for 'DeckLink Studio 
4K':
        format_code   description
        ntsc      720x486 at 30000/1001 fps (interlaced, lower field 
first)
        pal       720x576 at 25000/1000 fps (interlaced, upper field 
first)
        23ps      1920x1080 at 24000/1001 fps
        24ps      1920x1080 at 24000/1000 fps
        Hp25      1920x1080 at 25000/1000 fps
        Hp29      1920x1080 at 30000/1001 fps
        Hp30      1920x1080 at 30000/1000 fps
        Hi50      1920x1080 at 25000/1000 fps (interlaced, upper field 
first)
        Hi59      1920x1080 at 30000/1001 fps (interlaced, upper field 
first)
        Hi60      1920x1080 at 30000/1000 fps (interlaced, upper field 
first)
        Hp50      1920x1080 at 50000/1000 fps
        Hp59      1920x1080 at 60000/1001 fps
        Hp60      1920x1080 at 60000/1000 fps
        hp50      1280x720 at 50000/1000 fps
        hp59      1280x720 at 60000/1001 fps
        hp60      1280x720 at 60000/1000 fps
        2d23      2048x1080 at 24000/1001 fps
        2d24      2048x1080 at 24000/1000 fps
        2d25      2048x1080 at 25000/1000 fps
        4k23      3840x2160 at 24000/1001 fps
        4k24      3840x2160 at 24000/1000 fps
        4k25      3840x2160 at 25000/1000 fps
        4k29      3840x2160 at 30000/1001 fps
        4k30      3840x2160 at 30000/1000 fps
        4d23      4096x2160 at 24000/1001 fps
        4d24      4096x2160 at 24000/1000 fps
        4d25      4096x2160 at 25000/1000 fps


I reran a capture as follows:

     dx at x299:~/capture$ ffmpeg -f decklink -video_input hdmi -audio_input 
embedded -bm_v210 1 -format_code Hp59 -i 'DeckLink Studio 4K' -acodec 
copy -vcodec copy bleh.avi
     ffmpeg version 3.3.4-1 Copyright (c) 2000-2017 the FFmpeg developers
       built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
       configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared
       WARNING: library configuration mismatch
       avcodec     configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared --enable-version3 
--disable-doc --disable-programs --enable-libopencore_amrnb 
--enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc 
--enable-netcdf
       avfilter    configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared --enable-version3 
--disable-doc --disable-programs --enable-libopencore_amrnb 
--enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc 
--enable-netcdf
       libavutil      55. 58.100 / 55. 58.100
       libavcodec     57. 89.100 / 57. 89.100
       libavformat    57. 71.100 / 57. 71.100
       libavdevice    57.  6.100 / 57.  6.100
       libavfilter     6. 82.100 /  6. 82.100
       libavresample   3.  5.  0 /  3.  5.  0
       libswscale      4.  6.100 /  4.  6.100
       libswresample   2.  7.100 /  2.  7.100
       libpostproc    54.  5.100 / 54.  5.100
     [decklink @ 0x5585cd9d31c0] Found Decklink mode 1920 x 1080 with 
rate 59.94
     [decklink @ 0x5585cd9d31c0] Frame received (#1) - No input signal 
detected - Frames dropped 1
     Guessed Channel Layout for Input Stream #0.0 : stereo
     Input #0, decklink, from 'DeckLink Studio 4K':
       Duration: N/A, start: 0.000000, bitrate: 2653092 kb/s
         Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
         Stream #0:1: Video: v210 (V210 / 0x30313256), yuv422p10le, 
1920x1080, 2651556 kb/s, 59.94 tbr, 1000k tbn, 1000k tbc
     Output #0, avi, to 'bleh.avi':
       Metadata:
         ISFT            : Lavf57.71.100
         Stream #0:0: Video: v210 (V210 / 0x30313256), yuv422p10le, 
1920x1080, q=2-31, 2651556 kb/s, 59.94 tbr, 600 tbn, 1000k tbc
         Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 
stereo, s16, 1536 kb/s
     Stream mapping:
       Stream #0:1 -> #0:0 (copy)
       Stream #0:0 -> #0:1 (copy)
     Press [q] to stop, [?] for help
     frame=  579 fps= 63 q=-1.0 Lsize= 3128852kB time=00:00:09.64 
bitrate=2657497.0kbits/s speed=1.04x


and it appears to be capturing.. I want to attempt to capture into a 
DNxHD format from the command line from the HDMI port as Resolve can't 
do that natively (apparently can only capture from SDI inputs from 
INSIDE the application... a real *sad trombone* if you ask me... Not 
having the ability to select input port.


     dx at x299:~/capture$ ffmpeg -format_code Hp59 -f decklink -video_input 
hdmi -audio_input embedded -bm_v210 0 -i 'DeckLink Studio 4K' -acodec 
pcm_s24le -vcodec dnxhd -vf 
scale=1920x1080,fps=60000/1001,format=yuv422p -b:v 220M out.mov
     ffmpeg version 3.3.4-1 Copyright (c) 2000-2017 the FFmpeg developers
       built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
       configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared
       WARNING: library configuration mismatch
       avcodec     configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared --enable-version3 
--disable-doc --disable-programs --enable-libopencore_amrnb 
--enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc 
--enable-netcdf
       avfilter    configuration: --prefix=/usr --extra-version=1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-decklink --enable-nonfree --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared --enable-version3 
--disable-doc --disable-programs --enable-libopencore_amrnb 
--enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc 
--enable-netcdf
       libavutil      55. 58.100 / 55. 58.100
       libavcodec     57. 89.100 / 57. 89.100
       libavformat    57. 71.100 / 57. 71.100
       libavdevice    57.  6.100 / 57.  6.100
       libavfilter     6. 82.100 /  6. 82.100
       libavresample   3.  5.  0 /  3.  5.  0
       libswscale      4.  6.100 /  4.  6.100
       libswresample   2.  7.100 /  2.  7.100
       libpostproc    54.  5.100 / 54.  5.100
     [decklink @ 0x55bdf8c4a220] Found Decklink mode 1920 x 1080 with 
rate 59.94
     [decklink @ 0x55bdf8c4a220] Frame received (#1) - No input signal 
detected - Frames dropped 1
     Guessed Channel Layout for Input Stream #0.0 : stereo
     Input #0, decklink, from 'DeckLink Studio 4K':
       Duration: N/A, start: 0.000000, bitrate: 1990203 kb/s
         Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
         Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422, 
1920x1080, 1988667 kb/s, 59.94 tbr, 1000k tbn, 1000k tbc
     Stream mapping:
       Stream #0:1 -> #0:0 (rawvideo (native) -> dnxhd (native))
       Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s24le (native))
     Press [q] to stop, [?] for help
     Output #0, mov, to 'out.mov':
       Metadata:
         encoder         : Lavf57.71.100
         Stream #0:0: Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p, 
1920x1080, q=2-1024, 220000 kb/s, 59.94 fps, 60k tbn, 59.94 tbc
         Metadata:
           encoder         : Lavc57.89.100 dnxhd
         Stream #0:1: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 
stereo, s32, 2304 kb/s
         Metadata:
           encoder         : Lavc57.89.100 pcm_s24le
     frame=  400 fps= 63 q=1.0 Lsize=  360283kB time=00:00:06.67 
bitrate=442275.2kbits/s speed=1.04x
     video:358400kB audio:1877kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 0.001779%


(also tried)
     dx at x299:~/capture$ ffmpeg -format_code Hp59 -f decklink -video_input 
hdmi -audio_input embedded -bm_v210 1 -i 'DeckLink Studio 4K' -acodec 
pcm_s24le -vcodec dnxhd -vf 
scale=1920x1080,fps=60000/1001,format=yuv422p10 -b:v 440M out.mov

getting color bars (unless I put -draw_bars 0 which doesn't draw bars on 
no-signal). Tried a few variations of 'Hp60' and so forth. WHEN it is 
capturing, the input source displays on the output so it is passing 
through the card. The newest SDK might have issues with ffmpeg and not 
capture the frame coming in. I also tried -bm_v210 1 and 
format=yuv722p10 and bitrate of 440M as well.

NOTE: I hear the audio from the source in the recording.. Even tho I see 
some source of 16 bit being mentioned in debug. So audio bit depth is a 
possible "issue" as well.

Hmmm.... getting much closer but still no cigar... or is the saying more 
like "light at end of tunnel" (and it's a train)..

If I capture via Media Express in 10 bit mode and transcode into DNxHD 
(440M 10 bit) it works fine.. just was hoping to get a nice command line 
scriptable way to capture live from HDMI input.

The important thing to note in output:

Code: Select all
     [decklink @ 0x55bdf8c4a220] Found Decklink mode 1920 x 1080 with 
rate 59.94
     [decklink @ 0x55bdf8c4a220] Frame received (#1) - No input signal 
detected - Frames dropped 1


Does that mean it just dropped ONE frame and gives up?! Need to bug the 
ffmpeg mailing list. Perhaps a setting in the card setting might fix 
this.

Back to poking around. If anybody has any input.

SUSPECT:  The BMD SDK files are too new and the DeckLink support might 
need updating !?

--Doug (dx9s)




More information about the ffmpeg-user mailing list