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

Werner Robitza werner.robitza at gmail.com
Wed Jul 23 13:53:51 CEST 2014


On Wed, Jul 23, 2014 at 12:42 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Why are you using a bitstream filter when re-encoding?
> The normal usecase for a bitstream filter is remuxing.

If I don't use it, e.g.

ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy -map 0 -f
segment -segment_time 5 -segment_format mpegts
./tsSegmentsDisplay/SRC04_Q1_%05d.ts

I get:

[mpegts @ 0x41437e0] H.264 bitstream malformed, no startcode found,
use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)


More information about the ffmpeg-user mailing list