How to start multiple vlc's each with unique unix socket
Posted: 27 Jul 2010 19:20
Hi VLC community,
this is my question: How do I start multiple vlc instances via command line and have each vlc instance connected with a unique unix socket?
and this is the story behind it:
I'm using VLC successfully to stream, produce snapshots, and play the stream on another Mac. My environment is Mac OS X 10.6.4
All of those things work fine - my next goal is to control all of this via applescript and a small GUI.
Ultimate idea: I need to control VLC via shell scripts e.g.:
Now this works perfectly but I am running multiple instances of VLC
1 - continous snapshots with scene video filter;
2 - record stream;
3 - play stream fullscreen on another display
Hence I want to be able to control each VLC instance seperately via shell commands which I can issue over Applescript.
I read this tut http://n0tablog.wordpress.com/2009/02/0 ... ogramming/ on setting up VLC with a unix socket via GUI preferences - works like a charm BUT (and this is my actual question) how can I start VLC via command line and assign a unique (vlc1.sock vlc2.sock vlc3.sock) unix socket to each instance.
Vlc -H gave me some direction with the --rc flags, I tried the following but without success:
I also tried putting the --rc flags before the stream but without success (video plays, but no socket created)
Is this the correct approach? Maybe I'm missing some arguments?
Does anyone have a solution or experience with this question?
I'm glad for any input, direction or hint
Thx
VLC rocks
-crackstone
this is my question: How do I start multiple vlc instances via command line and have each vlc instance connected with a unique unix socket?
and this is the story behind it:
I'm using VLC successfully to stream, produce snapshots, and play the stream on another Mac. My environment is Mac OS X 10.6.4
All of those things work fine - my next goal is to control all of this via applescript and a small GUI.
Ultimate idea: I need to control VLC via shell scripts e.g.:
Code: Select all
set openCMD to "/Applications/VLC.app/Contents/MacOS/VLC udp://@224.0.0.1:1234 --no-osd &>/dev/null &"
do shell script openCMD
1 - continous snapshots with scene video filter;
2 - record stream;
3 - play stream fullscreen on another display
Hence I want to be able to control each VLC instance seperately via shell commands which I can issue over Applescript.
I read this tut http://n0tablog.wordpress.com/2009/02/0 ... ogramming/ on setting up VLC with a unix socket via GUI preferences - works like a charm BUT (and this is my actual question) how can I start VLC via command line and assign a unique (vlc1.sock vlc2.sock vlc3.sock) unix socket to each instance.
Vlc -H gave me some direction with the --rc flags, I tried the following but without success:
Code: Select all
/Applications/VLC.app/Contents/MacOS/VLC udp://@224.0.0.1:1234 --no-osd --extraintf=rc --rc-unix=/Users/kalliope/vlc1.sock --rc-fake-tty
Is this the correct approach? Maybe I'm missing some arguments?
Does anyone have a solution or experience with this question?
I'm glad for any input, direction or hint
Thx
VLC rocks
-crackstone