Page 1 of 1

DeckLink Quad - FMPEG - Output not interlaced

PostPosted: Thu Aug 09, 2018 9:32 am
by Sevenlive
Hello,

I have a problem with my Decklink Quad Card. I need an 1080i Output but it only sends out an progressive Output. Did anyone else had this problem and solved it? I use the following Command:

ffmpeg -i rtmp://127.0.0.1/3/$name -s 1920x1080 -r 25000/1000 -vf scale=interl=1 -ar 48000 -ac 2 -pix_fmt uyvy422 -f decklink "DeckLink SDI (3)"

My Input is an non interlaced RTMP Stream which should be converted in an interlaced Output. If i do the same thing with the Resoulution 720x576 it worked fine.

I use the following FFMPEG and SDK (Ubuntu 18.04):

ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --disable-yasm --enable-nonfree --enable-libx264 --enable-gpl --enable-decklink --extra-cflags=-I/$home/Blackmagic_DeckLink_SDK_10.11.1/Linux/include --extra-ldflags=-L/$home/Blackmagic_DeckLink_SDK_10.11.1/Linux/include

Thanks!

Re: DeckLink Quad - FMPEG - Output not interlaced

PostPosted: Thu Aug 09, 2018 6:41 pm
by dheitmueller@ltnglobal.com
Hello Sevenlive,

The issue is that ffmpeg doesn't preserve the interlaced status through the entire pipeline. Hence when it gets to the decklink output libavdevice module the module chooses 1080p/25 (i.e. PSF). I've got patches to preserve this info so the proper output mode is chosen, but they haven't made it upstream yet.

In the short term, you can use the DesktopVideo GUI to set enable PSF mode. This will cause the 1080p/25 to be output as 1080i/50, which will accomplish the same objective if your equipment is not using the payload identifier to know it's in PSF mode.

Unfortunately there also is not a way to force a specific output mode in the decklink libavdevice module, which is also on my TODO list.

Devin Heitmueller
LTN Global Communications

Re: DeckLink Quad - FMPEG - Output not interlaced

PostPosted: Wed Jan 23, 2019 6:00 pm
by Alberto Diaz
Hello Devin and Sevenlive

We are facing this exact same issue. Is there any way to activate the DeckLink interlaced output (Hi50) when using ffmpeg? Any news?

Activating the PSF output is not always an option (because of the 25p effect).

Thank you!

Re: DeckLink Quad - FMPEG - Output not interlaced

PostPosted: Fri Jan 25, 2019 1:46 pm
by Amnon Israely
I solve this by gstreamer with interlace field-pattern=2:2 pipe

Re: DeckLink Quad - FMPEG - Output not interlaced

PostPosted: Thu Jul 20, 2023 11:33 am
by OsniJr
Could u pls show me your pipeline ? I was also trying to do the same thing using ffmpeg and since i saw your post i changed to gstreamer but i can't make it work.

Here is the pipeline that i use for 1080p60:

gst-launch-1.0 rtmpsrc location=rtmp://127.0.0.1/live/test ! decodebin name=dec dec. ! queue ! videoconvert ! videorate ! video/x-raw, framerate=60/1 ! videoscale ! video/x-raw, width=1920, height=1080 ! decklinkvideosink device-number=3 mode=0 dec. ! queue ! audioconvert ! audioresample ! audio/x-raw, rate=48000 ! decklinkaudiosink device-number=3