Search code examples
audiomedia-playeraudio-streamingmplayer

MPlayer audio channel (left/right) switching


I'm trying to make an application, media player using mplayer slave mode. Any clue about switching VCD Karaoke channel (left and right) on the fly, while the video is playing on the mplayer-slave mode?

Thanks.


Solution

  • [SOLVED]

    switching audio track with

    LEFT echo "af pan=2:1:1:0:0" > slave_fifo_file

    RIGHT echo "af pan=2:0:0:1:1" > slave_fifo_file