[FFmpeg-devel] Advice on patch: Decklink flushes most buffered frames at end of video instead of displaying them
Matthew Rademaker
matthew at watchgood.com
Wed Mar 5 05:47:11 EET 2025
When playing out video to a Decklink SDI 4K card I've found that all/most
of the buffered frames get flushed instead of being displayed, essentially
shortening the video by the amount of pre-roll. I found a way to fix this
by adding a counter of outstanding frames, then delaying the call to
StopScheduledPlayback until all frames are returned.
I would submit this as a patch, but this is my first attempt at any ffmpeg
development so I wanted to see if this was the best way to fix this issue.
Are the outstanding frames already counted some other way? Is blocking via
sleep ideal? The StopScheduledPlayback has a pts parameter, which I assume
means that it should only stop playback at that time - should this not
prevent the issue I am seeing? Why would it flush the frames?
Again, I'm new to all this so more information would be great.
--
Matt
More information about the ffmpeg-devel
mailing list