Michel Bardiaux schrieb:
> 
> 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

Hi,

thanks a lot, would have been a hard/impossible job to find it by
myselfe, cause to me it's an attribute of the frame.
I'm one of the guys, who don't see the butter on the table if they're
shure that it's in the fridge ;)

Cheers,

Thomas
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to