DeckLink Duo 2 duplex_mode doesn't work

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

DeckLink Duo 2 duplex_mode doesn't work

Rik Roukens-2
Hi All,

I'm using a DeckLink Duo 2 card which supports 4 individual in or outputs,
but by default is set to Full duplex mode (input from sdi 1 is output on
sdi 3, input from sdi 2 is output on sdi 4).

I'm running Ubuntu Server 18.04 with the following ffmpeg build:

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

I can do recordings on DeckLink Duo (1) and DeckLink Duo (2) without any
problems.
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

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 @ 0x55ff0e2022c0] Found Decklink mode 1920 x 1080 with rate 25.00

[decklink @ 0x55ff0e2022c0] Cannot enable video input

DeckLink Duo (3): Input/output error

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.
I've also tried running it with -duplex_mode half -video_input sdi however
that doesn't seem to do it either.

I have been able to set the card to half duplex in the past using windows,
however, i don't want to use windows :)

Does anyone have any idea of what might be going wrong?

Thanks

Rik
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Moritz Barsnick
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Rik Roukens-2
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 <[hidden email]> 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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Mustafa Al Ani
Hi Rik,

I think the duplex mode is only supported in ports 1&2.

Apart from that, I have never been able to enable video input on 3&4, I
spoke with Blackmagic support but never got a useful answer. Never trust
what they write in their products descriptions.

Please let me know if you got video input on 3&4, I would very much like to
see it working.

Regards,
Mustafa
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Rik Roukens
Thanks for your response Mustafa, the cards are definitely capable of it,
as I've done it in windows.
perhaps you need to set the duplex mode on 1 and 2, which then opens up sdi
3&4 to be individually programmed.
I'll give that a go tomorrow, it sounds a bit strange, as it would mean
that you always have to run a command on input 1 and 2 before you are
'allowed' to use sdi input 3 and 4.

I'll report back tomorrow.

Rik


*Rik Roukens*Head of Broadcast Technology & Multimedia
Mobile & Whatsapp. +34 680839000
Skype. rikroukens
Twitter. @rroukens <https://twitter.com/rroukens>

*The Ocean Race. *
Muelle nº10 de Levante
Puerto de Alicante
03001 Alicante, Spain
*theoceanrace.com* <http://www.volvooceanrace.com/>


On Wed, 7 Aug 2019 at 19:48, Mustafa Al Ani <[hidden email]> wrote:

> Hi Rik,
>
> I think the duplex mode is only supported in ports 1&2.
>
> Apart from that, I have never been able to enable video input on 3&4, I
> spoke with Blackmagic support but never got a useful answer. Never trust
> what they write in their products descriptions.
>
> Please let me know if you got video input on 3&4, I would very much like to
> see it working.
>
> Regards,
> Mustafa
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

--










The information in this email and in any attachments is
confidential and may be privileged. If you are not the intended recipient,
please destroy this message, delete any copies held on your systems and
notify the sender immediately. You should not retain, copy or use this
email for any purpose, nor disclose all or any part of its contents to any
other person. Atlant Ocean Racing Spain SL, a company registered in Spain.
B76239177.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Rik Roukens-2
I couldn't help myself and just tried remotely, it appears I might have
gotten some part to work.
In one terminal, i run:

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

setting the duplex_mode of DeckLink Duo (1) to half duplex. This run just
fine. Then in a second terminal window I run:

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-cam2/output%03d.mp4

This also starts recording, However, since I'm not at the office, I can't
actually check.

Thinking a step further, when I run:

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

It gives me the following output:

[decklink @ 0x56122ec124c0] Cannot Autodetect input stream or No signal
DeckLink Duo (3): Input/output error

Which makes me slightly hopeful this might actually work tomorrow when I
plug an actual camera feed into DeckLink Duo (3).
Previously my errors have said can't enable video input, that's now gone,
right now it just doesn't detect any input (which is factual as no camera
is connected).

Let's see tomorrow, step by step I guess!

Thanks all so far. Any comments from people if they think this might work
or better ways are also appreciated!

Rik



On Wed, Aug 7, 2019 at 8:06 PM Rik Roukens <[hidden email]>
wrote:

> Thanks for your response Mustafa, the cards are definitely capable of it,
> as I've done it in windows.
> perhaps you need to set the duplex mode on 1 and 2, which then opens up sdi
> 3&4 to be individually programmed.
> I'll give that a go tomorrow, it sounds a bit strange, as it would mean
> that you always have to run a command on input 1 and 2 before you are
> 'allowed' to use sdi input 3 and 4.
>
> I'll report back tomorrow.
>
> Rik
>
>
> *Rik Roukens*Head of Broadcast Technology & Multimedia
> Mobile & Whatsapp. +34 680839000
> Skype. rikroukens
> Twitter. @rroukens <https://twitter.com/rroukens>
>
> *The Ocean Race. *
> Muelle nº10 de Levante
> Puerto de Alicante
> 03001 Alicante, Spain
> *theoceanrace.com* <http://www.volvooceanrace.com/>
>
>
> On Wed, 7 Aug 2019 at 19:48, Mustafa Al Ani <[hidden email]> wrote:
>
> > Hi Rik,
> >
> > I think the duplex mode is only supported in ports 1&2.
> >
> > Apart from that, I have never been able to enable video input on 3&4, I
> > spoke with Blackmagic support but never got a useful answer. Never trust
> > what they write in their products descriptions.
> >
> > Please let me know if you got video input on 3&4, I would very much like
> to
> > see it working.
> >
> > Regards,
> > Mustafa
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
> --
>
>
>
>
>
>
>
>
>
>
> The information in this email and in any attachments is
> confidential and may be privileged. If you are not the intended recipient,
> please destroy this message, delete any copies held on your systems and
> notify the sender immediately. You should not retain, copy or use this
> email for any purpose, nor disclose all or any part of its contents to any
> other person. Atlant Ocean Racing Spain SL, a company registered in Spain.
> B76239177.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Marton Balint
In reply to this post by Rik Roukens


On Wed, 7 Aug 2019, Rik Roukens wrote:

> Thanks for your response Mustafa, the cards are definitely capable of it,
> as I've done it in windows.
> perhaps you need to set the duplex mode on 1 and 2, which then opens up sdi
> 3&4 to be individually programmed.

Yeah, I think that is how I use all 4 inputs right now.

I wonder if this changes if you compile against 11.x SDK, since they
changed how the duplex mode is set up.

Probably this can be worked around from software, so ffmpeg could be smart
enough to enable half duplex mode even if the specified input is the
"slave" connector.

In any case, there is also the option of specifying the default duplex
mode (and saving it) with the control panel application, or its linux
counterpart. I believe in that case the duplex mode should simply work,
because that becomes the default mode...

Regards,
Marton
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Rik Roukens-2
Thanks for your reply Marton,

> Probably this can be worked around from software, so ffmpeg could be
smart
> enough to enable half duplex mode even if the specified input is the
> "slave" connector.

I agree, it feels like it should set the duplex mode by default when you
choose to output on DeckLink Duo (3) or (4).

> In any case, there is also the option of specifying the default duplex
> mode (and saving it) with the control panel application, or its linux
> counterpart. I believe in that case the duplex mode should simply work,
>because that becomes the default mode...

Thanks, I've considered installing a GUI just for that purpose, but I'd
really like to avoid that. If you have any good suggestion how to do the
above without installing ubuntu desktop, your advice is very welcome :)

Thanks again for your reply.

On Wed, Aug 7, 2019 at 8:59 PM Marton Balint <[hidden email]> wrote:

>
>
> On Wed, 7 Aug 2019, Rik Roukens wrote:
>
> > Thanks for your response Mustafa, the cards are definitely capable of it,
> > as I've done it in windows.
> > perhaps you need to set the duplex mode on 1 and 2, which then opens up
> sdi
> > 3&4 to be individually programmed.
>
> Yeah, I think that is how I use all 4 inputs right now.
>
> I wonder if this changes if you compile against 11.x SDK, since they
> changed how the duplex mode is set up.
>
> Probably this can be worked around from software, so ffmpeg could be smart
> enough to enable half duplex mode even if the specified input is the
> "slave" connector.
>
> In any case, there is also the option of specifying the default duplex
> mode (and saving it) with the control panel application, or its linux
> counterpart. I believe in that case the duplex mode should simply work,
> because that becomes the default mode...
>
> Regards,
> Marton
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: DeckLink Duo 2 duplex_mode doesn't work

Marton Balint


On Wed, 7 Aug 2019, Rik Roukens wrote:

> Thanks for your reply Marton,
>
>> Probably this can be worked around from software, so ffmpeg could be
> smart
>> enough to enable half duplex mode even if the specified input is the
>> "slave" connector.
>
> I agree, it feels like it should set the duplex mode by default when you
> choose to output on DeckLink Duo (3) or (4).
>
>> In any case, there is also the option of specifying the default duplex
>> mode (and saving it) with the control panel application, or its linux
>> counterpart. I believe in that case the duplex mode should simply work,
>> because that becomes the default mode...
>
> Thanks, I've considered installing a GUI just for that purpose, but I'd
> really like to avoid that. If you have any good suggestion how to do the
> above without installing ubuntu desktop, your advice is very welcome :)

Every setting is stored in /etc/blackmagic/BlackmagicPreferences.xml,
changing duplex mode there and rebooting (or maybe simply restarting the
helper daemon?) should probably do the trick.

Regards,
Marton
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".