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 571813 - playbin2 doesn't forward tags to custom audio-sink
playbin2 doesn't forward tags to custom audio-sink
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.22
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-15 09:12 UTC by Артём Попов
Modified: 2009-02-19 12:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
minitap_plmini.py (1.44 KB, text/x-python)
2009-02-15 09:13 UTC, Артём Попов
Details

Description Артём Попов 2009-02-15 09:12:50 UTC
According to the GStreamer docs, it is possible to create container elements that look like a sink to playbin, but in reality contain a number of custom elements linked together. This is achieved by making a GstBin, containing a DSP-chain with a ghost pad.

But if I create a Bin which contains an "rgvolume" element, that modifies audio output level based on received TAG events, it doesn't work in playbin2. (But works with the classic playbin).

Other events/downstream messages probably are not forwarded as well.

I'm attaching a (python) test application to this bug. If "playbin2" at line 45 is replaced with "playbin", the volume is normalized as expected: there's a different sound level and a proper "target-gain" value is printed to the console.
Comment 1 Артём Попов 2009-02-15 09:13:40 UTC
Created attachment 128763 [details]
minitap_plmini.py
Comment 2 Артём Попов 2009-02-15 09:19:09 UTC
Just for convenience, here's test file, containing some ReplayGain data, to run with the script above:
http://artfwo.googlepages.com/commander.ogg

(a free track by Riku Nuottajärvi)
Comment 3 Wim Taymans 2009-02-16 10:08:51 UTC
this seems to work fine in CVS. What version of gst-plugins-bad do you have?
Comment 4 Артём Попов 2009-02-16 10:17:22 UTC
  Name:			selector
  Description:		input/output stream selector elements
  Filename:		/usr/lib/gstreamer-0.10/libgstselector.so
  Version:		0.10.10
  License:		LGPL
  Source module:	gst-plugins-bad
  Binary package:	GStreamer Bad Plugins (Ubuntu)
Comment 5 Артём Попов 2009-02-16 10:32:13 UTC
And indeed, the sink works correctly with gst-plugins-bad from git.