troubles when pixel-aspect-ratio != 1.0
Stirling Westrup
swestrup at gmail.com
Fri May 22 12:08:44 PDT 2015
On Thu, May 21, 2015 at 5:28 PM, Sebastian Dröge <sebastian at centricular.com>
wrote:
> On Do, 2015-05-21 at 15:24 -0400, Stirling Westrup wrote:
> > I've built a videowall player pipeline that works for videos with square
> > pixels, but when someone tries to play something with a different pixel
> > aspect ratio, the video gets clipped, cropped and displayed wrong.
> >
> > I'm trying to sort out the culprits, but pixel-aspect-ratio isn't really
> > discussed in the docs, and I don't actually know how most elements
> respond.
> > For that matter, I never know when talking about widths and heights of
> > frames, if that is in stored-pixels or displayed-pixels.
>
> It's in stored pixels, and the pixel-aspect-ratio describes the ratio
> between the pixel height and width.
>
Ah, that was not what I had assumed. It explains much. So, just to make
sure I'm clear on this, it would imply that I should basically never input
a parameter or negotiate a size in anything other than stored-pixels.
For example, suppose I want to scale my video to full screen on a video
sink with an 800x600 (display) pixel resolution. I might find myself
negotiating for "video/x-raw,width=640,height=600,pixel-aspect-ratio=1.25"
and get what I wanted? (assuming, of course, that my source has a pixel
aspect ratio of 1.25)?
--
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150522/e026cb69/attachment.html>
More information about the gstreamer-devel
mailing list