VLC is the VideoLAN Client media player. It plays almost any kind of media you can find, and runs on Mac, Linux, and Windows.
# Set which version we're going to download. VLC_VERSION='2.0.7' # Download the latest DMG file. wget "http://get.videolan.org/vlc/$VLC_VERSION/macosx/vlc-$VLC_VERSION.dmg" # Open the DMG file. hdiutil attach "vlc-$VLC_VERSION.dmg" # Copy the app file into the Applications folder. cp -a /Volumes/vlc-$VLC_VERSION/VLC.app /Applications/ # Unmount the DMG file. hdiutil detach /Volumes/vlc-$VLC_VERSION # Remove the file we downloaded. rm "vlc-$VLC_VERSION.dmg"