[FFmpeg-devel] ffv1 to h264 : "Error while decoding stream #0.0"

Janne HuG
Fri Jul 20 11:53:45 CEST 2007


I'm transcoding from mencoder ffv1 (w/ pcm audio) output to mp4 (h264
& libfaac) with ffmpeg but it halts (non-idle) to errors (see below).
There's no problems with smaller files though.

Here's the ffmpeg command commented:

ffmpeg -i ffmpeg-input-file-1.8Gb.avi \
-s 320x240 -r 30 -b 900k -vcodec h264 \
-acodec libfaac -ab 96k -ac 1 -me_method full  -y \

FFmpeg version SVN-r9557, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-shared --enable-gpl --enable-pp
--enable-swscaler --enable-pthreads --enable-x11grab --enable-dc1394
--enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad
--enable-libmp3lame --enable-libogg --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-libamr-nb
--enable-libx264 --enable-gpl --enable-pp --enable-pthreads
--enable-libogg --enable-libgsm --enable-pthreads --enable-shared
--enable-swscaler --prefix=/usr/local --enable-libamr-wb
  libavutil version: 49.4.1
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Jul  9 2007 16:56:06, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Input #0, avi, from
  Duration: 00:00:00.5, start: 0.000000, bitrate: -2147483 kb/s
  Stream #0.0: Video: ffv1, yuv420p, 320x240, 30.00 fps(r)
  Stream #0.1: Audio: pcm_u8, 16000 Hz, mono, 128 kb/s
Output #0, mp4, to
  Stream #0.0: Video: libx264, yuv420p, 320x240, q=2-31, 900 kb/s, 30.00 fps(c)
  Stream #0.1: Audio: libfaac, 16000 Hz, mono, 96 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[libx264 @ 0xb7e031e8]using cpu capabilities MMX MMXEXT SSE
Press [q] to stop encoding
[ffv1 @ 0xb7e031e8]format not supported5kB time=1074.0 bitrate= 956.1kbits/s
Error while decoding stream #0.0
[ffv1 @ 0xb7e031e8]colorspace not supported
Error while decoding stream #0.0
[ffv1 @ 0xb7e031e8]chroma subsampling not supported in this colorspace
Error while decoding stream #0.0
[ffv1 @ 0xb7e031e8]format not supported
Error while decoding stream #0.0
[ffv1 @ 0xb7e031e8]read_quant_table errorB time=1074.0 bitrate= 957.0kbits/s
Error while decoding stream #0.0
[ffv1 @ 0xb7e031e8]read_quant_table error
Error while decoding stream #0.0

The mencoder command to produce the input file above:


mencoder mjpeg_file_from_camera.avi \
-oac copy -ovc lavc -lavcopts vcodec=ffv1:vstrict=-2 \
-vf pp=ac,hqdn3d=9:9:9,eq2=2.6:1.24:0.1 \
-o ffmpeg-input-file-1.8Gb.avi

Any ideas how to correct or proceed? My goal is to compress mjpegs
from my camera to mp4 with h264 & aac and us the video filters of
mencoder (hqdn3d especially). Mencoder seems to be somewhat unreliable
to produce files that have video and audio in sync (except if you use
lavc codec for both video and audio).


More information about the ffmpeg-devel mailing list