Saturday, December 26, 2020

Starting VLC to play audio sources simultaneously

 Ever wanted to play movies through two different audio outputs?

Here is the solution:

Step 1. Start two players from console with HTTP:

vlc --extraintf=http --http-host 127.0.0.1 --http-port 8081

vlc --extraintf=http --http-host 127.0.0.1 --http-port 8082

Step 2. Select audio output and audio track for the opened players.

Step 3. Use following command to simultaneously start and stop video.

curl http://127.0.0.1:8082/requests/status.xml?command=pl_pause & curl http://127.0.0.1:8081/requests/status.xml?command=pl_pause

Note: curl is available by default in the latest Windows builds

No comments:

Post a Comment