Posted on 4 Comments

OMXPlayer Series Play

This is a little script to make OMXPlayer on the Raspberry Pi cycle through every file in a specified folder, useful for playing sequential movies or series of episodes.

 

Example:
[root@raspbian ~]# omxseries hdmi /media/stuff/videos
would play everything in /media/stuff/videos and send the audio over the HDMI port.

Download the script to your Pi with this code:

4 thoughts on “OMXPlayer Series Play

  1. Hello, and thx, this is just what i needed, can you tell me what i can add to the script so it would loop.

    i need it to start over when its done playing all files in the folder.

    1. while true
      do
      for file in $2/*
      do
      omxplayer -o $1 $file
      done
      done

      That should work, I have simply put the original code into a continuous loop.

      1. Thx that works! 🙂

        it might be me who is tired, but i cannot seem to find any list on which videofiles the omxplayer supports. atm i now it works with mp4 and mkv, and dont work with wmv.

        1. Those are merely file extensions – it will play anything as long as it’s encoded with H.264, as the Raspberry Pi only supports that codec for hardware acceleration.

Leave a Reply to Lars Peter Cancel reply

Your email address will not be published. Required fields are marked *

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