-
-
Save JayHoltslander/48bbebc4770145edc72700b28ff6ab70 to your computer and use it in GitHub Desktop.
Run VLC from the command line on Mac OS X and stream internet radio or shuffle local videos fullscreen from a playlist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
/Applications/VLC.app/Contents/MacOS/VLC "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create file in /usr/local/bin
touch /usr/local/bin/vlc
Edit it
nano /usr/local/bin/vlc
Paste above code in and then make it executable:
chmod +x /usr/local/bin/vlc
You can try it out by running vlc inside Terminal:
Radio
vlc http://www.radioparadise.com/m3u/aac-128.m3u
If the audio skips, then try the direct stream instead:
vlc http://stream-tx4.radioparadise.com:80/aac-128
The Ogg stream is also pretty good:
vlc http://stream-sd.radioparadise.com/rp_192m.ogg
See also: http://www.radioparadise.com/rp_2.php?#name=Listen
Video playlist
-f for Fullscreen, -L for looping, -Z for randomize videos, --no-osd to hide filename overlays. (More options at https://wiki.videolan.org/VLC_command-line_help/)
vlc -f -L -Z --no-osd /Users/username/Movies/playlist.m3u