[FFmpeg-devel] [PATCH] Improve snow error message

Stefano Sabatini stefano.sabatini-lala
Sat Nov 10 19:09:31 CET 2007


Hi all.

stefano at geppetto ~/s/m/samples> ffmpeg -i transformers.avi  -strict -2 -vcodec snow -y transformers-snow.avi 
FFmpeg version SVN-r10968, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/home/stefano --enable-gpl --enable-pp --enable-libogg --enable-libtheora --enable-libvorbis --enable-libfaad --enable-libfaac --enable-x11grab --enable-libmp3lame --disable-optimizations --disable-mmx
  libavutil version: 49.5.0
  libavcodec version: 51.49.0
  libavformat version: 51.18.0
  built on Nov  9 2007 11:22:11, gcc: 4.2.1 (Debian 4.2.1-3)
Input #0, avi, from 'transformers.avi':
  Duration: 00:00:30.1, start: 0.000000, bitrate: 167308 kb/s
    Stream #0.0: Video: rawvideo, rgb555, 720x576 [PAR 0:1 DAR 0:1], 25.00 fps(r)
    Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Output #0, avi, to 'transformers-snow.avi':
    Stream #0.0: Video: snow, rgb555, 720x576 [PAR 0:1 DAR 0:1], q=2-31, 200 kb/s, 25.00 fps(c)
    Stream #0.1: Audio: mp2, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[snow @ 0x848cee0]format not supported
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

Uh?

It turned out it was the pixel format unsupported, with yuv420p it
works.

BTW: the obtained video presents green artifacts, with a pix_fmt of
"gray" it segfaults. 

Best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: improve-snow-error-message-00.patch
Type: text/x-diff
Size: 505 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071110/2f36d9c0/attachment.patch>



More information about the ffmpeg-devel mailing list