Example demonstrating segmenting a video stream every X keyframes and saving it to disk
Submitted by xlinkz0
As __tim must surely be relieved that i finally achieved this and will not pester him so much about blocking probes ( atleast for a while.. ), I present to you my masterpiece, my greatest achievement since modifying the ffmpeg tool to be a function inside a library.
As the title says, this is a simple example that cuts a video stream ( i only tested the general principles on h264 and raw yuv streams ) into multiple files each 'numframes' key-frames.
I still don't know for sure why it works so I'll ask some questions here if anyone cares to answer..
Does the tee save the h264 header to be sent to new dynamic elements?
It doesn't lose frames right now from the tests i conducted but should i send FLUSH_START on the tee, block events on the tee's src-pad and only then link the new sink?