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 742831 - GstEncodingProfile should take multiple presets
GstEncodingProfile should take multiple presets
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-13 05:58 UTC by Arun Raghavan
Modified: 2018-11-03 11:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Arun Raghavan 2015-01-13 05:58:12 UTC
The encoding API provided by GstEncodingProfile only allows for a single GstPreset to be attached to it. This means that we must know, before hand, what encoder will be used, which defeats the point of the encoding API.

Ideally, we should allow the provision of multiple presets to the GstEncodingProfile, probably with an associated GstElementFactory name. This would allow us to select the appropriate preset based on what is available on the system, and apply that.

Even better would be for the saved preset itself to have the associated factory name -- that way we would just walk down the list of provided presets and try to apply them till one works.

Relatedly, the GstEncoding*Profile should probably use properties for initialisation and getting/setting parameters.
Comment 1 Nirbheek Chauhan 2015-01-13 06:07:12 UTC
> This means that we must know, before hand, what
encoder will be used, which defeats the point of the encoding API.

To expand on this, while it's true that presets by definition are encoder-specific, in cases where multiple implementations for an encoded caps exist (x264/openh264 or voaacenc/faac, etc), it would be good to be able to specify presets for each of these and allow encodebin to choose whichever is available (or is higher priority).
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2015-01-13 12:10:37 UTC
Just to throw in some ideas, the preset-api allows arbitrary tag=values attached to a preset as string metadata. I mostly use comment='description of preset. But we could also define extra tag (e.g. 'realtime'), by which encodebin can lookup matching presets for encoders.
Comment 3 GStreamer system administrator 2018-11-03 11:34:04 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/153.