nakam
Posts: 1
Joined: Wed Jan 29, 2020 4:50 pm

Playing music files on Raspberry Pi 3

Wed Jan 29, 2020 5:00 pm

I have got the omxplayer playing .mp3 files in the /home/pi folder but it will not play music files in the /home/pi/Music folder.
Can't see where I am going wrong.
Also how do you get it to play all the music files in a folder instead of just one.
Please make you answer simple with a step by step guide for 10 year old!!

User avatar
lmarmisa
Posts: 1264
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: Playing music files on Raspberry Pi 3

Wed Jan 29, 2020 6:22 pm

Open a terminal and type these commands:

Code: Select all

cd ~/Music
ls -l *.mp3
omxplayer *.mp3
NOTE: the Tab key will help to complete your commands, parameters, directories and file names (for example type omx and Tab). This is a very useful help!.


W. H. Heydt
Posts: 12430
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Playing music files on Raspberry Pi 3

Thu Jan 30, 2020 12:18 am

nakam wrote:
Wed Jan 29, 2020 5:00 pm
I have got the omxplayer playing .mp3 files in the /home/pi folder but it will not play music files in the /home/pi/Music folder.
Can't see where I am going wrong.
Also how do you get it to play all the music files in a folder instead of just one.
Please make you answer simple with a step by step guide for 10 year old!!
Please supply the failing command and any error messages, plus a listing (ls -l) of the Music directory. Use code tags to make them properly readable.

jehutting
Posts: 143
Joined: Sun Feb 15, 2015 8:37 am
Location: The Netherlands

Re: Playing music files on Raspberry Pi 3

Sat Feb 01, 2020 8:46 am

Be aware that omxplayer can only play one file at the time.
So

Code: Select all

omxplayer *.mp3
simply won't work.
Also omxplayer doesn't support .m3u files (again, due to the single file play).

In case you have a music file with spaces in the name, use e.g. double quotes.

Code: Select all

omxplayer "filename with spaces.mp3"
Posting the content of your /home/pi/Music folder can give more insight.

Return to “General discussion”