Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


Command to capture video from Decklink 4k Extreme HDMI port

Discussions about problems encountered using ffmpeg.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

Command to capture video from Decklink 4k Extreme HDMI port

Postby arkroan » Mon Aug 15, 2016 2:14 pm

I am trying to capture a video using ffmpeg, from the HDMI input port of the Blackmagic DeckLink 4K Extreme capture card in Ubuntu Linux.

As per the ffmpeg Documentation I have tried the following:
ffmpeg -f decklink -video_input 'hdmi' -i 'DeckLink 4K Extreme (1)@14' -acodec copy -vcodec copy ~/testCapture/card1_f14_hdmi.avi

but no matter what I do I always get this picture as a video.
Screenshot_1_rs.jpg
Screenshot_1_rs.jpg (2.07 KiB) Viewed 370 times


My ffmpeg version is :
Code: Select all
ffmpeg version git-2016-08-15-4899953 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib
--bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
--enable-decklink
--extra-cflags=-I/root/decklinkSDK/Blackmagic_DeckLink_SDK/Linux/include
--extra-ldflags=-L/root/decklinkSDK/Blackmagic_DeckLink_SDK/Linux/include
--enable-nonfree
libavutil      55. 28.100 / 55. 28.100
libavcodec     57. 51.102 / 57. 51.102
libavformat    57. 46.101 / 57. 46.101
libavdevice    57.  0.102 / 57.  0.102
libavfilter     6. 51.100 /  6. 51.100
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100


I have two of these cards as per the following:
Code: Select all
ffmpeg -f decklink -list_devices 1 -i dummy
.....
[decklink @ 0x2e9e440] Blackmagic DeckLink devices:
[decklink @ 0x2e9e440]    'DeckLink 4K Extreme (1)'
[decklink @ 0x2e9e440]    'DeckLink 4K Extreme (2)'


I am able to get a list of the supported formats with the following:
Code: Select all
ffmpeg -f decklink -list_formats 1 -i 'DeckLink 4K Extreme (1)'
...
[decklink @ 0x3f16440] Supported formats for 'DeckLink 4K Extreme (1)':
[decklink @ 0x3f16440]    1   720x486 at 30000/1001 fps (interlaced, lower field first)
[decklink @ 0x3f16440]    2   720x576 at 25000/1000 fps (interlaced, upper field first)
[decklink @ 0x3f16440]    3   1920x1080 at 24000/1001 fps
[decklink @ 0x3f16440]    4   1920x1080 at 24000/1000 fps
[decklink @ 0x3f16440]    5   1920x1080 at 25000/1000 fps
[decklink @ 0x3f16440]    6   1920x1080 at 30000/1001 fps
[decklink @ 0x3f16440]    7   1920x1080 at 30000/1000 fps
[decklink @ 0x3f16440]    8   1920x1080 at 25000/1000 fps (interlaced, upper field first)
[decklink @ 0x3f16440]    9   1920x1080 at 30000/1001 fps (interlaced, upper field first)
[decklink @ 0x3f16440]    10   1920x1080 at 30000/1000 fps (interlaced, upper field first)
[decklink @ 0x3f16440]    11   1920x1080 at 50000/1000 fps
[decklink @ 0x3f16440]    12   1920x1080 at 60000/1001 fps
[decklink @ 0x3f16440]    13   1920x1080 at 60000/1000 fps
[decklink @ 0x3f16440]    14   1280x720 at 50000/1000 fps
[decklink @ 0x3f16440]    15   1280x720 at 60000/1001 fps
[decklink @ 0x3f16440]    16   1280x720 at 60000/1000 fps
[decklink @ 0x3f16440]    17   2048x1080 at 24000/1001 fps
[decklink @ 0x3f16440]    18   2048x1080 at 24000/1000 fps
[decklink @ 0x3f16440]    19   2048x1080 at 25000/1000 fps
[decklink @ 0x3f16440]    20   3840x2160 at 24000/1001 fps
[decklink @ 0x3f16440]    21   3840x2160 at 24000/1000 fps
[decklink @ 0x3f16440]    22   3840x2160 at 25000/1000 fps
[decklink @ 0x3f16440]    23   3840x2160 at 30000/1001 fps
[decklink @ 0x3f16440]    24   3840x2160 at 30000/1000 fps
[decklink @ 0x3f16440]    25   4096x2160 at 24000/1001 fps
[decklink @ 0x3f16440]    26   4096x2160 at 24000/1000 fps
[decklink @ 0x3f16440]    27   4096x2160 at 25000/1000 fps
DeckLink 4K Extreme (1): Immediate exit requested


This card has 2x SDI inputs and 1x HDMI output.
How can I format the ffmpeg command in order to point it to the HDMI port input in order to capture the video?
arkroan
 
Posts: 1
Joined: Mon Aug 15, 2016 2:06 pm

Re: Command to capture video from Decklink 4k Extreme HDMI p

Postby vk2017 » Thu Apr 13, 2017 10:28 pm

This is a known problem with decklink cards. Use BlackmagicDesktop utility - Change your input to HDMI and you are good.
Give it a try.
vk2017
 
Posts: 2
Joined: Thu Jan 19, 2017 10:19 pm


Return to ffmpeg

Who is online

Users browsing this forum: No registered users and 5 guests