[FFmpeg-trac] #437(ffplay:reopened): ffplay seems to "darken" certain inputs (ex: bgr24)

FFmpeg trac at avcodec.org
Wed Mar 9 20:08:37 CET 2016


#437: ffplay seems to "darken" certain inputs (ex: bgr24)
-------------------------------------+-------------------------------------
             Reporter:  rogerdpack   |                    Owner:
                 Type:  enhancement  |                   Status:  reopened
             Priority:  wish         |                Component:  ffplay
              Version:  unspecified  |               Resolution:
             Keywords:  sdl yuv      |               Blocked By:
  range color                        |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by rogerdpack):

 OK uploaded.  It appears that if ffmpeg get input of "white.bmp" and
 convert it to "white.loop.avi" (also attached) like this:


 {{{
 $ ffmpeg -loop 1 -i white.bmp -t 10 -y white.loop.avi
 ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.4 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
 opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc
 --enable-libxvid --enable-ffplay --enable-vda
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, bmp_pipe, from 'white.bmp':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: bmp, pal8, 256x256, 25 fps, 25 tbr, 25 tbn, 25 tbc
 Output #0, avi, to 'white.loop.avi':
   Metadata:
     ISFT            : Lavf56.40.101
     Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 256x256,
 q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
     Metadata:
       encoder         : Lavc56.60.100 mpeg4
 Stream mapping:
   Stream #0:0 -> #0:0 (bmp (native) -> mpeg4 (native))
 Press [q] to stop, [?] for help
 frame=  250 fps=0.0 q=2.0 Lsize=      44kB time=00:00:10.00 bitrate=
 36.2kbits/s
 video:33kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 35.687309%
 }}}

 the resultant video file is yuv420p and is "good" (if I play it with
 mplayer, the screen is white).  So ffmpeg conversion is OK.

 However, if I then play that file with ffplay, the output is greyed again,
 even though the input is yuv420p.  So this may be a more general problem
 in/of ffplay than just bgr24 input, FWIW.  Thanks!

--
Ticket URL: <https://trac.ffmpeg.org/ticket/437#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list