[FFmpeg-devel] Errors when encoding yuv to mpeg4: Could not find input stream matching output stream, and [mpeg4 @ 0x9dbce80] header damaged

Kurtis Smith kurtis.smith.2000
Wed Oct 13 20:19:49 CEST 2010


hi,

I am using ffmpeg built based on the latest checkout against gcc4.2. I
wanted to encode the "foreman" QCIF clip into raw MPEG4 stream, but with
both formats m4v and mp4, I got errors. Logs are attached below. Am I
missing anything?

When I built ffmpeg, I did not link the external libx264, so it should be
MPEG4 part2 not part10.

Thanks for your attention.
*
[root at linux]# ffmpeg -s qcif -vcodec mpeg4 -r 25 -b 150k -g 10 -i
foreman_qcif.yuv forman_qcif.m4v*
FFmpeg version SVN-r25443, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct 13 2010 10:56:29 with gcc 4.2.0
  configuration:
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.80. 0 / 52.80. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.49. 0 /  1.49. 0
  libswscale     0.12. 0 /  0.12. 0
[rawvideo @ 0x92d1620] Estimating duration from bitrate, this may be
inaccurate
Input #0, rawvideo, from 'foreman_qcif.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 176x144, 25 tbr, 25 tbn, 25 tbc
Output #0, ipod, to 'forman_qcif.m4v':
    Stream #0.0: Invalid Codec type -1
*Could not find input stream matching output stream #0.0*


*[root at linux]# ffmpeg -s qcif -vcodec mpeg4 -r 25 -b 150k -g 10 -i
foreman_qcif.yuv forman_qcif.mp4*
FFmpeg version SVN-r25443, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct 13 2010 10:56:29 with gcc 4.2.0
  configuration:
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.80. 0 / 52.80. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.49. 0 /  1.49. 0
  libswscale     0.12. 0 /  0.12. 0
[rawvideo @ 0x9dba620] Estimating duration from bitrate, this may be
inaccurate
Input #0, rawvideo, from 'foreman_qcif.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 176x144, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x9dc13f0] w:176 h:144 pixfmt:yuv420p
Output #0, mp4, to 'forman_qcif.mp4':
  Metadata:
    encoder         : Lavf52.80.0
    Stream #0.0: Video: mpeg4, yuv420p, 176x144, q=2-31, 150 kb/s, 25 tbn,
25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
*[mpeg4 @ 0x9dbce80] header damaged*
Error while decoding stream #0.0
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s



More information about the ffmpeg-devel mailing list