[FFmpeg-trac] #8862(undetermined:new): Wrong color space selected

FFmpeg trac at avcodec.org
Sun Aug 23 00:19:03 EEST 2020


#8862: Wrong color space selected
-------------------------------------+-------------------------------------
             Reporter:  airbete      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by airbete):

 Ok, I compiled the git head version and extracted a frame with

 {{{
 > ./ffmpeg -i vokoscreenNG.x264_q0_high.mkv -vframes 1 output.png
 ffmpeg version N-98810-ga469d29c08 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 10 (GCC)
   configuration: --enable-sdl
   libavutil      56. 58.100 / 56. 58.100
   libavcodec     58.101.100 / 58.101.100
   libavformat    58. 51.100 / 58. 51.100
   libavdevice    58. 11.101 / 58. 11.101
   libavfilter     7. 87.100 /  7. 87.100
   libswscale      5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
 Input #0, matroska,webm, from 'vokoscreenNG.x264_q0_high.mkv':
   Metadata:
     encoder         : GStreamer matroskamux version 1.16.2
     creation_time   : 2020-08-22T12:37:13.000000Z
   Duration: 00:00:04.38, start: 0.000000, bitrate: 111 kb/s
     Stream #0:0(eng): Video: h264 (High 4:4:4 Predictive), yuv444p(tv,
 bt470bg/smpte170m/bt709, progressive), 480x300 [SAR 1:1 DAR 8:5], 30 fps,
 30 tbr, 1k tbn, 60 tbc (default)
     Metadata:
       title           : Video
     Stream #0:1(eng): Audio: vorbis, 44100 Hz, stereo, fltp (default)
     Metadata:
       title           : Audio
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> png (native))
 Press [q] to stop, [?] for help
 Output #0, image2, to 'output.png':
   Metadata:
     encoder         : Lavf58.51.100
     Stream #0:0(eng): Video: png, rgb24, 480x300 [SAR 1:1 DAR 8:5],
 q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)
     Metadata:
       title           : Video
       encoder         : Lavc58.101.100 png
 frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.03 bitrate=N/A
 speed=1.25x
 video:28kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown

 }}}

 The resulting output.png image is, to my surprise, perfect (no color
 degradation). In fact the same ffmpeg command with version 4.2.4 generates
 a perfect png too!

 However, ffplay (git head version) still produce muddy and degraded
 colors. There is an unwanted color conversion that takes place
 somewhere...

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


More information about the FFmpeg-trac mailing list