Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

play audio to only one speaker left/right from commandline using libvlc

Tags:

vlc

libvlc

Is it possible to make vlc play audio to only one of the speakers left/right from commandline ?

like image 514
jacob Avatar asked Nov 05 '22 05:11

jacob


1 Answers

If VLC Audio channels is not performing well the most you can do is open a ticket in VLC bug system.

If you can't wait until the issue is fixed just redirect the audio output to STDOUT and use a tool like SOX to do the work for you.

Selecting a Particular Channel with sox:

sox stereo.wav -c 1 mono.wav avg -l

of course sox can work on streams and it's not restricted to files.

BTW, sox comes with play and record utilities that can do the actual playback. see the examples here

like image 94
ApriOri Avatar answered Dec 01 '22 16:12

ApriOri