[Libav-user] Help with sws_scale

Arthur Muller muller at vki.com
Mon Feb 1 18:06:21 CET 2016


Gabriel,

 

>Well I am not sure about that, but I think in either case it would be better to use 444 than 420. I would try it and see if you can notice any difference.



I gave this a try. But – everything else being equal except that I now set codec->pix_fmt to AV_PIX_FMT_YUV444P rather than AV_PIX_FMT_YUV420P, and sws_getContext also uses AV_PIX_FMT_YUV444P – my call to avformat_write_header returns opt = NULL.

The truth is that the quality of YUV420P is good. If you have any thoughts on how I can correct the error from avformat_write_header I’ll be happy to give it a try.

Thanks.

-Arthur

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160201/bbd1499d/attachment.html>


More information about the Libav-user mailing list