Carl Eugen Hoyos <[email protected]> added the comment:
video_enc->bits_per_coded_sample is not set in avi_write_header() and the
default value is 24.
ffmpeg -vcodec pgmyuv -i tests/vsynth2/%02d.pgm -vcodec rawvideo -pix_fmt bgra
test.avi
FFmpeg version SVN-r20202, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 11 2009 09:31:39 with icc 1110
configuration: --cc=/opt/intel/Compiler/11.1/056/bin/intel64/icc --cpu=core2
--enable-gpl --extra-cflags=-parallel --extra-ldflags=-parallel
--enable-postproc --enable-avfilter --enable-pthreads --enable-nonfree
--enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libdirac --enable-libfaac --enable-libfaad --enable-libgsm
--enable-libmp3lame --extra-cflags='-I/usr/include/openjpeg -I/usr/include/gsm'
--enable-libopenjpeg --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.36. 0 / 52.36. 0
libavformat 52.39. 0 / 52.39. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 0. 5. 1 / 0. 5. 1
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
[image2 @ 0x145bf80]MAX_READ_SIZE:5000000 reached
Input #0, image2, from 'tests/vsynth2/%02d.pgm':
Duration: 00:00:02.00, start: 0.000000, bitrate: N/A
Stream #0.0: Video: pgmyuv, yuv420p, 352x288, 25 tbr, 25 tbn, 25 tbc
Output #0, avi, to 'test.avi':
Stream #0.0: Video: rawvideo, bgra, 352x288, q=2-31, 200 kb/s, 25 tbn, 25
tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 50 fps= 0 q=0.0 Lsize= 19807kB time=2.00 bitrate=81128.3kbits/s
video:19800kB audio:0kB global headers:0kB muxing overhead 0.033933%
ffmpeg -i test.avi
FFmpeg version SVN-r20202, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 11 2009 09:31:39 with icc 1110
configuration: --cc=/opt/intel/Compiler/11.1/056/bin/intel64/icc --cpu=core2
--enable-gpl --extra-cflags=-parallel --extra-ldflags=-parallel
--enable-postproc --enable-avfilter --enable-pthreads --enable-nonfree
--enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libdirac --enable-libfaac --enable-libfaad --enable-libgsm
--enable-libmp3lame --extra-cflags='-I/usr/include/openjpeg -I/usr/include/gsm'
--enable-libopenjpeg --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.36. 0 / 52.36. 0
libavformat 52.39. 0 / 52.39. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 0. 5. 1 / 0. 5. 1
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, avi, from 'test.avi':
Duration: 00:00:02.00, start: 0.000000, bitrate: 81128 kb/s
Stream #0.0: Video: rawvideo, bgr24, 352x288, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified
----------
status: new -> open
substatus: new -> reproduced
_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1299>
_____________________________________________________