Skip to content

Instantly share code, notes, and snippets.

@JayHoltslander
Forked from kgriffs/vlc
Last active May 9, 2025 02:49
Show Gist options
  • Save JayHoltslander/48bbebc4770145edc72700b28ff6ab70 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash
/Applications/VLC.app/Contents/MacOS/VLC "$@"
@JayHoltslander
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment