0

I'm trying to get UPNP streaming to work. Rygel runs fine, however, all I get is a mono stream, even if the input is stereo. Doing some debugging, I replicated Rygel's gstreamer pipeline with

gst-launch-1.0 pulsesrc device=upnp.monitor num-buffers=100 ! audioconvert ! lamemp3enc target=quality quality=6 ! filesink location=test.mp3

where the problem is also apparent:

mp3info -x test.mp3
...
Media Type:  MPEG 1.0 Layer III
Audio:       Variable kbps, 44 kHz (mono)
...

Where does this pipeline lose the second channel? How can I debug this?

rainer
  • 6,769
  • 3
  • 23
  • 37

2 Answers2

1

You never ask for stereo:

gst-launch-1.0 pulsesrc device=upnp.monitor num-buffers=100 ! "audio/x-raw,channels=2" ! audioconvert ! lamemp3enc target=quality quality=6 ! filesink location=test.mp3
ensonic
  • 3,304
  • 20
  • 31
  • Nice ! It is working in Rygel after removing quotes : pulsesrc device=upnp.monitor ! audio/x-raw,channels=2 ! lamemp3enc target=quality quality=6 – GeH Apr 22 '14 at 22:34
0

Add a -v to the launch-line to see all the caps negotiated on all pads of the pipeline. Look for "channels" and see where it goes from 2 to 1.

Havard Graff
  • 2,805
  • 1
  • 15
  • 16