[FFmpeg-user] How can I convert rbg to yuv420p loseless?

bert1974 b_bruggeman at ziggo.nl
Mon Aug 19 12:46:47 CEST 2013


PIX_FMT_BGRA contains alpha(=transparency) information.. to get the
transparent edges right, you will have to blend/draw on a background color
when converting from bgra to rgb. don't know how to do with SwsContext,
maybe convert/blend rgba->rgb manual, than convert rgb to yuv using
SwsContext

(it looks like the image in your mail is blended on black instead of white)



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-can-I-convert-rbg-to-yuv420p-loseless-tp4660765p4660771.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list