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 668467 - jack: Mono streams are not played as stereo - just in left channel
jack: Mono streams are not played as stereo - just in left channel
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-23 02:20 UTC by Jiri Prochazka
Modified: 2018-11-03 14:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jiri Prochazka 2012-01-23 02:20:11 UTC
http://code.google.com/p/clementine-player/issues/detail?id=2646

Mono streams are not played as stereo - just in left channel.
For other audio sink/outputs it works, just for JACK it doesn't.
Comment 1 Vincent Penquerc'h 2012-01-23 14:47:13 UTC
Does one, or both, of the following command lines play on a single channel ?

gst-launch-0.10 alsasrc ! audio/x-raw-int,channels=1 ! audioconvert ! audioresample ! jackaudiosink

gst-launch-0.10 jackaudiosrc ! audio/x-raw-int,channels=1 ! audioconvert ! audioresample ! alsasink

(Can't check here, I installed jack but it doesn't seem to want to work for reasons unknown so far).
Comment 2 Jiri Prochazka 2012-01-23 15:17:17 UTC
First command didn't play any sound but it at least worked and created a connection but still only connected to the left channel only. The second command didn't work at all.

$ gst-launch-0.10 alsasrc ! audio/x-raw-int,channels=1 ! audioconvert ! audioresample ! jackaudiosink
Setting pipeline to PAUSED ...
jack_client_new: deprecated
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 54818213406 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
----------------------
$ gst-launch-0.10 jackaudiosrc ! audio/x-raw-int,channels=1 ! audioconvert !
WARNING: erroneous pipeline: link without sink element
----------------------

jack connection list (filtered) while the first command is running (as you see the right channel has no input connection):

$ jack_lsp -c 'system:playback'
system:playback_1
   gst-launch-0.10:out_jackaudiosink0_1
system:playback_2
Comment 3 Vincent Penquerc'h 2012-01-23 15:28:08 UTC
The second test command is missing the remainder of the line ("audioresample ! alsasink"). Note that both my test commands are a single line each, though copy/paste may end up as two lines.
Comment 4 Jiri Prochazka 2012-01-23 15:33:11 UTC
sorry I pasted the previous attempt

$ gst-launch-0.10 jackaudiosrc ! audio/x-raw-int,channels=1 ! audioconvert ! audioresample ! alsasink
WARNING: erroneous pipeline: could not link jackaudiosrc0 to audioconvert0
Comment 5 Tim-Philipp Müller 2012-01-23 15:40:33 UTC
jack only does audio/x-raw-float
Comment 6 Jiri Prochazka 2012-01-23 15:44:29 UTC
with float it works (though too no hearable sound is played) though the connections are made:

$ gst-launch-0.10 jackaudiosrc ! audio/x-raw-float,channels=1 ! audioconvert ! audioresample ! alsasink
Setting pipeline to PAUSED ...
jack_client_new: deprecated
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 46809186979 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Disconnect: can't disconnect named semaphore name = jack_sem.1000_default_alsa-jack.jackP.9743.0 err = Invalid argument
Freeing pipeline ...
----------------------


$ jack_lsp -c 'system:playback'
system:playback_1
   alsa-jack.jackP.9743.0:out_000
system:playback_2
   alsa-jack.jackP.9743.0:out_001
Comment 7 Jiri Prochazka 2012-01-23 15:47:38 UTC
(btw I guess this second command works only because I have asoundrc set up to route alsa clients to jack, so other people without that maybe wouldn't get it to work)
Comment 8 Vincent Penquerc'h 2012-01-23 15:57:07 UTC
OK, thanks.
I've never used jack before, my intent was to see which of jackaudio{src,sink} was faulty, and it looks to be the sink.
Comment 9 Stefan Sauer (gstreamer, gtkdoc dev) 2012-07-15 18:27:28 UTC
Normally people connect streams manually first and ave the app remember it. We#ll probably need to add some smartness in "auto" mode to e.g. make 2 connection for a mono stream.
Comment 10 GStreamer system administrator 2018-11-03 14:45:40 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-good/issues/56.