Thomas Rehaag wrote: > Hi, > > in (non-high-density-) DVB recordings, the frames allways have > proportions of ~4/3 and there must be a "stretch flag", that tells the > player to show them in 16/9. > Is there such a flag or stretching factor in AVFrame? I couldn't find > it. >
It is not a flag (because there are other display and pixel aspect ratios possible), and it is not in AVFrame (which is debatable; in my own image-processing code, I *do* keep the PAR, or to be absolutely honest, I plan to, because in my first generation of code I considered non-square pixels an abomination!) You have to pick sample_aspect_ratio from the codec context after each decoding of a frame. This is for pixels. Multiply by width and height, that will give you the Display Aspect Ratio. See libavcodec/utils.c about line 1142. Greetings, -- Michel Bardiaux http://www.mediaxim.com/ _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
