3

How I can make playlist with omxplayer or omxplayer-wrapper? What I mean playlist, is something that can play next .mp3/.wav file automatically. You know, something like in mp3 player....

or It would be lovely if you can tell me how to play next file automatically with omxplayer!

I use RPi 3, jessie python 2.7.9(if I have to use omxplayer-wrapper)

and if you know how to make playlist without using omxplayer, please let me know

I'm really struggling at this, pls help! (

3

Would a shell script be OK?

    for song in /path/to/*.mp3
    do
            omxplayer "$song"
    done

This will play all MP3 files in a directory. You can replace /path/to/*.mp3 with a list of individual files if you want to be more specific.

  • 1
    External scripting is just about the only approach there is for omxplayer playlists. I can't remember where I've stuck the link, but I'm sure I've read comments from the creator/maintainer along the lines of 'it's not supposed to play playlists and I'm not developing the feature'. – goobering Jan 18 '17 at 15:30
  • 1
    I found the link: github.com/popcornmix/omxplayer/issues/… – goobering Jan 18 '17 at 16:00
  • thanks, but is there any other way to do this? I can't use mp3's GUI because I'm gonna use mine... – Seonghun Yang Jan 19 '17 at 1:40
  • @SeonghunYang I don't understand what is mp3's GUI, but anyway, take a look at omxplayerGUI: it should give you an idea on how to design a GUI for the player. – Dmitry Grigoryev Jan 19 '17 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.