[FFmpeg-user] bgr24 -> yuv420p darkens?

Roger Pack rogerdpack2 at gmail.com
Sat Aug 6 01:06:42 CEST 2011


Hello all.  First time here, and first of all thank you for a
marvelous program in ffmpeg.  Everybody everywhere uses it! If I could
donate some money to it, I would (I know somewhere it said you don't
take donations though).
Ok, observations.
With this bmp (bgr24) [1], if I use ffplay on it, it comes out
"darkened" and/or "with a red hue" for whatever reason.


[1] http://rogerdpack.t28.net/incoming/mostly_white.bmp the "white"
outermost backgrounded window looks somewhat red
http://rogerdpack.t28.net/incoming/red_hue.bmp within the ffplay
window.

Here's the command line output (mingw build, but it seems to reproduce
with any platform/version).

$ ffplay version N-31706-g335bbe4, Copyright (c) 2003-2011 the FFmpeg developers
  built on Jul 31 2011 18:52:06 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib
--enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
  libavutil    51. 11. 1 / 51. 11. 1
  libavcodec   53.  9. 0 / 53.  9. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 27. 5 /  2. 27. 5
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, image2, from 'mostly_white.bmp':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: bmp, bgr24, 1680x1050, 25 tbr, 25 tbn, 25 tbc
[buffersink @ 03C05D40] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'src' and the filter 'out'
[scale @ 03C06280] w:1680 h:1050 fmt:bgr24 -> w:1680 h:1050
fmt:yuv420p flags:0x4

Bug?
Thank you.
-roger-


More information about the ffmpeg-user mailing list