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 322645 - Matroska muxer: wrong pixel aspect ratio
Matroska muxer: wrong pixel aspect ratio
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.9.x
Other Linux
: Normal normal
: 0.9.7
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-28 12:48 UTC by Michal Benes
Modified: 2005-12-01 16:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch adding support for pixel-aspect-ratio to matroskamuxer (1.10 KB, patch)
2005-11-28 12:57 UTC, Michal Benes
none Details | Review
New patch adding pixel-aspect-ratio support (1.32 KB, patch)
2005-11-28 13:02 UTC, Michal Benes
none Details | Review

Description Michal Benes 2005-11-28 12:48:31 UTC
mpeg2dec stores pixel aspect ratio as "pixel-aspect-ratio" in caps, whereas
matroskamuxer expect two values "pixel-width" and "pixel-height". I do not know
which one of these is correct (since these properties are not documented in the
PWG). The result is that mpeg2 decoded, any format encoded and matroska muxed
video has wrong aspect.
Comment 1 Jan Schmidt 2005-11-28 12:55:43 UTC
matroskamux is wrong - it should be a GstFraction called pixel-aspect-ratio
Comment 2 Michal Benes 2005-11-28 12:57:54 UTC
Created attachment 55314 [details] [review]
Patch adding support for pixel-aspect-ratio to matroskamuxer

This patch adds pixel-aspect-ratio support to matroskamuxer. This patch is
probably not quite correct since there should be only one way to specify the
pixel aspect.
Comment 3 Michal Benes 2005-11-28 13:02:58 UTC
Created attachment 55315 [details] [review]
New patch adding pixel-aspect-ratio support

This patch removes pixel-width pixel-height support in favour of
pixel-aspect-ratio.
Comment 4 Jan Schmidt 2005-11-28 15:13:28 UTC
Resolving with a slightly different patch:

-  ret = gst_structure_get_int (structure, "pixel_width", &pixel_width);
-  ret &= gst_structure_get_int (structure, "pixel_height", &pixel_height);
-  if (ret) {
+  if (gst_structure_get_fraction (structure, "pixel-aspect-ratio",
+          &pixel_width, &pixel_height)) {

        * gst/matroska/matroska-mux.c:
        (gst_matroska_mux_video_pad_setcaps):
        Look for pixel-aspect-ratio in caps, not pixel_width and
        pixel_height (Fixes: #322645)