FFMPEG & Decklink Delay

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

bounce

  • Posts: 3
  • Joined: Sat Sep 28, 2019 3:01 pm
  • Real Name: Travis Brocato

FFMPEG & Decklink Delay

PostSat Jun 27, 2020 9:50 pm

I have noticed when decoding with a decklink card using ffmpeg there is a noticeable 4 second delay before video starts playing in linux. Is there any way to improve this? Since we are using live streaming... The delay makes it unbearable for our project.

I know it is the decoder because another decoder shows at most a 2 second delay. Any ideas, suggestions?

I saw something like bmdtools is an option and its possible to pipe the output into that? Is this an option for linux? Anybody tried this?

Can any developers weigh in on a possible remedy?
Offline

deadsound

  • Posts: 3
  • Joined: Fri Jul 17, 2020 6:02 am
  • Real Name: Walker Keene

Re: FFMPEG & Decklink Delay

PostFri Jul 17, 2020 6:05 am

We have tried the -probesize 32 -analyzeduration 50 and -fflags nobuffer. We can get it sub 2 seconds, but it is inconsistent and next time you start it it will be at 4 again. Also looking for answers...gstreamer we can get sub 1 second video performance...
Offline

jzampieron

  • Posts: 2
  • Joined: Tue Jul 28, 2020 12:40 pm
  • Real Name: Jeffrey Zampieron

Re: FFMPEG & Decklink Delay

PostTue Jul 28, 2020 1:03 pm

Have you tried other capture devices? How are you streaming?

There are many factors which influence video latency, including compression codec settings, jitter buffers and similar.

Without understanding your entire setup it will be hard to guide your debugging.
Offline

deadsound

  • Posts: 3
  • Joined: Fri Jul 17, 2020 6:02 am
  • Real Name: Walker Keene

Re: FFMPEG & Decklink Delay

PostThu Jul 30, 2020 3:58 pm

I am using decklink quad 2 for output device...but have tried decklink 8k pro and others with the same result using FFMPEG.
Example code:
ffmpeg -re -rtsp_transport tcp -i rtsp://xxxxxx/live/test -ar 48000 -probesize 32 -analyzeduration 40 -rtbufsize 0 -f decklink -pix_fmt uyvy422 -s 1920x1080 88:a3f351e3:00000000
Using OBS NVNEC @ 60 fps as streaming source to nimble server.... other encoder side settings do not have an effect as we get 4 seconds of latency...

I have also tried rtmp streams and it has basically the same result.

I can use the same hardware and OBS streaming config and when using gstreamer we can get sub second delay. Also using OBS built in tools we get very low latency when using the BM decklink...it seems lots of people have the issue when doing a google search for FFMPEG and decklink...just have not found the soultion. thx

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 7 guests