[Libav-user] avi with yuvj420p support

Gonzalo Garramuño ggarra13 at gmail.com
Fri Mar 22 19:27:24 EET 2019


I have an avi file that uses yuvj420p according to ffprobe.  When I play 
it in ffplay, all is fine but it complains about a deprecated pixel 
format and that I should set the color range properly.  In my viewer, I 
use swscale with the following formats conversions as destination:
         AV_PIX_FMT_YUVJ444P,
         AV_PIX_FMT_YUVJ422P,
         AV_PIX_FMT_YUVJ420P

and I treat them as YUV420/422/444 for display (using a YCbCr shader).  
When I play the clip it appears darker than in ffplay or any other 
viewer.  When I remove those formats as destination formats and just let 
the destination format be one of YUV420/422/444, the clip shows with the 
proper lumma.

I am wondering what's the right way of treating these movie files.  Is 
removing them from target conversions the way to go? Or should I do 
something else in swscale or in my shader?

-- 
Gonzalo Garramuño



More information about the Libav-user mailing list