[FFmpeg-user] Invalid data found when processing input

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Feb 29 21:24:40 CET 2012


tomnmillie <tomnmillie <at> yahoo.com> writes:

> First time I've tried this, hopefully it works.
> 
> http://goo.gl/qRL5Z

If you look at the sample with a hexeditor, you will see it starts 
with 65536 characters that are not part of the video stream 
(nearly all of them are "0").

You can either cut them away with (for example)
dd if=001ST_4Q_MA4_HC_11_L1.264 of=test.264 bs=65536 skip=1
or force ffmpeg to read a h264 stream:
ffmpeg -f h264 -i 001ST_4Q_MA4_HC_11_L1.264

It could be argued that FFmpeg should search harder for the begin 
of a usable stream but there will always be a file that has more 
trash at the begin and for some inputs, it is very undesirable 
to initially read a lot of data.

Carl Eugen



More information about the ffmpeg-user mailing list