GNOME Bugzilla – Bug 706890
[glimagesink] problem with pixel aspect ratio
Last modified: 2013-09-27 12:31:25 UTC
* steps to reproduce: gst-launch-1.0 videotestsrc ! "video/x-raw, width=10, height=10" ! videoscale ! "video/x-raw, width=10, height=500" ! glimagesink -v * actual result: /GstPipeline:pipeline0/GstGLImageSink:glimagesink0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)10, height=(int)500, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)50/1 * expected result: /GstPipeline:pipeline0/GstGLImageSink:glimagesink0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)10, height=(int)500, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1 Aspect ratio should be 1/1 as we get when replacing glimagesink by imagesink:
This looks like a videoscale bug. xvimagesink gives the exact same result with videoscale. Replacing videoscale with gleffects effect=0 produces what you're expecting and I think is the correct result.
Why should it be 1/1? The sink claims to support any pixel-aspect-ratio so that should not make a difference.
Not sure why xvimagesink and glimagesink are scaling everything that much though, it does not seem a bug though. Both outputs are correct according to what you requested in the pipeline.
So what do we do with this here? Does anybody have reasons to say it is a bug? Should we define sink behaviour for this to be handled properly? The problem here is mostly what is taken as window size for the internally created window... and if the sink supports any pixel-aspect-ratio.
Let's just close this then...