On Sat, 06 Dec 2008 17:30:04 -0500, Chase Douglas <[EMAIL PROTECTED]> wrote: > What I get are a bunch of > yuv420p frames that I can't easily tell whether they have any valid > data or not (I don't know how yuv420p data is really formatted, and > I'd rather leave it at that if possible),
Debugging tip: the first plane of YUV is a grayscale image. If you write it to a file, you can open it in gimp as "raw image data" and get an idea of whether it contains an image. (gimp lets you play with width, height, and format and gives you a preview of the resulting interpretation of the data) > but after running the frame through sws_scale() all I get is zeroed out > RGB_5_6_5 frames. If you aren't using libswscale, not all destination formats are supported. I forget where offhand, but in libav there's a table of function pointers for converting between src format / dest format, and it has lots of empty cells. So in short, does it work if you pick a different destination pixel format? -- Michael Conrad IntelliTree Solutions llc. 513-552-6362 [EMAIL PROTECTED] _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
