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 649841 - encodebin: Add formatters support
encodebin: Add formatters support
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 754623 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-05-10 02:00 UTC by Thiago Sousa Santos
Modified: 2018-11-03 11:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
encodebin: Autoplug formatters (7.81 KB, patch)
2011-05-10 02:00 UTC, Thiago Sousa Santos
none Details | Review

Description Thiago Sousa Santos 2011-05-10 02:00:41 UTC
The attached patch is an initial attempt at autoplugging formatters for
each stream on the profile.

This patch makes it pick the first formatter it finds, testing it with
an mp3 profile and bumping xingmux rank made it pick it successfully.

One decision to make is how many formatters are we going to plug? All
available? First found? Best rank?
Comment 1 Thiago Sousa Santos 2011-05-10 02:00:44 UTC
Created attachment 187536 [details] [review]
encodebin: Autoplug formatters
Comment 2 Sebastian Dröge (slomo) 2011-05-11 08:31:03 UTC
The decision which formatters to use and in which order is a bit tricky. Did you check which formatters exist and do you have a list?
Comment 3 Thiago Sousa Santos 2011-05-12 02:09:21 UTC
Not really, I was aiming at 2 use cases:

lamemp3enc ! xingmux ! id3mux

and

jpegenc ! jifmux


Not sure if we can accomplish the first one easily.
Comment 4 Thiago Sousa Santos 2011-05-13 17:58:10 UTC
I guess the first step is to give non-zero ranks to formatters, should those be primary?
Comment 5 Edward Hervey 2011-05-13 18:05:18 UTC
Patch looks good, the typo/docs could maybe be split up as a separat commit.

As for the formatters, we should test them thoroughly before bumping the ranks. SECONDARY would be a good first start.
Comment 6 Thiago Sousa Santos 2011-05-19 11:38:18 UTC
Pushed the patch (with minor fixes and the typos removed) as it should solve some use cases.

We still need to figure out how to handle id3mux and xingmux for mp3 format.


commit b5fb542386594ed690e739aed9ba31189d8d9203
Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk>
Date:   Thu May 19 08:30:14 2011 -0300

    encodebin: Autoplug formatters
    
    Autoplug formatters for streams if a formatter with secondary or
    higher rank is found. Formatters are autoplugged when there is no
    muxer or when the muxer doesn't implement the tagsetter interface.
    
    Currently only the first formatter found is plugged, this might
    help in lots of cases, but it doesn't solve the
    'lamemp3 ! xingmux ! id3mux'
    case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=649841
Comment 7 Jonathan Matthew 2015-09-06 01:31:38 UTC
*** Bug 754623 has been marked as a duplicate of this bug. ***
Comment 8 GStreamer system administrator 2018-11-03 11:18:53 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/48.