Play audio only one speaker left / right from command line using libvlc

Is it possible to make vlc play sound only to one of the speakers to the left / right of the command line?

+4
source share
2 answers

If the VLC Audio channels do not work very well, you can simply open a ticket in the VLC error system.

If you can't wait to fix the problem, just redirect the audio output to STDOUT and use a tool like SOX to do the work for you.

Choosing a private channel using sox:

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

Of course, sox can work with streams and not be limited to files.

BTW, sox comes with playback and recording utilities that can perform actual playback. see examples here

+1
source

Have you viewed mplayer ? This is easily done using "-af channels = ...".

0
source

Source: https://habr.com/ru/post/1396347/


All Articles