[FFmpeg-devel] [PATCH 1/2] lavf/webvttenc: avio_flush() output
Marton Balint
cus at passwd.hu
Wed Jun 11 00:08:47 EEST 2025
On Tue, 10 Jun 2025, Andreas Rheinhardt wrote:
> Tomas Härdin:
>> Hi
>>
>> These two patches are a bit of a warmup for another pass at streamable
>> subtitles. FATE passes.
>>
>> /Tomas
>>
> Users who want this should set the generic flush_packets options
> appropriately.
Agreed, explicit avio_flush() in packet writer functions is a bad idea
because it flushes IO even on not latency critical outputs.
There is some magic in the flush_if_needed() function of mux.c, which by
default uses avio_write_marker() to flush after every packet for streaming
outputs only.
Regards,
Marton
More information about the ffmpeg-devel
mailing list