Page 1 of 1

DeckLink SDI output on Ubuntu

PostPosted: Mon Apr 15, 2024 3:41 am
by xiaocaocao
Test Environment:
os: Ubuntu 22.04 LTS
driver: desktopvideo_12.4.1a15
decklink device: DeckLink 8K Pro

My program execution flow:
1) EnableVideoOutput
2) call ScheduleVideoFrame to preroll 3 frames
3) StartScheduledPlayback(0, 25000, 1.0)
4) Trigger ScheduledFrameCompleted callback

Most of the time,(99.9% of the time), the program runs well, but occasionally I find that the ScheduledFrameCompleted callback never triggers, no matter how long I wait.
Then when I call StopScheduledPlayback, ScheduledFrameCompleted triggers.

Once this problem occurs, even if I restart the process, it cannot be recovered, the problem remains.
Only when I restart the device, this problem will disappear (99% of the time).

After encountering this problem, I also tried using DisplayVideoFrameSync. As I kept calling this function to feed frames (25 fps), I observed no output, and the memory usage of the process kept increasing, which should mean that the decklink device buffered all the data and not sent it out.