How to shuffle and play mp3 songs from command line in Ubuntu Linux using mplayer

Do you want to play mp3 songs from command line in Ubuntu but don’t want to play it sequentially and shuffle those so you can listen random song. You can create a simple playlist of all the songs from the directory you have saved songs and want to play using below command,

 $ find -type f -iname \*.mp3 > playlist.txt

Now use below command to shuffle the songs and play from playlist as,

 $ mplayer -shuffle -playlist playlist.txt

You can refer to “How to play Audio / Video from Ubuntu Linux command line ?” for knowing how you can install media player mplayer in Ubuntu and play songs, videos etc using this multimedia player.


lynxbee_ezoic

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

   


Leave a Comment

Android Android Applications Android Build system Android Commands 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