Open lc-thomas opened 5 years ago
Hi! Interesting idea.
I almost got this to work, but it doesn't look like the rc interface allows you to add subtitles unfortunately.
/Applications/VLC.app/Contents/MacOS/VLC --extraintf oldrc --rc-unix $HOME/.vlc.sock
echo -n "enqueue $PWD/example-video.m4v" | nc -U $HOME/.vlc.sock
echo -n "play" | nc -U $HOME/.vlc.sock
echo -n "pause" | nc -U $HOME/.vlc.sock
# does not work! :/
wget https://raw.githubusercontent.com/andreyvit/subtitle-tools/master/sample.srt
echo -n "enqueue $PWD/sample.srt" | nc -U $HOME/.vlc.sock
If you have the option of adding the subtitle file when initially opening the video, then maybe you can just add --sub-file
to the startup of VLC. Perhaps you can pass in like ?sub=https://raw.githubusercontent.com/andreyvit/subtitle-tools/master/sample.srt
and parse it out in the shell script?
Hey Stefan,
I like the protocol you made, it makes things so nice. I'd like to add subtitles for movies in VLC though, and I'm not sure I'm having the best idea. What do you think would be the best way to share the subtitles for a movie inside the protocol ?