Opened 13 years ago
Closed 12 years ago
#1103 closed defect (fixed)
pgmyuv: problem with odd height (wrong resolution reported by decoder)
Reported by: | ami_stuff | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | pgmyuv |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | yes |
Description
Is that a bug in pgmyuv decoder or maybe pgmyuv encoder should just reject input with odd height as it does with odd width?
C:\>ffmpeg -i 599.png -s 600x411 out.pgmyuv ffmpeg version N-38892-g6cabb67 Copyright (c) 2000-2012 the FFmpeg developers built on Mar 19 2012 02:36:23 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc 14) configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch= x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect --enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 - lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx libavutil 51. 42.100 / 51. 42.100 libavcodec 54. 11.100 / 54. 11.100 libavformat 54. 2.100 / 54. 2.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 65.101 / 2. 65.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 7.100 / 0. 7.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, image2, from '599.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgb24, 599x412, 25 tbr, 25 tbn, 25 tbc Incompatible pixel format 'rgb24' for codec 'pgmyuv', auto-selecting format 'yuv 420p' [buffer @ 0x1d91560] w:599 h:412 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param: [scale @ 0x1d91a20] w:599 h:412 fmt:rgb24 sar:0/1 -> w:600 h:411 fmt:yuv420p sar :0/1 flags:0x4 Output #0, image2, to 'out.pgmyuv': Metadata: encoder : Lavf54.2.100 Stream #0:0: Video: pgmyuv, yuv420p, 600x411, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (png -> pgmyuv) Press [q] to stop, [?] for help frame= 1 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.04 bitrate= 0.0kbits/ s video:361kB audio:0kB global headers:0kB muxing overhead -100.000000%
C:\>ffmpeg -i out.pgmyuv out.bmp ffmpeg version N-38892-g6cabb67 Copyright (c) 2000-2012 the FFmpeg developers built on Mar 19 2012 02:36:23 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc 14) configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch= x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect --enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 - lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx libavutil 51. 42.100 / 51. 42.100 libavcodec 54. 11.100 / 54. 11.100 libavformat 54. 2.100 / 54. 2.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 65.101 / 2. 65.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 7.100 / 0. 7.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, image2, from 'out.pgmyuv': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: pgmyuv, yuv420p, 600x616, 25 tbr, 25 tbn, 25 tbc Incompatible pixel format 'yuv420p' for codec 'bmp', auto-selecting format 'bgr2 4' [buffer @ 0x1d91b40] w:600 h:616 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x1d91dc0] auto-inserting filter 'auto-inserted scale 0' between t he filter 'src' and the filter 'out' [scale @ 0x1d91320] w:600 h:616 fmt:yuv420p sar:0/1 -> w:600 h:616 fmt:bgr24 sar :0/1 flags:0x4 Output #0, image2, to 'out.bmp': Metadata: encoder : Lavf54.2.100 Stream #0:0: Video: bmp, bgr24, 600x616, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (pgmyuv -> bmp) Press [q] to stop, [?] for help Error while decoding stream #0:0 frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate= 0.0kbits/ s video:0kB audio:0kB global headers:0kB muxing overhead nan% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters i f used)
Change History (2)
comment:1 by , 13 years ago
Keywords: | pgmyuv added |
---|---|
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
comment:2 by , 12 years ago
Analyzed by developer: | set |
---|---|
Component: | undetermined → avcodec |
Resolution: | → fixed |
Status: | open → closed |
Note:
See TracTickets
for help on using tickets.
fixed, it is encoder bug.