Posted: . At: 12:24 PM. This was 6 years ago. Post ID: 11529
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to shuffle play a directory full of movies with mpv on Linux.


The mpv movie player can play a directory of movies randomly, this is useful if the user wants movies playing randomly in the background.

Do it like this.

mpv --shuffle /media/jason/Seagate\ Backup\ Plus\ Drive/Movies/**

This is the result, a randomly chosen movie from your collection.

Mpv playing Fast and Furious 6.
Mpv playing Fast and Furious 6.

This is how to do this with mplayer. This will also pick a random movie file to play.

mplayer -shuffle -loop 0 /media/jason/Seagate\ Backup\ Plus\ Drive/Movies/**

This is how to create a random playlist of movies to have running in the background whilst doing other tasks.


1 thought on “How to shuffle play a directory full of movies with mpv on Linux.”

  1. Another highlight for my Raindrop ☔️

    Appreciate this, thank you. I always use mpv to listen to livestreams on YouTube (mostly Lofi Girl) via the command line (often with Tilda).

    mpv –no-video –volume=66 https://www.youtube.com/watch?v=jfKfPfyJRdk

    But when I listen to local FLAC files of downloaded lofi from Bandcamp sometimes it’s nice to shuffle things up and this will allow me to do so by way of the command line instead of having to use some graphical audio player.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.