Opened 7 years ago
Last modified 6 years ago
#1261 open defect
yellowish color with resize and -pix_fmt pal8
Reported by: | ami_stuff | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | swscale |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
not reproducible with -pix_fmt bgr24
C:\>ffmpeg -i 1023.bmp -s 1024x767 -pix_fmt pal8 out.bmp ffmpeg version N-40172-g28c5775 Copyright (c) 2000-2012 the FFmpeg developers built on Apr 28 2012 02:21:26 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. 48.100 / 51. 48.100 libavcodec 54. 16.100 / 54. 16.100 libavformat 54. 3.100 / 54. 3.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 72.100 / 2. 72.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 11.100 / 0. 11.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, image2, from '1023.bmp': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: bmp, pal8, 1023x767, 25 tbr, 25 tbn, 25 tbc [buffer @ 0x1dc1fc0] w:1023 h:767 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param:fla gs=2 [scale @ 0x1dc2180] w:1023 h:767 fmt:pal8 sar:0/1 -> w:1024 h:767 fmt:pal8 sar:0 /1 flags:0x4 Output #0, image2, to 'out.bmp': Metadata: encoder : Lavf54.3.100 Stream #0:0: Video: bmp, pal8, 1024x767, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (bmp -> bmp) 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:768kB audio:0kB global headers:0kB muxing overhead -100.000000%
Attachments (1)
Change History (5)
Changed 7 years ago by ami_stuff
comment:1 Changed 6 years ago by cehoyos
comment:2 follow-up: ↓ 3 Changed 6 years ago by richardpl
- Component changed from undetermined to swscale
- Reproduced by developer set
- Status changed from new to open
- Version changed from unspecified to git-master
Input palette is black and white only, while output rgb24 pam/bmp is not any more black and white only.
comment:3 in reply to: ↑ 2 Changed 6 years ago by cehoyos
Replying to richardpl:
Input palette is black and white only, while output rgb24 pam/bmp is not any more black and white only.
Could you elaborate? The sample command line only produces pal8 output.
comment:4 Changed 6 years ago by richardpl
Sorry, it also happens when going from pal8->pal8. Just add logs to dump palette entries to lavc/bmp.c
Note: See
TracTickets for help on using
tickets.
The md5sum for out.bmp is identical for 0.11, 1.0 and current git head: 9f7c293e0940a372c6d897d769b110d4
ffplay out.bmp -fs shows no yellowish colour, several other display methods (gimp, xv, ImageMagick?, ffplay without -fs) show some distortion.