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 712343 - riff: Make use of the various helper to handle video formats
riff: Make use of the various helper to handle video formats
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 712290
 
 
Reported: 2013-11-14 22:58 UTC by Thibault Saunier
Modified: 2018-11-03 11:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
riff: Make use of the various helper to handle video formats (31.76 KB, patch)
2013-11-14 22:58 UTC, Thibault Saunier
needs-work Details | Review
> ::: gst-libs/gst/riff/riff-media.c (32.70 KB, patch)
2014-10-30 13:00 UTC, Thibault Saunier
none Details | Review
riff: Make use of the various helper to handle video formats (32.79 KB, patch)
2014-11-16 15:49 UTC, Thibault Saunier
none Details | Review

Description Thibault Saunier 2013-11-14 22:58:32 UTC
That means the gst_pb_utils_get_codec_description function to get codec
description and us GstVideoInfo to construct caps for raw videos.
Comment 1 Thibault Saunier 2013-11-14 22:58:35 UTC
Created attachment 259844 [details] [review]
riff: Make use of the various helper to handle video formats
Comment 2 Olivier Crête 2013-11-29 01:04:26 UTC
Review of attachment 259844 [details] [review]:

Looks good in general, except for:

::: gst-libs/gst/riff/riff-media.c
@@ +82,3 @@
+            break;
+          case 16:
+            format = GST_VIDEO_FORMAT_RGB16;

Are 15 and 16 valid here? I don't see them in the old code.

@@ +85,3 @@
+            break;
+          case 24:
+            format = GST_VIDEO_FORMAT_RGB;

This was BGR, not RGB

@@ +88,3 @@
+            break;
+          case 32:
+            format = GST_VIDEO_FORMAT_ARGB;

This should be BGRx, not ARGV

@@ -900,3 @@
       caps = gst_caps_new_empty_simple ("video/x-fraps");
-      if (codec_name)
-        *codec_name = g_strdup ("Fraps video");

This isn't in pbutils, neither is x-xsub, we shoudl go over the entire list first before we remove them. Either we should add it there or leave this here.
Comment 3 Sebastian Dröge (slomo) 2013-12-31 09:51:28 UTC
Thibault?
Comment 4 Thibault Saunier 2014-10-30 13:00:59 UTC
Created attachment 289662 [details] [review]
> ::: gst-libs/gst/riff/riff-media.c

> @@ +82,3 @@
> +            break;
> +          case 16:
> +            format = GST_VIDEO_FORMAT_RGB16;
> 
> Are 15 and 16 valid here? I don't see them in the old code.

Indeed it was not in the old code, removed

> @@ +85,3 @@
> +            break;
> +          case 24:
> +            format = GST_VIDEO_FORMAT_RGB;
> 
> This was BGR, not RGB

My mistake, FIXED

> @@ +88,3 @@
> +            break;
> +          case 32:
> +            format = GST_VIDEO_FORMAT_ARGB;
> 
> This should be BGRx, not ARGV

My mistake, FIXED

> @@ -900,3 @@
>        caps = gst_caps_new_empty_simple ("video/x-fraps");
> -      if (codec_name)
> -        *codec_name = g_strdup ("Fraps video");

> This isn't in pbutils, neither is x-xsub, we shoudl go over the entire list
> first before we remove them. Either we should add it there or leave this here.

I added them in pbutils and went over the whole list adding the other missing ones
Comment 5 Thibault Saunier 2014-11-16 15:49:15 UTC
Created attachment 290802 [details] [review]
riff: Make use of the various helper to handle video formats

That means the gst_pb_utils_get_codec_description function to get codec
description and us GstVideoInfo to construct caps for raw videos.

+ Add missing codec description in pbutils to avoid regressions
Comment 6 Tim-Philipp Müller 2014-11-17 01:26:31 UTC
People are going to make fun of us for wavparse depending on libgstvideo ;)
Comment 7 Thibault Saunier 2014-11-19 17:20:16 UTC
(In reply to comment #6)
> People are going to make fun of us for wavparse depending on libgstvideo ;)

Is there something we can do about that? I any user of libriff already depends on libgstaudio even if totaly unrelated to their use.
Comment 8 Thibault Saunier 2016-11-17 19:03:43 UTC
What should we do about that?
Comment 9 Thibault Saunier 2017-04-05 12:59:53 UTC
Ping? :)
Comment 10 GStreamer system administrator 2018-11-03 11:26:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/93.