[FFmpeg-devel] [PATCH 2/4] lavf/segment: Mark output contexts as non-seekable

Michael Niedermayer michaelni at gmx.at
Sun Mar 29 16:13:57 CEST 2015

On Sat, Mar 28, 2015 at 07:25:19PM -0600, Rodger Combs wrote:
> This prevents sub-muxers from trying to seek back to the beginning of the
> whole stream, only to find themselves overwriting some video data in the
> current (often last) segment.
> ---
>  libavformat/segment.c | 3 +++
>  1 file changed, 3 insertions(+)

this breaks the case where each segment has its own header & trailer
and needs seeking, for example:

./ffmpeg -i matrixbench_mpeg2.mpg  -f segment -segment_time 2 -t 5 -an file%03d.mp4

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150329/f13e1f97/attachment.asc>

More information about the ffmpeg-devel mailing list