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

_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
libav-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to