[FFmpeg-user] mpegts file seems corrupt but plays back fine in VLC

Moritz Barsnick barsnick at gmx.net
Tue Aug 19 09:00:49 CEST 2014


On Wed, Aug 13, 2014 at 12:46:26 +0200, Ibrahim Tachijian wrote:

> Using the generated "dump.ts" I am trying to do the following command but
> failing.
> "./ffmpeg -i dump.ts -acodec copy -vcodec copy -f mpegts dump2.ts"

Did you read this error message at the very end?:

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

(I think it should be saying "use video bitstream filter 'h264_mp4toannexb'
to fix it ('-bsf:v h264_mp4toannexb' option with ffmpeg)". :-))

So please try
./ffmpeg -i dump.ts -acodec copy -vcodec copy -bsf h264_mp4toannexb -f mpegts dump2.ts


More information about the ffmpeg-user mailing list