[FFmpeg-devel] Tee improvement - discussion

Jan Sebechlebsky sebechlebskyjan at gmail.com
Fri May 27 05:11:22 CEST 2016

Hi Nicolas,

On 05/26/2016 12:09 PM, Nicolas George wrote:
> But the "stick everything in threads" approach is flawed. Just think 
> about what will happen if the actual muxer is blocking on a write 
> while the application, seeing non-blocking behaviour, wants to close 
> it: how do you kill the blocked write? Regards 
If I understand it correctly, I think this will be handled quite smoothy 
- you don't have to kill the blocked write, the application has to call 
write_trailer anyway before closing the muxer, so I guess this is the 
place where tee will wait for the muxer's pending write operation to 
finish. So application will know, that after call to write_trailer all 
operations are finished.


More information about the ffmpeg-devel mailing list