<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I'm new to video programming (my background is audio programming). Could you expand on this please?</span></div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Carl Eugen Hoyos <cehoyos@ag.or.at><br> <b><span style="font-weight: bold;">To:</span></b> libav-user@ffmpeg.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 14 February 2013 12:11 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Libav-user] Encoding RGB Data to YUV420p<br> </font> </div> <br>Chris Share <cpsmusic@...> writes:<br><br>> I've got the
 .png image data in a vector as RGB data <br>> (0-255 range).<br>> <br>> What I'm not clear about is how to convert this image <br>> data to YUV420p format as per the decoding_encoding.c <br>> example.<br><br>See the scaling_video.c and filtering_video.c examples:<br>You can either use the scale filter or libswscale directly.<br><br>> I posted a question on this topic on a general <br>> programming site and it was suggested that I should <br>> convert the RGB data to YUV444 and then convert this <br>> to YUV420p. Is that correct?<br><br>It does not sound correct (or at least not the easiest way) <br>to me.<br><br>Carl Eugen<br><br>_______________________________________________<br>Libav-user mailing list<br><a ymailto="mailto:Libav-user@ffmpeg.org" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br><a href="http://ffmpeg.org/mailman/listinfo/libav-user"
 target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br><br><br> </div> </div>  </div></body></html>