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

FFmpeg trac at avcodec.org
Sat Aug 22 22:16:19 EEST 2020


#8862: Wrong color space selected
--------------------------------------+----------------------------------
             Reporter:  airbete       |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  4.2
             Keywords:  color space   |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 Summary of the bug + How to reproduce:

 I recorded part of my screen with vokoscreenNG ( x264 / high-4:4:4 /
 Quality 0 ) where a static png image was displayed.

 I then played the resulting mkv file (joined to this ticket) with mpv, vlc
 and ffplay and took a screenshot in each. Here is what I observed :

 Original image == mpv == vlc '''!=''' ffplay .

 This is the screenshot with mpv (identical to vlc and the original):
 [[Image(https://user-
 images.githubusercontent.com/10148399/90956567-c1067380-e455-11ea-9816-625369353675.png)]]

 And this is the screenshot with ffplay:
 [[Image(https://user-
 images.githubusercontent.com/10148399/90956576-cfed2600-e455-11ea-9282-0525de7472bf.png)]]

 Clearly ffplay doesn't select the good color space. Also, when I load the
 clip into kdenlive (which uses ffmpeg/ffplay/ffprobe), I observe the same
 wrong colors in the clip monitor, project monitor and rendering.

 Here are some additional info:

 ''ffplay / ffprobe''
 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)
 color_range='''tv'''
 color_space=bt470bg
 color_transfer=bt709
 color_primaries=smpte170m

 ''mpv''
 [vf] [in] 480x300 yuv444p bt.601/bt.601-525/bt.1886/limited/display
 SP=1.000000 CL=mpeg2/4/h264
 [vf] [out] 480x300 yuv444p bt.601/bt.601-525/bt.1886/limited/display
 SP=1.000000 CL=mpeg2/4/h264

 ''vlc''
 [[Image(https://user-
 images.githubusercontent.com/10148399/90956749-548c7400-e457-11ea-
 95a4-47adc85af4c2.png)]]

 The color_range=tv shown by ffprobe looks very strange to me.

 Thank you

 ps: My version of ffmpeg is ffmpeg-4.2.4-1.fc32.x86_64.rpm

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


More information about the FFmpeg-trac mailing list