After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691580 - ximagesrc sets bad pixel-aspect-ratio caps
ximagesrc sets bad pixel-aspect-ratio caps
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.0.3
Other Linux
: Normal normal
: 1.0.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-11 22:48 UTC by Stirling Westrup
Modified: 2013-01-24 09:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stirling Westrup 2013-01-11 22:48:37 UTC
I've discovered an easily-reproducible case where videoconvert is taking a caps with a pixel-aspect-ratio of (fraction)[ 1/2147483647, 2147483647/1] and choosing 1/2147483647 for its (arbitrary) value, rather than something sane like 1/1

Arguably in this case the source should probably be providing a solid aspect ratio, rather than a range, but I think that is a separate bug.

The command line that caused this was:

gst-launch-1.0 ximagesrc display-name=":1" ! videoconvert ! xvimagesink display=":2"

In case this doesn't behave the same for other folks, here's a link to a full log of an attempted run:

https://docs.google.com/file/d/0BwCOnjTaGreOZlgwWkNBNXZsVDg/edit
Comment 1 Olivier Crête 2013-01-24 02:37:29 UTC
The bug is here is that ximagesrc didn't set the aspect ratio correctly.

It's fixed now:

commit a31649e357ff2dcfa76d1e223d84ca3291037bf2
Author: Olivier Crête <olivier.crete@collabora.com>
Date:   Wed Jan 23 21:35:25 2013 -0500

    ximagesrc: Set the pixel aspect ratio correctly in the caps
Comment 2 Olivier Crête 2013-01-24 02:38:54 UTC
Should also be in 1.0.6