[FFmpeg-user] DeckLink Duo 2 duplex_mode doesn't work

Rik Roukens rikroukens at gmail.com
Wed Aug 7 19:31:42 EEST 2019


Hi Moritz,

Thanks for the swift response. Great observation, thanks! I had actually
already tried that before, but have just tried it again, it comes back with
a unsupported error.

ffmpeg -format_code Hp25 -f Decklink -duplex_mode half -i 'DeckLink Duo
(3)' -c:v libx264 -preset ultrafast -map 0 -segment_time 20s -f segment
/media/primary/rolrec_cam3/output%03d.mp4

ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers

  built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)

  configuration: --prefix=/home/ladmin/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags='-I/home/ladmin/ffmpeg_build/include
-I/home/ladmin/ffmpeg_sources/BMD_SDK/include'
--extra-ldflags=-L/home/ladmin/ffmpeg_build/lib --extra-libs='-lpthread
-lm' --bindir=/home/ladmin/bin --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --enable-nonfree --enable-decklink

  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100

[decklink @ 0x555c7fd31280] Unable to set duplex mode, because it is not
supported.
[decklink @ 0x555c7fd31280] Found Decklink mode 1920 x 1080 with rate 25.00
[decklink @ 0x555c7fd31280] Cannot enable video input
DeckLink Duo (3): Input/output error

This actually makes me doubt if I'm using one of our older cards (pretty
confident I'm not). But it certainly is strange, running;

BlackmagicFirmwareUpdater status

0: /dev/blackmagic/io0 [DeckLink Duo 2] 0xd5 OK
1: /dev/blackmagic/io2 [DeckLink Duo 2] 0xd5 OK
2: /dev/blackmagic/io1 [DeckLink Duo 2] 0xd5 OK
3: /dev/blackmagic/io3 [DeckLink Duo 2] 0xd5 OK

it does come back with the fact it is a Blackmagic DeckLink Duo 2

Checking the website also confirms the card is able to do it, quoting from
their webpage:
"DeckLink Duo 2 - PCIe capture and playback card with 4 *independent*
channels for SD and HD up to 1080p60."

I can't physically check right now as I was running the commands remotely
from home, but I will check the card tomorrow,
I'll also swap it out for another one of our cards to see if that works.

In the meantime, any more help is much appreciated.

Rik


On Wed, Aug 7, 2019 at 4:30 PM Moritz Barsnick <barsnick at gmx.net> wrote:

> Hi Rik,
> I don't have Decklink experience, but:
>
> On Wed, Aug 07, 2019 at 15:04:32 +0200, Rik Roukens wrote:
> > However, when I try to run the following recording command on DeckLink
> Duo
> > (3) or (4), it doesn't work:
> >
> > ffmpeg -format_code Hp25 -f Decklink -i 'DeckLink Duo (3)' -duplex_mode
> > half -c:v libx264 -preset ultrafast -map 0 -segment_time 20s -f segment
> > /media/primary/rolrec-cam2/output%03d.mp4
> [...]
> > [decklink @ 0x55ff0e2022c0] Cannot enable video input
> [...]
> > I do not understand what I'm doing wrong, according to the manual
> > <https://www.ffmpeg.org/ffmpeg-devices.html#decklink> you are supposed
> to
> > add -duplex_mode half to the command to set the card into half duplex
> mode
> > for the specified output.
>
> "-duplex_mode half" is an input option. In order for it to take effect,
> it must be placed *before* the "-i" to the decklink device.
>
> > Does anyone have any idea of what might be going wrong?
>
> Assuming that that option is missing for it to work, then my hint
> should fix it. Please let us know. ;-)
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list