[FFmpeg-trac] #9573(avcodec:new): libx264 ignores color range flag for gray10 input

FFmpeg trac at avcodec.org
Wed Dec 29 18:19:12 EET 2021


#9573: libx264 ignores color range flag for gray10 input
-------------------------------------+-------------------------------------
             Reporter:  Diederick    |                    Owner:  (none)
  Niehorster                         |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  libx264      |               Blocked By:
  gray10                             |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by pdr0):

 extractplanes=y is probably more "elegant" than scale with format
 conversion . The 10bit Y plane is equivalent to the gray10 (just
 discarding CbCr planes)

 {{{
 ffmpeg -i test3.mp4 -i test.mkv -lavfi
 "[0:v]extractplanes=y,settb=1/AVTB,setpts=PTS-
 STARTPTS[main];[1:v]settb=1/AVTB,setpts=PTS-STARTPTS[ref];[main][ref]psnr"
 -f null -
 }}}
 PSNR y:inf average:inf min:inf max:inf

 {{{
 ffplay -vf extractplanes=y -i test3.mp4
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9573#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list