[FFmpeg-trac] #3785(swscale:new): SWSCALE: in_range, in_color_matrix, out_range, out_color_matrix incorrect

FFmpeg trac at avcodec.org
Sat Jul 19 03:25:58 CEST 2014


#3785: SWSCALE: in_range, in_color_matrix, out_range, out_color_matrix incorrect
-------------------------------------+-------------------------------------
             Reporter:  troy_s       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  swscale
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
  colormanagement colorspace 709     |  Reproduced by developer:  0
  601                                |
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by troy_s):

 On advice of michaelni, using the scale option to set range and color
 coefficients is not updating the flags in the stream:

 {{{
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './out709-full.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.48.101
   Duration: 00:00:03.00, start: 0.000000, bitrate: 168 kb/s
     Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 /
 0x31637661), yuv444p, 1920x1080 [SAR 1:1 DAR 16:9], 163 kb/s, 25 fps, 25
 tbr, 12800 tbn, 50 tbc (default)
     Metadata:
       handler_name    : VideoHandler
 }}}

 Setting the flags manually via -colorspace bt709 and -color_range jpeg
 results in the correct flags being set in the stream:
 {{{
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './out709-full.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.48.101
   Duration: 00:00:03.00, start: 0.000000, bitrate: 168 kb/s
     Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 /
 0x31637661), yuvj444p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 163 kb/s,
 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
     Metadata:
       handler_name    : VideoHandler
 }}}

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


More information about the FFmpeg-trac mailing list