MP3 Player (in/ext DAC)

Post Reply
ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

MP3 Player (in/ext DAC)

Unread post by ripper121 » Fri Apr 05, 2019 11:09 pm

Hi :),
i have Ported the M5Stack MP3 Player (http://forum.m5stack.com/topic/143/less ... 3-player/2) to OdroidGo.
With external DAC you get good Sound (the internal one is like in Go-Play not the best).

Source: https://github.com/ripper121/odroidgomp3
(you need this lib https://github.com/earlephilhower/ESP8266Audio if you want to compile it by your own)

Download
External DAC (e.g. PCM5102a): https://github.com/ripper121/odroidgomp ... yer_DAC.fw
Intrenal DAC: https://github.com/ripper121/odroidgomp ... -player.fw

Place your MP3-Files into /root/mp3 folder.

Controles:
Sound Button = Mute/UnMute
Up/Down = Volume
Left/Right = Next/ Prev Track
A = Play/Pause
Menu = Display On/Off (Save Battery)

MP3 file is not playing? --> ID3 Infos are missing
Then you need to add Artist and Title to the Metadata.

Code: Select all

ffmpeg.exe -i Haydn_Cello_Concerto.mp3 -metadata comment="OdroidMP3" -metadata artist="Haydn"  -metadata title="Cello Concerto" out.mp3
Download ffmpeg (windows):https://ffmpeg.zeranoe.com/builds/

You like to have a Album Cover for your MP3 --> Create a JPG file with the name MP3FILENAME.jpg

Code: Select all

test.mp3 --> test.mp3.jpg (75x75 Pixel work the best)
Attachments
WIN_20190405_16_03_54_Pro.jpg
WIN_20190405_16_03_54_Pro.jpg (65.96 KiB) Viewed 895 times
WIN_20190405_16_02_27_Pro.jpg
WIN_20190405_16_02_27_Pro.jpg (90.75 KiB) Viewed 895 times
Last edited by ripper121 on Wed Apr 17, 2019 9:07 pm, edited 5 times in total.
These users thanked the author ripper121 for the post:
Soul57 (Mon Apr 15, 2019 11:43 pm)

pmprog
Posts: 36
Joined: Thu Oct 18, 2018 4:01 am
languages_spoken: english
ODROIDs: ODROID-GO
Has thanked: 0
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by pmprog » Sat Apr 06, 2019 12:03 am

Interesting, I'd probably find this useful if my go had a headphone socket...

Have you added a dac/headphone socket inside your go?

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Sat Apr 06, 2019 12:06 am

Yes a pcm5102a module.
If you want I can take a picture.

pmprog
Posts: 36
Joined: Thu Oct 18, 2018 4:01 am
languages_spoken: english
ODROIDs: ODROID-GO
Has thanked: 0
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by pmprog » Sat Apr 06, 2019 12:20 am

Would be great to see, thanks. Was it easy to install?

I've been tempted to get a second case and paint the inside before moving the electronics across (i built mine before thinking about painting it)

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Sat Apr 06, 2019 1:16 am

You can also buy a add on board:
https://backofficeshow.com/shop/odroidgohat
Take a look at his yt channel. He added also a headphone jacket to his odroid go.

I have mine painted in silver because I had a silver Gameboy pocket when I was a kid :).

No it was really easy to add this dac and jack.

pmprog
Posts: 36
Joined: Thu Oct 18, 2018 4:01 am
languages_spoken: english
ODROIDs: ODROID-GO
Has thanked: 0
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by pmprog » Sat Apr 06, 2019 2:35 am

Yeah, i watched his video a while ago now. Wasn't sure about the"hat" version though, with it being all exposed

Nemo1984
Posts: 106
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go
Has thanked: 1 time
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by Nemo1984 » Sat Apr 06, 2019 6:21 am

I have downloaded the fw for the internal DAC. It is only 8kb and says "Checksum error" on flash. I believe it is only the icon without any .bin in it.

Thanks, can't wait to try it.

surpryse
Posts: 18
Joined: Tue Jul 31, 2018 4:16 pm
languages_spoken: english
ODROIDs: ODROID-GO
Has thanked: 0
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by surpryse » Sat Apr 06, 2019 4:27 pm

Same problem as nemo1984.
Checksum Error on flash, probably the file in the Internal DAC version has been badly loaded, which is 9kb compared to the External DAC version, which is more than 900kb.

User avatar
odroid
Site Admin
Posts: 30282
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 3 times
Been thanked: 26 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by odroid » Mon Apr 08, 2019 8:30 am

Right! I also need a working firmware for the internal DAC.
@ripper121, Please upload a good firmware.

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Mon Apr 08, 2019 3:59 pm

Should be fixed.
But be aware the Internal DAC is crappy at low volume (like in the Go Play FW)

Nemo1984
Posts: 106
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go
Has thanked: 1 time
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by Nemo1984 » Tue Apr 09, 2019 4:11 am

Thank you. Is there a specific folder to put the mp3s?

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Tue Apr 09, 2019 4:14 am

Place the mp3's into the SD card root directory.

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Tue Apr 09, 2019 4:15 am

I have tested the player with http://convert2mp3.net/ downloaded mp3 files. So not sure if every mp3 is working.
These users thanked the author ripper121 for the post:
Nemo1984 (Tue Apr 09, 2019 11:21 pm)

Nemo1984
Posts: 106
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go
Has thanked: 1 time
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by Nemo1984 » Tue Apr 09, 2019 10:30 pm

I have tried a few mp3s between 128kbps and 220kbps. It's hit or miss, but I like the nifty little player.

Thanks!

EDIT: I have done further testing. If your mp3 file seems to "skip", lower the volume. I don't know if it's the DAC saturating. Also, any singing seems almost muted. I don't know if this player does play both stereo tracks or picks just one, or if it's just a bitrate limitation.

Soul57
Posts: 6
Joined: Thu Mar 28, 2019 4:29 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 3 times
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by Soul57 » Mon Apr 15, 2019 11:35 pm

I've downloaded both updated .fw files, placed them in the relevant folder and have attempted to run the internal dac for playback through the onboard speaker - I get a black screen. Similarly when trying to run the external dac (despite not having the ability to hear playback) and the same thing happens. What am I doing wrong? Do I need to do something else? Drop more files in a folder? I'm running a 32gb class 4 Sandisk card.

Any help would be greatly appreciated.

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Mon Apr 15, 2019 11:37 pm

1. Flash it
2. Repower it

Sometimes after a Flash of a FW you need to repower the Odroid GO.
If you still see nothing, Push the Controle Button, this is for Screen ON/OFF

Soul57
Posts: 6
Joined: Thu Mar 28, 2019 4:29 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 3 times
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by Soul57 » Mon Apr 15, 2019 11:57 pm

Hi Ripper,

Thanks for your reply. I have flashed the player and recycled the power. I can see the player screen but none of the controls work - any ideas?

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Tue Apr 16, 2019 12:09 am

Place your MP3 into the SD Card's root Directory "/".
Dose it show some titles?
Are the buttons working with other Firmwares?
For sound test you can load a MP3 via http://convert2mp3.net/ from any YT video. These MP3 are working fine (some other mp3 depending on codec,samples or wathever may not work)

Soul57
Posts: 6
Joined: Thu Mar 28, 2019 4:29 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 3 times
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by Soul57 » Tue Apr 16, 2019 12:30 am

Thanks for your reply.

I can see an mp3 file that I have placed in the card root but as I say, no controls work, I can't even lower the volume. Convert2mp3.net throws up a message about being blocked from working in my country/region. Any other suggestions?

JasonB32
Posts: 48
Joined: Sat Aug 04, 2018 11:33 pm
languages_spoken: english
ODROIDs: oDroid GO
Has thanked: 0
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by JasonB32 » Tue Apr 16, 2019 7:38 am

Ok so I've tried them. The external DAC fw sound is really good, except I can only play the first mp3 file, the rest it will not scroll left/right to any other track, when it finally... glitched to scroll to next track it immediately froze, power cycling brings up the first mp3 file again?

You're so close to bringing a good MP3 player to the oDroid GO, are you able to fix this?

I'm using the latest oDroid GO firmware as well.

Edit: Also can you please allow us to put the mp3 files into a root/mp3/ folder?

Thank you!!!

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Tue Apr 16, 2019 3:48 pm

It depends on your MP3 file, sample rate and track infos stored in it.
For me the http://convert2mp3.net/ work the best (every title without problems)
Yes I can change this to a mp3 folder, but for the easie of you i let it in the first release in the root folder. Will change it in the next release (at the moment not much time). But feel free to change it, its open source ^^

JasonB32
Posts: 48
Joined: Sat Aug 04, 2018 11:33 pm
languages_spoken: english
ODROIDs: oDroid GO
Has thanked: 0
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by JasonB32 » Wed Apr 17, 2019 1:34 am

Ohhh ok great I'll try that converter on.

Thank you for changing it in next release, looking forward to it!!!
Jason

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Wed Apr 17, 2019 4:03 pm

MP3 file is not playing? --> ID3 Infos are missing
Then you need to add Artist and Title to the Metadata.

Code: Select all

ffmpeg.exe -i Haydn_Cello_Concerto.mp3 -metadata comment="OdroidMP3" -metadata artist="Haydn"  -metadata title="Cello Concerto" out.mp3
Download ffmpeg (windows):https://ffmpeg.zeranoe.com/builds/

You like to have a Album Cover for your MP3 --> Create a JPG file with the name MP3FILENAME.jpg

Code: Select all

test.mp3 --> test.mp3.jpg (75x75 Pixel work the best)

ripper121
Posts: 64
Joined: Mon Jan 28, 2019 7:00 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by ripper121 » Wed Apr 17, 2019 9:06 pm

Crash Bug is Fixed
Folder for MP3 is now /root/mp3

JasonB32
Posts: 48
Joined: Sat Aug 04, 2018 11:33 pm
languages_spoken: english
ODROIDs: oDroid GO
Has thanked: 0
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by JasonB32 » Thu Apr 18, 2019 12:29 am

Ohhh awesome, can't wait to try it out,

Thank you Ripper!!!

Nemo1984
Posts: 106
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go
Has thanked: 1 time
Been thanked: 0
Contact:

Re: MP3 Player (in/ext DAC)

Unread post by Nemo1984 » Thu Apr 18, 2019 9:03 am

I tried to make album cover work. It didn't. No biggie, thie is a little miracle.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest