[FFmpeg-devel] [PATCH]concatdec: measure duration when it is not available

Bodecs Bela bodecsb at vivanet.hu
Tue Feb 16 00:49:11 CET 2016



2016.02.16. 0:30 keltezéssel, Nicolas George írta:
> L'octidi 28 pluviôse, an CCXXIV, Bodecs Bela a écrit :
>> This patch is a bug fix for a problem I faced recently.
>> There are cases when duration info is not available. e.g. reading an
>> mpegts file via a fifo file. But for concatenation this info is
>> mandatory to adjust next file timestamps. So we need to measure it to
>> have this value.
> As far as I know and can seen in the code, lavf is supposed to be already
> doing that on its own. It would probably be better to find out why it does
> not happen in the case of piped MPEG-TS instead of fixing it in a single
> API user.
>
> Regards,
this problem also occurs if the input is a live hls stream via http or 
via hls+file protocol.
I thought it is a peculiarity of concat demuxer in case of non-seekable 
input items.
This patch is a workaroud for this.

bb

>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list