help with media scanner - MTCD Software Development

So i have a px3 2g unit with malaysk rom installed on it to wich i attached a 500g laptop hdd using a y cable for 5v from acc. On the hdd i have about 12000 mp3's. The hdd is mounted on the usb1 as media storage. My problem here is as follows:
I turn the ignition on.
The head unit starts up and mounts the hdd as otg
All the files are available via file explorer almost instantly but
On the music player ( the default one ) and several others from the store it takes forever (almost 5 minutes) to index the files. I suppose it's the media scanner that sees the newly mounted storage and rebuilds the media library.
As you might imagine this is kinda annoying cause evreytime i turn the ignition off and than on again i have to wait 5-10 minutes in order to resume playback. Some players like powerplayer give an error saying invalid media. the stock music player tryies to resume play back from where it left but just can't because the media scanner it's not done rebuilding the media library. So is there a workaround? Can i disable media library rebuilding at every mount of the otg? I will not midify the contents of the mp3's folders on the hdd and i do not need it to rebuild it every time i turn the ignition on. Thanks

tvladan said:
So i have a px3 2g unit with malaysk rom installed on it to wich i attached a 500g laptop hdd using a y cable for 5v from acc. On the hdd i have about 12000 mp3's. The hdd is mounted on the usb1 as media storage. My problem here is as follows:
I turn the ignition on.
The head unit starts up and mounts the hdd as otg
All the files are available via file explorer almost instantly but
On the music player ( the default one ) and several others from the store it takes forever (almost 5 minutes) to index the files. I suppose it's the media scanner that sees the newly mounted storage and rebuilds the media library.
As you might imagine this is kinda annoying cause evreytime i turn the ignition off and than on again i have to wait 5-10 minutes in order to resume playback. Some players like powerplayer give an error saying invalid media. the stock music player tryies to resume play back from where it left but just can't because the media scanner it's not done rebuilding the media library. So is there a workaround? Can i disable media library rebuilding at every mount of the otg? I will not midify the contents of the mp3's folders on the hdd and i do not need it to rebuild it every time i turn the ignition on. Thanks
Click to expand...
Click to collapse
I use Media Monkey as it only has to build the index once.
Sent from my SM-G950U using Tapatalk

tvladan said:
So i have a px3 2g unit with malaysk rom installed on it to wich i attached a 500g laptop hdd using a y cable for 5v from acc. On the hdd i have about 12000 mp3's. The hdd is mounted on the usb1 as media storage. My problem here is as follows:
I turn the ignition on.
The head unit starts up and mounts the hdd as otg
All the files are available via file explorer almost instantly but
On the music player ( the default one ) and several others from the store it takes forever (almost 5 minutes) to index the files. I suppose it's the media scanner that sees the newly mounted storage and rebuilds the media library.
As you might imagine this is kinda annoying cause evreytime i turn the ignition off and than on again i have to wait 5-10 minutes in order to resume playback. Some players like powerplayer give an error saying invalid media. the stock music player tryies to resume play back from where it left but just can't because the media scanner it's not done rebuilding the media library. So is there a workaround? Can i disable media library rebuilding at every mount of the otg? I will not midify the contents of the mp3's folders on the hdd and i do not need it to rebuild it every time i turn the ignition on. Thanks
Click to expand...
Click to collapse
PowerAmp works for me, only scans the first time or when I force it due to adding content.

tvladan said:
So i have a px3 2g unit with malaysk rom installed on it to wich i attached a 500g laptop hdd using a y cable for 5v from acc. On the hdd i have about 12000 mp3's. The hdd is mounted on the usb1 as media storage. My problem here is as follows:
I turn the ignition on.
The head unit starts up and mounts the hdd as otg
All the files are available via file explorer almost instantly but
On the music player ( the default one ) and several others from the store it takes forever (almost 5 minutes) to index the files. I suppose it's the media scanner that sees the newly mounted storage and rebuilds the media library.
As you might imagine this is kinda annoying cause evreytime i turn the ignition off and than on again i have to wait 5-10 minutes in order to resume playback. Some players like powerplayer give an error saying invalid media. the stock music player tryies to resume play back from where it left but just can't because the media scanner it's not done rebuilding the media library. So is there a workaround? Can i disable media library rebuilding at every mount of the otg? I will not midify the contents of the mp3's folders on the hdd and i do not need it to rebuild it every time i turn the ignition on. Thanks
Click to expand...
Click to collapse
I'm using a 32GB Samsung pendrive, and I have a problem with it.
It does not start the music just it is a second time in the music player app. ( is Factory and Poweramp player )

After trying media monkey, poweramp, playerpro and of course the stock player I arrived at Gone Mad Media Player.
This one seems to be the most promising so far. It creates it's own media library, can do this automatically or manually, it has a highly customizable interface, pretty decent sound quality and in my case it is only limited in resuming playback by the time needed for the system to remount the hdd(otg). Wich in my case it's pretty big ("checking for errors" before mount takes 10-20 seconds because of the 500g hdd i'm using) but still it's a great improvement compared with the stock player that needs 10 minutes to reindex all the folders when the ignition is turned on.
Also GMMP has a Tasker integration setting that i hope could be used to resume playback triggered by usb masstorage being mounted event. So i have high hopes for this setup. I did not have much time to test since today i wiped the unit clean and updated to malaysk 3.0.
Also i found a usb mount apk by chainfire that seemd to mount the otg faster. I'll do some testing and post back. But still i greatly recommend gonemad media player for ppl who have a large mp3's collection on usb sticks or on usb otg hdds.
Poweramp also works pretty good, only i could not find a way to auto resume playback from where it left when the ignition is turned back on.

tvladan said:
After trying media monkey, poweramp, playerpro and of course the stock player I arrived at Gone Mad Media Player.
This one seems to be the most promising so far. It creates it's own media library, can do this automatically or manually, it has a highly customizable interface, pretty decent sound quality and in my case it is only limited in resuming playback by the time needed for the system to remount the hdd(otg). Wich in my case it's pretty big ("checking for errors" before mount takes 10-20 seconds because of the 500g hdd i'm using) but still it's a great improvement compared with the stock player that needs 10 minutes to reindex all the folders when the ignition is turned on.
Also GMMP has a Tasker integration setting that i hope could be used to resume playback triggered by usb masstorage being mounted event. So i have high hopes for this setup. I did not have much time to test since today i wiped the unit clean and updated to malaysk 3.0.
Also i found a usb mount apk by chainfire that seemd to mount the otg faster. I'll do some testing and post back. But still i greatly recommend gonemad media player for ppl who have a large mp3's collection on usb sticks or on usb otg hdds.
Poweramp also works pretty good, only i could not find a way to auto resume playback from where it left when the ignition is turned back on.
Click to expand...
Click to collapse
Hi i m in the same situation,just bought the unit,can you provide your latest feedback on your setup?

korekore1 said:
Hi i m in the same situation,just bought the unit,can you provide your latest feedback on your setup?
Click to expand...
Click to collapse
yup ... for now I bougt a 128g micro sd which remains mounted during car start - key turn (opposed to the usb that for some reason gets power cutoff). Also after trying gmmp for a while I switched to playerpro. I now have a 70G music library that player pro recognizes instantly after one initial 5 minutes scan that the app auto took after install.
The trick was to use the micro sd (that remains mounted in the system) or to try and find a direct +12v wire (that doesn't cuts off power during ignition) to power the Y cable (the cable also has a phone charger that makes 12v to 5v needed to power up the hdd) I used for the hdd. The second option required more work and unfortunately I didn't had the time to unmount (again) the head unit and fiddle with the cables ... for now the 128g sd card works well.
For the resume play part I use tasker and that works pretty good even with playerpro.

tvladan said:
yup ... for now I bougt a 128g micro sd which remains mounted during car start - key turn (opposed to the usb that for some reason gets power cutoff). Also after trying gmmp for a while I switched to playerpro. I now have a 70G music library that player pro recognizes instantly after one initial 5 minutes scan that the app auto took after install.
The trick was to use the micro sd (that remains mounted in the system) or to try and find a direct +12v wire (that doesn't cuts off power during ignition) to power the Y cable (the cable also has a phone charger that makes 12v to 5v needed to power up the hdd) I used for the hdd. The second option required more work and unfortunately I didn't had the time to unmount (again) the head unit and fiddle with the cables ... for now the 128g sd card works well.
For the resume play part I use tasker and that works pretty good even with playerpro.
Click to expand...
Click to collapse
thanks for the feedback!
So the hard disk setup didnt work out?Were there issues you couldnt resolve?
i will use a 5400 laptop hd that gets power from the usb cable.I have the android unit on the continuous 12v cable from the battery.
The thing i care about is not having to wait 5 minutes for the default player app to rescan all files (400gb).
I m also worried about it draining the battery when android sleeps,but thats another issue..

korekore1 said:
thanks for the feedback!
So the hard disk setup didnt work out?Were there issues you couldnt resolve?
i will use a 5400 laptop hd that gets power from the usb cable.I have the android unit on the continuous 12v cable from the battery.
The thing i care about is not having to wait 5 minutes for the default player app to rescan all files (400gb).
I m also worried about it draining the battery when android sleeps,but thats another issue..
Click to expand...
Click to collapse
the issue is that you need continuous power (5v) to the hdd, even during ignition event so the hdd won't unmount ever ... basically you need a y cable wiht the 2 data wires comming form the head unit and other 2 wires (+/-) coming from the battery. The power cables must be always on during key turn to start the car so the hdd won't unmount -that should be the first thing for you to test. (A better and more sure ideea would be that the hdd never gets powered down even with key off - out of the ignition not sure about this setup cause I haven't tested it) The power consumption during sleep should be minimal because most modern hdd's have a power saving / idle function and the head unit has a very good sleep mode.

tvladan said:
the issue is that you need continuous power (5v) to the hdd, even during ignition event so the hdd won't unmount ever ... basically you need a y cable wiht the 2 data wires comming form the head unit and other 2 wires (+/-) coming from the battery. The power cables must be always on during key turn to start the car so the hdd won't unmount -that should be the first thing for you to test. (A better and more sure ideea would be that the hdd never gets powered down even with key off - out of the ignition not sure about this setup cause I haven't tested it) The power consumption during sleep should be minimal because most modern hdd's have a power saving / idle function and the head unit has a very good sleep mode.
Click to expand...
Click to collapse
thanks for the info!i hope the 12v continuous from the battery to be enough.I can see the led from the hd's external case light up even if the car is turned off so i think it gets power

korekore1 said:
thanks for the info!i hope the 12v continuous from the battery to be enough.I can see the led from the hd's external case light up even if the car is turned off so i think it gets power
Click to expand...
Click to collapse
I also had a continuous +12v from the battery to the head unit. The unit itself didn't turn off during engine start (key turn) but the usb +5v that came from the head unit's usb socket got cut off. Also the +5v that came from the back of the head unit had a low amperage (0.2) and could not keep the hdd spinning ... so, that's why I made the Y cable(for greater amperage) ... but my mistake was that the +12v from the car I used to power the phone charger that powerd the hdd came from a wire that got cut off during engine start ... I never tested the setup enough before putting the head unit back in it's place ... so basically what happened in my case was:
- insert and turn key to on position: android waked up, mounted hdd, all was good
- turn key to start engine: android remained awake, hdd got disconnected and unmounted
- engine started: hdd starts, android starts to remount the hdd ... checks for errors (about 10 to 30 seconds)
the media scanner problem got solved (even with mount/unmount/remount because of the engine start) once I used gmmp and latter playerpro.
than I just got bored and bought the micro-sd ... I have no ideea how things are in the dashboard behind your unit but in my case on my santa fe it's a real mess of cables that require lots and lots of patience to be mounted back on the car ... so taking the head unit off the car and putting it back it's a real struggle for me

Related

Turn Gtab into GhettoBlaster

This community has been wonderful. As much as I have taken, e.g. Vegan Tab GE RC1 and GtabComb 3.3, I figure it was time to give back. I’m a live music archivist and carry alot of live music on my IPOD Nano 5g. I dreaded having to move my whole Itunes library to the gtab just to listen to my favorite show. Tunes Remote+ works fairly well but means I need to be chained to my desktop to listen to the music. After searching from one end of the internet to the other, with no help, I figured why not just plug the IPOD usb connector into the gtab to see what happens. So my steps were as follows:
1) Turn on IPOD Nano 5g (you results may vary with other mp3 devices)
2) Connect apple connector to IPOD and plug into usb slot on gtab
3) Turn on gtab (currently running BL1.2 / GtabComb3.3 )
4) Wait for boot up
5) Navigate to resident Google Music app
6) Viola! I can see all my shows on the gtab!
A couple of observations
While the music is playing, the IPOD appears to charging off the usb slot because I’m getting the “circular connected” screen on the IPOD and the charging screen is on. Two hours into listening to my playlist(s) and after disconnecting IPOD from gtab, IPOD battery has not gone down?! I added Music FX (from market) to help shape the sound coming from the speakers. SetCPU app is at 456/216 and plays the music just fine. USB debugging is on.
Nice! Thanks for the tip!

Play SR on Kenwood car stereo via USB?

Hey all - tried to search for this but didn't find anything... I have a Kenwood car stereo that plays iphone via usb port, but I wasn't able to see how to get it to work by seeing the SR as a media device. On my captivate, you could choose 'media player' as a usb mode, but that wouldn't work either. Any ideas? I like the idea of playing music while being able to charge the phone at the same time. It does charge off of the deck via usb, but just can't get it to find the music on the SR.
That is such a coincidence, I just put in probably the same (or similar) Kenwood stereo into my car (KDC-248U). I was looking around on the website and under the KDC-252U they list an Android app "Kenwood Music Control" it's in the Market. I am going to give that a try later today.
*** EDIT
Apparently the app analyzes your music or something and then puts a file on your device to make it readable, worth looking into.
Also check here http://androidforums.com/android-media/167502-kewood-car-deck-problem-solving.html
Nice call! You have to have the music on the external SD though, in case anyone else has a problem getting it running Then choose 'auto output' in preferences. Also appears that the program stays active all the time... which I'm not crazy about, but it does work!
Ozark_8125 said:
Nice call! You have to have the music on the external SD though, in case anyone else has a problem getting it running Then choose 'auto output' in preferences. Also appears that the program stays active all the time... which I'm not crazy about, but it does work!
Click to expand...
Click to collapse
That's great news! I gave it the ol college try but came up empty. Maybe you can help me out.
First what model stereo do you have and second, how do you store your media on your external SD , in a folder "music" or under a second level folder? Lastly, how did you get it to recognize did you plug it in and quickly choose USB storage or did you plug it in, choose USB storage and then cycle sources till you landed back on USB?
Sent from my SAMSUNG-SGH-I727 using Tapatalk
So I've been playing around with it and now I can get it to play all the time. First plug USB into phone then into Head unit. When head switches to "Reading" change source to something else (Radio, Portable, etc.). Now enable USB storage and open Kenwood App, while doing this switch to "USB" on the source and it will play.
Now I am having lots of issues getting new music to read, I have tried manually analyzing to no such luck. What options do you have on? I noticed that at one time on reboot it re-did the scan.
It's not very elegant but it works. I wish I didn't have to use an app running all the time.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
I first scanned the music so it was all recognized by the app. Plug it in, and while the stereo is showing 'reading's then turn on the PC storage (and assuming you have auto output enabled). Then it worked. Clunky, but better than nothing for linger car trips. My stereo is the x695 excelon deck.
Sent from my SAMSUNG-SGH-I727 using XDA App
I first scanned the music so it was all recognized by the app. Plug it in, and while the stereo is showing 'reading's then turn on the PC storage (and assuming you have auto output enabled). Then it worked. Clunky, but better than nothing for linger car trips. My stereo is the x695 excelon deck.
Kenwood Music Editor Light
After playing around a bit it seems really clunky and I don't like the idea of the app running all the time. However I did find a solution, the Kenwood Music Editor (Light Edition).
http://www.kenwood.com/cs/ce/music_editor_light/english/download.html
You are still limited to music on your external SD card but it does not require the Kenwood app to be running or present to work. It was meant to make music playable on any USB device so it can be used for flash cards as well if you are having issues reading them. You plug your device into a computer (Windows only) and then run a scan and you should be good to go.
After doing this it's the same situation to play for me, plug in and turn on USB storage (it takes long for my phone to get into USB storage so that is why I have to cycle the Sources after it's connected to get the stereo to play). It remembers track position and everything.
promiseofcake said:
After playing around a bit it seems really clunky and I don't like the idea of the app running all the time. However I did find a solution, the Kenwood Music Editor (Light Edition).
You are still limited to music on your external SD card but it does not require the Kenwood app to be running or present to work. It was meant to make music playable on any USB device so it can be used for flash cards as well if you are having issues reading them. You plug your device into a computer (Windows only) and then run a scan and you should be good to go.
After doing this it's the same situation to play for me, plug in and turn on USB storage (it takes long for my phone to get into USB storage so that is why I have to cycle the Sources after it's connected to get the stereo to play). It remembers track position and everything.
Click to expand...
Click to collapse
newer car-stereos usualy suport any file when you put the phone in "storage-device"-mode.
im looking to get controll over the phone from my stereo, yther use the player in the phone or spotify. works great whit an iphone, but cant find any solution to get the same controll from my htc desire hd...
im guessing its not the stereo itself but the phones software thats the problem, not allowing audio out or controlls in from the microUSB
id love a solution to this though
Check out the other apps like kenwood music control for android:
http://www.kenwood.com/cs/ce/

[Q] Song data over BT?

I stream audio from my Infuse to my Kenwood DDX719 head unit in my car, and the thing that kills me is all it does is stream audio, not song info (id3 tag). Does anyone know if there's any way besides BT file transfer to get song data from my phone to the device?
I could just put my songs on a USB flash drive and plug that in, but for some reason it takes like 15 minutes to scan an 8GB SD card, can't imagine a 16GB USB drive...
song data
TheNetwork said:
I stream audio from my Infuse to my Kenwood DDX719 head unit in my car, and the thing that kills me is all it does is stream audio, not song info (id3 tag). Does anyone know if there's any way besides BT file transfer to get song data from my phone to the device?
I could just put my songs on a USB flash drive and plug that in, but for some reason it takes like 15 minutes to scan an 8GB SD card, can't imagine a 16GB USB drive...
Click to expand...
Click to collapse
what rom are you on? I never got the data on my Kenwood unit until i went to JB rom. Any of them will work.
I gave up and bought a 16GB USB flash disk. I'm getting a GNII when it comes out in a few weeks anyway. But thanks for the input.

Moto G 4G - playing music on USB OTG intermittently stops/starts/stutters

Hi.
A few weeks ago I bought a 128GB usb 3.0 stick with fairly decent read/write speeds. I put ~60GB of music and I regularly use it while driving to listen to music through the car stereo.
Unfortunately, every few minutes (sometimes twice a minute, sometimes not for 10 minutes or so) it'll have a moment where it pauses for about half a second and starts again. It seems as if it's buffering.
I use Poweramp on my phone and an auxiliary cable. I've also tried playing music through the phone speakers while it was read/writing another task to the USB stick, and I noticed the same effect, but more like every 2 seconds.
Any ideas how I can fix this? It's very annoying.
Is there maybe a way I could make it download the ~6-8MB MP3 from the USB stick to the phone's memory before the song starts playing, so there wasn't this latency/stop-start effect when playing content?
Buy a more well built otg cable or a micro SD card reader...
I have one from eBay (70 pence) and it does what you explain..
Although 1080p films and videos play a charm... The music loses quality while being sent.. Don't know why but a mehova micro SD card reader works good
Sent from my XT1032 using XDA Premium 4 mobile app

MTCE GS PX5 USB storage issues

Short version:
Recently updated to the latest Hal9k 9.0 from stock 8.0. also updated the MCU. I had a couple USB drives I always used and never had an issue with them. Now I do.
After restarting the car, the USB drive (same with SDcards) says "there is a problem with the drive. Click here to fix" which to fix it, it wants me to format the drive. I did exactly that on one USB drive and still had the same problem.
Long version:
My only real complaint with the stock rom (and reason to update) was a lack of customization. Mainly the music app. I was using Musicolet rather than stock because the stock app is basic at best. But every time I started the car I had to manually click play and it would restart the last song rather automatically continue where it left off. Same with a few other local music apps I tried. Luckily, the upgrade to Hal9k's ROM fixed that problem...
The problem I'm having now is... Everything works fine until I park, turn the car off, etc... I get back in, start the car, and the song comes back on and plays like it should until the buffer is empty. Then tries to skip to the next song. But can't because of the storage error. It says "there is a problem with the drive. Click here to fix" which to fix it, it wants me to format the drive.
If I hold power to completely restart the stereo, it works perfectly fine until the next time I turn the car off and on again.
Tried various different things. Including using the stock app. All had the same result. Same with or without the "Reset USB devices when booting or waking up" enabled in the Mod settings.
At a loss for this. Hopefully someone has an idea.
First I tried a 128GB USB stick that was overheating causing it to drop out while I was driving. (Never had that issue before updating with the stereo but do have that issue on a PC when mass copying data to/from it. Figured it would be fine for the short burst of access required for MP3 playback)
The I tried a 32GB and 16GB USB had the storage error issues described above. And a 64GB and 8GB SDcard also having errors on wakeup.
Sent from my Redmi Note 7 using Tapatalk
Little surprised to have had zero comments. Any ideas would be appreciated.
Found if I pause the music before turning off the car it has the storage issue less. But, that kills the smooth no touch playback I'm hoping to obtain.
Really wanting to turn off the car, have music pause, get back in, start the car, and music picks up where it left off 100% without touching the stereo.
I do doordash, ubereats, etc for side cash and as a result can be in and out of my car a lot in short periods.
Don't be surprised everybody's in isolation watching Netflix instead of at work passing time on XDA Anyway, you should ask your question on the appropriate Hal9K thread. It would seem USB doesn't get properly re-initialized on wake up. I remember a thread where someone removed a resistor to fix a similar issue with USB that caused WiFi to drop but that would only be advisable if the software can't be fixed. This solution might help you until Hal9K fixes it.

Categories

Resources