[gstreamer-bugs] [Bug 118142] need an interface for encoder quality

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Thu Mar 17 02:19:19 PST 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=118142
 GStreamer | gst-plugins | Ver: HEAD CVS





------- Additional Comments From Ronald Bultje  2005-03-17 05:19 -------
I got some questions on how to handle the difference between video/audio
profiles. This is implicit. Every profile will consist of a muxer (or not) with
request/always pad templates. Based on this and the caps, we already know the
amount of required and supported audio/video links. The subprofile linked at
front (which is 1-to-1) is then unimportant. I'll write a utility function for that.

Here's how elements should work:
avimux:
* one always video pad
* a request pad template for audio (0, n)
oggmux:
* one request serial pad template (0, n)
wavparse:
* one always audio pad
mplex:
* a request video pad template, with one always available (created on _init, not
released during _release_request_pad()) - (1, n)
* request audio/subtitle pads (0, n)
matroskamux:
* request (0, n) video/audio pads

Then, the utility function simply goes through all pad templates on the bin,
iterates pad templates and sees whether the 'application requires/provides
input' matches a template. If, after iterating, one or more always pad templates
(or existing pads) are unlinked, or one did not match, then the application does
not want to use this profile. Else it does.

Example 1, gnome-sound-recorder (provides one audio):
avimux: audiopad matches, but always videopad unlinked - no display
matroskamux: audiopad matches, no always pads unlinked - display
mplex: audiopad matches, but one existing requestpad unlinked - no display
wavparse: audiopad matches, no pads left - display
[etc.]

Example 2, Cupid (provides one video, one audio):
avimux: videopad matches, audiopad matches, none left - display
matroskamux: same
mplex: same
wavparse: audiopad matches, video doesn't match any pad - no display

The logic is not that much code, and if we provide a utility function,
applications won't even notice.

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list