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 616078 - mpegvideoparse: Export profile and level in caps
mpegvideoparse: Export profile and level in caps
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 0.10.19
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-18 09:40 UTC by Arun Raghavan
Modified: 2010-05-28 11:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpegvideoparse: Export profile and level in caps (4.58 KB, patch)
2010-04-18 09:40 UTC, Arun Raghavan
committed Details | Review
mpegvideoparse: change profile and level strings to something nicer-looking (2.09 KB, patch)
2010-05-21 14:54 UTC, Tim-Philipp Müller
committed Details | Review

Description Arun Raghavan 2010-04-18 09:40:29 UTC
Attaching a patch which extracts the profile and level from the sequence extension header for MPEG2 streams and exports them in stream caps.
Comment 1 Arun Raghavan 2010-04-18 09:40:32 UTC
Created attachment 159001 [details] [review]
mpegvideoparse: Export profile and level in caps

This exports profile and level in caps for MPEG 2 streams.
Comment 2 Sebastian Dröge (slomo) 2010-04-18 10:52:09 UTC
commit bf586d796692d0e2be5b6e601cce8d0c7346695d
Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
Date:   Sun Apr 18 14:51:35 2010 +0530

    mpegvideoparse: Export profile and level in caps
    
    This exports profile and level in caps for MPEG 2 streams.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=616078
Comment 3 Tim-Philipp Müller 2010-04-18 11:58:28 UTC
Comment on attachment 159001 [details] [review]
mpegvideoparse: Export profile and level in caps

>+    const gchar *profiles[] = { "HP", "Spatial", "SNR", "MP", "SP" };
>+    const gchar *levels[] = { "HL", "H-14", "ML", "LL" };

Maybe it's just me, but I don't think these strings are particularly nice (eg. profile=HP vs. profile=high, or profile=MP vs. profile=main, or level=HL vs. level=high). And why is it H-14 and not H-14L? (apologies for the bikeshedding)
Comment 4 Arun Raghavan 2010-04-18 14:16:01 UTC
I took the convention used in the spec and the Internet (Wikipedia and other sites), since I figured this would be more intuitive to anyone who is interested in this information.
Comment 5 Tim-Philipp Müller 2010-05-21 14:54:24 UTC
Created attachment 161652 [details] [review]
mpegvideoparse: change profile and level strings to something nicer-looking

Alternative suggestion for profile/level names:

-    const gchar *profiles[] = { "HP", "Spatial", "SNR", "MP", "SP" };
+    const gchar *profiles[] = { "high", "spatial", "snr", "main", "simple" };


-    const gchar *levels[] = { "HL", "H-14", "ML", "LL" };
+    const gchar *levels[] = { "high", "high-1440", "main", "low" };


-            profile = "422P";
+            profile = "4:2:2";

-            profile = "MVP";
+            profile = "multiview";
Comment 6 Tim-Philipp Müller 2010-05-28 11:55:05 UTC
Comment on attachment 161652 [details] [review]
mpegvideoparse: change profile and level strings to something nicer-looking

I've committed this now, since Arun also agreed that this makes things look more consistent.