GNOME Bugzilla – Bug 668467
jack: Mono streams are not played as stereo - just in left channel
Last modified: 2018-11-03 14:45:40 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.
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).
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
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.
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
jack only does audio/x-raw-float
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
(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)
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.
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.
-- 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.