How to play Audio / Video from Ubuntu Linux command line ?

Ubuntu supports various media player which allow you to play audio and video from command line.

Mplayer – Movie Player

mplayer is a movie player for Linux. It plays most MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, Ogg/OGM, MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many native and binary codecs. You can watch VCD, SVCD, DVD, Blu-ray, 3ivx, DivX 3/4/5, WMV and even H.264 movies, too.

You can install mplayer on Ubuntu as,

$ sudo apt-get install mplayer

Now, to play audio and video using mplayer, just type command “mplayer file_path/file_name.extention”

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )


Play Video from Ubuntu Linux Terminal as,

$ mplayer helloworld_video.mp4

Play Audio from Ubuntu Linux Terminal as,

$ mplayer helloworld_audio.mp3

Note: With mplayer running from command line, you can use Arrow Keys for forward and rewind.


1 thought on “How to play Audio / Video from Ubuntu Linux command line ?”

Leave a Comment

Android Android Build system Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded