BigBoy911
Posts: 11
Joined: Sat May 16, 2020 11:43 am

Re: fruitbox MP3 jukebox

Sat May 16, 2020 12:03 pm

Hi Mike, thanks for a wonderful program and during this quarantine I have been inspired to build a Jukebox. I'm a noob when it comes to the Pi so I will likely have a few questions and I have already spent hours reading through the documentation and the comments on here. I am using the latest image file v1.16 that automatically loads fruitbox and plays MP3's on a usb.
My first issue is I can't find where fruitbox is automatically loaded. I have read discussion on editing the .brashrc but can not find anything in that file that would launch fruitbox. I'm looking to have it load directly into the Wurly skin. "./fruitbox --cfg skins/Wurly/fruitbox.cfg"
My second issue is editing the config file as I can't seam to get it to point to to the USB and I have tried everything that I can think of. I have read here that the music path could be set to "media/usb1"
In the documentation is states that if the database file is found first then the music path is ignored. I have also tried changing the database location to point to the usb with no luck.
I would like to run fruitbox using multiple USB's - ie. my music on one, my wife's on another etc. So pointing to the database file would seam ideal.

I am concerned that USB may not be mounted correctly. I can see that their is a folder media/usb1 on my pi but I can not list the contents of that folder. Any help you can provide is appreciated.

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Sat May 16, 2020 3:06 pm

BigBoy911 wrote:
Sat May 16, 2020 12:03 pm
Hi Mike, thanks for a wonderful program and during this quarantine I have been inspired to build a Jukebox. I'm a noob when it comes to the Pi so I will likely have a few questions and I have already spent hours reading through the documentation and the comments on here. I am using the latest image file v1.16 that automatically loads fruitbox and plays MP3's on a usb.
My first issue is I can't find where fruitbox is automatically loaded. I have read discussion on editing the .brashrc but can not find anything in that file that would launch fruitbox. I'm looking to have it load directly into the Wurly skin. "./fruitbox --cfg skins/Wurly/fruitbox.cfg"
My second issue is editing the config file as I can't seam to get it to point to to the USB and I have tried everything that I can think of. I have read here that the music path could be set to "media/usb1"
In the documentation is states that if the database file is found first then the music path is ignored. I have also tried changing the database location to point to the usb with no luck.
I would like to run fruitbox using multiple USB's - ie. my music on one, my wife's on another etc. So pointing to the database file would seam ideal.

I am concerned that USB may not be mounted correctly. I can see that their is a folder media/usb1 on my pi but I can not list the contents of that folder. Any help you can provide is appreciated.
Hi,

On the pre-prepared SD card image you are using, /etc/rc.local contains the fruitbox command to launch it, at the end of the file. The USB drive is mounted as /mnt/usb. Both the music path and database are stored on the usb drive, which means in theory you can swap out USB drives without confusing or recreating databases, as the database is stored along with the music on the USB drive.

Cheers,
Mike

BigBoy911
Posts: 11
Joined: Sat May 16, 2020 11:43 am

Re: fruitbox MP3 jukebox

Sat May 16, 2020 6:43 pm

Thanks Mike, I managed to get it working and loaded right into the Wurly skin. Works well when I swap USB drives and reboot. Now I just have to wait for my amazon order of buttons to arrive to start playing with that. In the mean time I have some cleaning up to do of my ID3 tags. But this looks very promising.

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Sun May 17, 2020 9:03 pm

I have the SD image, mounted like I would any other but everytime I try to boot it. The pi get stuck at root account is locked.

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Mon May 18, 2020 8:09 am

artisan232 wrote:
Sun May 17, 2020 9:03 pm
I have the SD image, mounted like I would any other but everytime I try to boot it. The pi get stuck at root account is locked.
I think I have a solution for this... I will update the SD image later this evening

EDIT - new image is now available, please download and try again...

https://www.dropbox.com/s/bc1r0ypwrvaql ... g.zip?dl=0

Cheers
Mike

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Mon May 18, 2020 10:47 pm

Thank you for the help, that got it to launch fruitbox. However now it just says cant find music path, is there a specific way I need to set up the usb?

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Mon May 18, 2020 11:13 pm

It does show failed on mount usb

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Mon May 18, 2020 11:46 pm

Ive tried every USB slot and it always shows failed to mount usb. The config file has no options for selecting a music path.

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue May 19, 2020 7:37 am

artisan232 wrote:
Mon May 18, 2020 11:46 pm
Ive tried every USB slot and it always shows failed to mount usb. The config file has no options for selecting a music path.
Hi

It works fine for me when I tested it. Is your USB drive ok? If you look in the /etc/rc.local file you will see the fruitbox command, which uses the --music-path option to specify the music path. You can change it there, or remove it completely, in which case fruitbox will use the MusicPath value in the skin you choose.

Cheers
Mike

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Tue May 19, 2020 2:30 pm

I Just put the music loose in the usb drive right?

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue May 19, 2020 2:46 pm

artisan232 wrote:
Tue May 19, 2020 2:30 pm
I Just put the music loose in the usb drive right?
Yep, but it can be in a sub-directory, or any number of sub directories...fruitbox will tunnel down into any directories it finds looking for mp3 files. Also you can define as many music paths as you like, and fruitbox will search through them one after another to create a single database.

Cheers
Mike

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Tue May 19, 2020 4:13 pm

Alright got it figured out. The USB needs to be a regular USB it can not be a USB with an sd card in it etc. Also the USB has to have ONLY songs on it, nothing else. Thank you for the help

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue May 19, 2020 4:30 pm

artisan232 wrote:
Tue May 19, 2020 4:13 pm
Alright got it figured out. The USB needs to be a regular USB it can not be a USB with an sd card in it etc. Also the USB has to have ONLY songs on it, nothing else. Thank you for the help
Great, glad you got it sorted...perhaps an SD card reader takes longer to initialise and it's not ready by the time fruitbox starts running maybe?

But there's no reason why it shouldn't work if there are non-mp3 files too on the disk though...

Cheers
Mike

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Tue May 19, 2020 4:53 pm

That's what I thought too, however any other folders on the drive or other files caused it to not find the music.

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue May 19, 2020 6:28 pm

artisan232 wrote:
Tue May 19, 2020 4:53 pm
That's what I thought too, however any other folders on the drive or other files caused it to not find the music.
Ok, thanks for pointing that out... it's not the intended behaviour, so I'll take a look

Cheers
Mike

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Tue May 19, 2020 7:13 pm

Since Fruitbox can't run MP4 files, is it possible to fix the metadata on .OGV files? All I can find online is editing OGG files.

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue May 19, 2020 7:20 pm

artisan232 wrote:
Tue May 19, 2020 7:13 pm
Since Fruitbox can't run MP4 files, is it possible to fix the metadata on .OGV files? All I can find online is editing OGG files.
Extracting metadata from OGV files is currently not possible as it's not provided by the Allegro 5 library I'm using. I will ask the dev guys about supporting this, but I don't expect them to come up with a solution to be honest.

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Tue May 19, 2020 8:29 pm

Happen to know of a good converter for OGV?

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue May 19, 2020 9:47 pm

artisan232 wrote:
Tue May 19, 2020 8:29 pm
Happen to know of a good converter for OGV?

Code: Select all

ffmpeg -i MyVideo -b:v 2M -vf scale=640x480 MyVideo.ogv
NOTE: in my experience, ffmpeg versions 4.1 and above seem to cause corruption ​of the video.  So I'd recommended using ffmpeg version ​4.0.2 (or older) ... see:
https://www.videohelp.com/software/ffmpeg/old-versions

Cheers
Mike

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Tue May 19, 2020 11:24 pm

Thank you, I appreciate the help so very much.

artisan232
Posts: 11
Joined: Sun May 17, 2020 9:01 pm

Re: fruitbox MP3 jukebox

Tue May 19, 2020 11:52 pm

I really prefer the MikeTV theme. Is there a way to get it to play randomly like the Wurly theme?

User avatar
fruitbox
Posts: 443
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Wed May 20, 2020 7:45 am

artisan232 wrote:
Tue May 19, 2020 11:52 pm
I really prefer the MikeTV theme. Is there a way to get it to play randomly like the Wurly theme?
Yes, you just need to edit skins/MikeTV/fruitbox.cfg and change AutoPlay to on. Please read userguide.txt... this should contain all the information you need.

Cheers
Mike

BigBoy911
Posts: 11
Joined: Sat May 16, 2020 11:43 am

Re: fruitbox MP3 jukebox

Sat May 23, 2020 1:52 am

Anyone using and HDMI audio extractor? I just purchased this one
https://www.amazon.ca/gp/product/B07DXY ... UTF8&psc=1

Unfortunately, when I try and use it with the PI it will not display video unless I connect the pi directly to the monitor first then disconnect it and run it through the extractor. As I plan to build an actual jukebox cabinet this will not work other than while I am in testing and setting this up.

I know others have bought the hifiberry hat but I also plan to use the GPIO pins for buttons and still being a newbie didn't want to play around with soldering onto the hat and voiding the warranty. I could also consider a usb sound adapter but reading through the post on here I did see someone give up on that. So I thought I choose the easiest route to having decent quality sound.

BigBoy911
Posts: 11
Joined: Sat May 16, 2020 11:43 am

Re: fruitbox MP3 jukebox

Sat May 23, 2020 2:03 am

If I buy a USB sound adapter then I'm looking at this one:
https://www.amazon.ca/UGREEN-External-H ... 6e7b0f409c

Any idea if this will be difficult to setup with fruitbox? I'm guessing it wont be plug and play.

Danalexwilson
Posts: 2
Joined: Sat May 23, 2020 6:54 am

Re: fruitbox MP3 jukebox

Sat May 23, 2020 6:56 am

Hi

This is awesome by the way. I'm very much just learning. Used the instructions and got it working how I would like. Moving onto the next phase of the project now and would like to add some physical buttons so I can then build a cabinet etc.

Can anyone recommend some push buttons for this project please.

Thanks in advance

Dan

Return to “Graphics, sound and multimedia”