[FFmpeg-trac] #8056(undetermined:closed): Convert BMP/JPG to YUV420p video color shift, but not PNG

FFmpeg trac at avcodec.org
Wed Sep 11 02:35:09 EEST 2019


#8056: Convert BMP/JPG to YUV420p video color shift, but not PNG
-------------------------------------+-------------------------------------
             Reporter:  fireattack   |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:  duplicate
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by fireattack):

 CoRoNe:

 Thank you very much for your help!
 But your commands don't work well.

 The first one,


 {{{
 ffmpeg -loop 1 -i bmp.bmp -t 10 -vf scale=out_range=pc -pix_fmt yuv420p
 -preset ultrafast bmp.mp4
 }}}

 Will clip the color range (instead of properly convert it), means colors
 between 236-255 will all become white.

 The second one,

 {{{
 ffmpeg -loop 1 -i bmp.bmp -t 10 -vf
 colorspace=iall=bt709:all=bt709:format=yuv420p -preset ultrafast bmp.mp4
 }}}

 does NOT use/convert to BT.709 properly, means pure red (255,0,0) will
 become 255,24,0.

 Please use the newly attached test image to test.

 I tried to improve it, but I have no idea what is the syntax of
 "colorspace=iall=bt709:all=bt709:format=yuv420p" part.

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


More information about the FFmpeg-trac mailing list