[FFmpeg-user] "Packet header is not contained in global metadata" when segmenting and encoding x264

Werner Robitza werner.robitza at gmail.com
Tue Jul 29 10:42:09 CEST 2014


On Wed, Jul 23, 2014 at 4:02 PM, Christian Ebert <blacktrash at gmx.net> wrote:
> If it's about avoiding intermediate files, encode to mpegts
> directly and pipe it to the segmenter:
>
> ffmpeg -i input.mp4 -f mpegts -c:a copy -c:v libx264 - | \
> ffmpeg -i - -c copy -map 0 -f segment -segment_time 5 out%05d.ts

That wouldn't work for me, for some reason, but I've found out that
you simply have to use ssegment instead of segment.

The error message you get when not using ssegment is misleading
though, because it tells you to use the bitstream filter (even when
it's there).


More information about the ffmpeg-user mailing list