Media Scanner Server drains my battery - Nexus 4 Q&A, Help & Troubleshooting

Hi all , the "mediaserver" drains my battery so much , i have searched for the solution but nothing can solve this problem.That was not happening before, as i listen music daily. What is solution for it ??

hoangtungst said:
Hi all , the "mediaserver" drains my battery so much , i have searched for the solution but nothing can solve this problem.That was not happening before, as i listen music daily. What is solution for it ??
Click to expand...
Click to collapse
There is or are corrupt music or video files on the device that force mediascanner too keep scanning because they cannot be recognized or filed.
You could try installing startup manger (or some similar app) to disable mediascanning at boot and Rescan Media Root to enable mediascanning if needed.
Both are in Play.

gee2012 said:
There is or are corrupt music or video files on the device that force mediascanner too keep scanning because they cannot be recognized or filed.
You could try installing startup manger (or some similar app) to disable mediascanning at boot and Rescan Media Root to enable mediascanning if needed.
Both are in Play.
Click to expand...
Click to collapse
I have tried both but it doesn't effect
Sent from my Nexus 4 using xda premium

hoangtungst said:
I have tried both but it doesn't effect
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Did you reboot after installing the 2 apps?

Yes , i did

no solution for this issue ??

need help

hoangtungst said:
need help
Click to expand...
Click to collapse
Check this thread. http://forum.xda-developers.com/showthread.php?t=2050252
It works for me. i'm at 92% battery remaining after 14hrs of standy by (with wifi) now. :good: I've also launched Google Play music and Gallery just to see if it will actually kill it when not in use.
The media server used to take my battery 20% out only after 2-3 hours of stand by.
try it out

Doesn't have any solution ? I have tried delete all my media file (mp3, video, picture,...) and delete all storage but it still scan .When i reboot , it stop scanning but if i take a picture by camera , it scans again

bump

hpl912 said:
Check this thread. http://forum.xda-developers.com/showthread.php?t=2050252
It works for me. i'm at 92% battery remaining after 14hrs of standy by (with wifi) now. :good: I've also launched Google Play music and Gallery just to see if it will actually kill it when not in use.
The media server used to take my battery 20% out only after 2-3 hours of stand by.
try it out
Click to expand...
Click to collapse
Not successful
Sent from my Nexus 4 using xda premium

Wow many reports are coming in about this issue..i also had this issue but i think i deleted the corrupted file and it did stop media scanner from scanning all the time
Sent from my Nexus 4 using xda app-developers app

hoangtungst said:
Hi all , the "mediaserver" drains my battery so much , i have searched for the solution but nothing can solve this problem.That was not happening before, as i listen music daily. What is solution for it ??
Click to expand...
Click to collapse
Requirements: Rooted phone WITH init.d support
How to install init.d support
Then use this media_kill zip file and the media server process will be killed every hour (it will not pause music, just kill when there is nothing playing).
And this will solve your problem... I've had it too with corrupt files etc...
Good luck!

Foxnov1990 said:
Requirements: Rooted phone WITH init.d support
How to install init.d support
Then use this media_kill zip file and the media server process will be killed every hour (it will not pause music, just kill when there is nothing playing).
And this will solve your problem... I've had it too with corrupt files etc...
Good luck!
Click to expand...
Click to collapse
i am using PA and Franco kernel , it enabled int.d script . I also flashed this file but it doesn't effect

Weird. Worked for me.. Do note that it only does this once every hour so you can still have the wakelocks just not as long.
Sorry that was my two cents

Media Scanner drains your battery becasuse youve either just downloaded a photo, copied music onto your device or videos, movies etc. so it keeps trying to scan them and think its corrupt.. kinda
so to overcome this, download this app
https://play.google.com/store/apps/details?id=com.clypher.mediascanner
what you do is after copying or downloading any media file onto your device, open that app and refresh....
or better still add its widget to your homescreen and just tap.
This way, it refreshes your media library and media scanner wont deplete battery..
OR.. just reboot your phone.. but that app is way better than rebooting your phone all the time you add new media files to it.

slimldj said:
Media Scanner drains your battery becasuse youve either just downloaded a photo, copied music onto your device or videos, movies etc. so it keeps trying to scan them and think its corrupt.. kinda
so to overcome this, download this app
https://play.google.com/store/apps/details?id=com.clypher.mediascanner
what you do is after copying or downloading any media file onto your device, open that app and refresh....
or better still add its widget to your homescreen and just tap.
This way, it refreshes your media library and media scanner wont deplete battery..
OR.. just reboot your phone.. but that app is way better than rebooting your phone all the time you add new media files to it.
Click to expand...
Click to collapse
thank you , i will try . Even i reboot my phone or delete all media files in my storage, the media scanner keep scanning .How can i find what is the corrupt file and delete it ?

hoangtungst said:
thank you , i will try . Even i reboot my phone or delete all media files in my storage, the media scanner keep scanning .How can i find what is the corrupt file and delete it ?
Click to expand...
Click to collapse
I always just thought playing music just required lots of battery. I will see if this helps.

Related

Downloaded SDRescan.. deleted all videos and messed up gallery app :(

So like i said in the title, i used the app SDRescan to force my phone to rescan media because i found that the gallery app was not automatically refreshing when i added new media to the phone.
I ran the app and a couple minutes later it finishes. Turns out it deleted ALL the phones videos (luckily no pictures). But the problem im having now is that the gallery app is not detecting any media on my phone. There are still pictures, and i readded a lot of my videos back, but the app is showing no media on the phone
I force closed the app, cleared it's data etc. I even formated my sd and put the files back on. Still it shows i have no media.
I thought about taking a new picture with the camera to see what would happen then, and guess what, now it shows i have 1 picture in the gallery. Is there a way i can get the gallery to see the other 1000 pictures i have taken? And all my videos?
edit: i downloaded the stock android gallery app but its the same in that app too. So it's not just HTC's app. Somehow android isnt recognizing my old media.
anybody? this is really killing me.
edit: did a factory reset and the problem persists What's have i done!
hmmmm this is an interesting one. ive had this before but i couldnt remember how i fixed it ...
what ROM are you using, or are you stock ?
SDRescan did nothing to your phone. Your are having problems with the stock Android Media Scanner in your phone. SDRescan does nothing else but notifies the Media Scanner to do it's job on demand, instead of on-boot or SD card mount. That's all it does.
So in short you are having problems with Android Media Scanner, try to look around in this area. I seen few reports on internet when media scanner deleted some files.
fkofilee said:
hmmmm this is an interesting one. ive had this before but i couldnt remember how i fixed it ...
what ROM are you using, or are you stock ?
Click to expand...
Click to collapse
On stock... I really hope u remember, nothing I try is helping. Even after a factory reset which is weird
faugusztin said:
SDRescan did nothing to your phone. Your are having problems with the stock Android Media Scanner in your phone. SDRescan does nothing else but notifies the Media Scanner to do it's job on demand, instead of on-boot or SD card mount. That's all it does.
So in short you are having problems with Android Media Scanner, try to look around in this area. I seen few reports on internet when media scanner deleted some files.
Click to expand...
Click to collapse
I figured the problem lies with the media scanner so I went into Settings > Manage Applications > Media Storage > clear data... but nothing changes.
http://code.google.com/p/android/issues/detail?id=3692
Isn't this your problem ?
I did have a .nomedia folder on my phone with some videos in and those were deleted. But also the videos in my DCIM folder were deleted. However im over that, my problem is that media scanner isnt picking any media.
I thought i would try another microsd card i had in my sister's mp3 player, and believe it or not android picked up the media. So somehow i think this SDRescan app damaged my sc card..
No, it didn't. Media Scanner has separate databases for each and every SD card. So it's the database for your old SD card which doesn't work, when you put in a new card a new indexing database was created for the ID of your new SD card.
This has happened to me a few times, all i do is find the file using "ES File Explorer" then select to open it with the default video player and it gets added to my library of videos
It's easy to do for a couple of vids, but not really practical if you've got like 10+
faugusztin said:
No, it didn't. Media Scanner has separate databases for each and every SD card. So it's the database for your old SD card which doesn't work, when you put in a new card a new indexing database was created for the ID of your new SD card.
Click to expand...
Click to collapse
i see. but this index, is it not stored on the phone memory? because a factory reset still hasn't solved the problem. I also formatted the sd card, so shouldn't the phone recognize it as a new memory card then?
sromer said:
This has happened to me a few times, all i do is find the file using "ES File Explorer" then select to open it with the default video player and it gets added to my library of videos
It's easy to do for a couple of vids, but not really practical if you've got like 10+
Click to expand...
Click to collapse
I tried that wil ES File explorer, and other explorers i have and it doesnt work for me.
It should. You don't have by any chance .nomedia file in root folder of the SD card, right ?
faugusztin said:
It should. You don't have by any chance .nomedia file in root folder of the SD card, right ?
Click to expand...
Click to collapse
I do. I'll try delete it and see if that helps
Edit: nope
You deleted it and what did you do next ? Did you started SDRescan or rebooted your phone ? Until the Media Scanner kicks in, there won't be any change.
The point is :
1) if you had a folder with data and then added the .nomedia file to it, then unfortunately thanks to the inner workings of the media scanner the file gets deleted instead of only removing the reference from database
2) the card will get indexed again only at boot, SD card insertion or when you execute apps like SDRescan which start the Media scanner manually.
yes! it works now!! thanks for all your help faugusztin!!
after i deleted the the .nomedia folder i did a restart and the problem persisted, but now (like two hours later) i just thought i would go and check the gallery app again and low and behold all my media appeared. Maybe the media scanner didnt finish or something idk. But im happy now
But i was under the impression that the .nomedia trick only blocks media from within that folder? Why was it blocking all my media?
Anyway thanks for all your help mate. really appreciated.
It does index, but it takes time.
It block media from that folder - and all subfolders. It is a sign which says "nothing to see there" - that includes the subfolders of that folder too. Since you had the file in root folder of the card, it didn't indexed anything.
I was too late...glad you got it sorted supreme.
Sent from my GT-I9000 using XDA App

Music Player showing multiple copies of files

I have 2 problems related to the music player, and I think they're both related to each other.
The first one, is that when I look at the list or scroll through the songs that I have saved in my phone ( external SD ), many ( or maybe even all ) of them show up with 4 copies with each. How did this happen? and how do I fix this?
The other problem is that, when I play songs from the "songs" tab, it always says "cannot play this format" , and then moves along until it finds something that it can.
Any ideas on how I can fix these problems?
dotslashbin said:
I have 2 problems related to the music player, and I think they're both related to each other.
The first one, is that when I look at the list or scroll through the songs that I have saved in my phone ( external SD ), many ( or maybe even all ) of them show up with 4 copies with each. How did this happen? and how do I fix this?
The other problem is that, when I play songs from the "songs" tab, it always says "cannot play this format" , and then moves along until it finds something that it can.
Any ideas on how I can fix these problems?
Click to expand...
Click to collapse
If you have a pc, take out the sd card and put it in the pc, in windows explorer make sure you can view system files, after that have a look in your sd where your music is and you will see lots of index files, delete them and that should fix your problem, after you plug the sd back your phone will generate new index files. there maybe an app that could remedy that but this is how I fixed it when I had the same problem.
Sent from my GT-N7000 using xda premium
I have the multiple song problem. Easy to solve- clear the data under settings/ applications/ media storage. it'll force the media libray to be re-written.
I have no idea why this occurs.
kbm said:
I have the multiple song problem. Easy to solve- clear the data under settings/ applications/ media storage. it'll force the media libray to be re-written.
I have no idea why this occurs.
Click to expand...
Click to collapse
Did this and it deleted the entire music library including playlist,gallery and other medias but I'm pretty sure that the pics, videos and other media are still intact via SD. Android probably can't see it so beware doing this. Backup media storage first and restore if you have problems
EDIT:
It's all good, just waited a few moments and the galley and the entire playlist went back
chickentuna said:
Did this and it deleted the entire music library including playlist,gallery and other medias but I'm pretty sure that the pics, videos and other media are still intact via SD. Android probably can't see it so beware doing this. Backup media storage first and restore if you have problems
EDIT:
It's all good, just waited a few moments and the galley and the entire playlist went back
Click to expand...
Click to collapse
You do have a few moments of "oh shi......".oh hang on it all good! :good:
Just unmount and remount memory card. Worked for me.
Sent from my GT-N7000 using xda app-developers app
U can install 'SD maid' and check for duplicates file in ur SD card
And use 'power amp' best music player play all types of music files
Sent from my GT-N7000 using xda premium
I had exactly the same issue in my note running miui. Un mounting and mounting the card solved the problem
Sent from my Galaxy Note using tapatalk
Out of interest...
Anyone know why this occurs?
Also, it only happended to me once i upgrded to ICS, never of GB.
Thanks for the replies guys. All I did was clear the data from 'Media Storage", and restarted the phone so that it'll recheck the SD card again.
bluerichy said:
Just unmount and remount memory card. Worked for me.
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
How do you do this from the phone? this seems to be a shorter step, since it probably wont require a reboot
It happens because you have moved the media file.The original file index location table has not been updated by touch wiz(Music player) but the new location of same files has been appended to the file index table.
For phone, the previous located file also exists. But when you try to play that file it says "Cannot play media, unsupported file format" .
The more number of times you move each file, the more no. of copies you have.
Example: You move your files 4 times. " Redemption Song"
You'll have 4 copies of the same track " Redemption Song"
When you try to play the 1st,2nd or the 3rd track of "redemption song", it'll say unsupported file format.
But when you'll play the 4th entry, it'll play.
The problem is the index file. Delete is. Let it create another file after every time you move your song files.
(post deleted)

[Q] Media scanner not scanning

Hi, I can't seem to get the media scanner to scan. I've tried downloading apps that allow you to manually scan but no luck.
Has anyone else had this problem? It's playing havoc with the fact that I can't access media files such as notifications and ringtones.
Help please!
piannetta said:
Hi, I can't seem to get the media scanner to scan. I've tried downloading apps that allow you to manually scan but no luck.
Has anyone else had this problem? It's playing havoc with the fact that I can't access media files such as notifications and ringtones.
Help please!
Click to expand...
Click to collapse
have you tried using 3rd party media scanner apps from the playstore?
saywhatt said:
have you tried using 3rd party media scanner apps from the playstore?
Click to expand...
Click to collapse
I have used an app called rescan media and it diesnt do anything. Ive also done a factory reset and its still not working. This has me stumoed.
piannetta said:
I have used an app called rescan media and it diesnt do anything. Ive also done a factory reset and its still not working. This has me stumoed.
Click to expand...
Click to collapse
OK, so I swapped with an old card and put the original one back in just to see if that triggered something, and after the reboot media scanner is back, now it keeps running indefinitely.
I'm sick and tired of this stupid technology. Android should be managing it's media index on the fly as things change, not scanning everything just in case something has been added. It's one of the bitter disappointments of Android...

No media scanninng

My phone is not scanning media for galary and music player are showing no content.where actually there are many songs and pic are in mobile we and see it through file manager.please help me as soon as posible.
if your media is in external sdcard.... move it to internal storage.
gallery is not detecting images in internal storage and memord card
Media server is consuming more than 50% battery so I disable the media storage from app and reboot it and enable it and again boot it but after that my gallery is not showing any of the images in memory card and internal storage ....please help me out
I also did a factory reset but it is not getting fixed
This solutions works, trust me, it worked for me.
Mahesh majha said:
Media server is consuming more than 50% battery so I disable the media storage from app and reboot it and enable it and again boot it but after that my gallery is not showing any of the images in memory card and internal storage ....please help me out
I also did a factory reset but it is not getting fixed
Click to expand...
Click to collapse
The fix has been posted on the forums, please go rad it, and perform the steps involved, it solved my mediaServer issue. You just need to have a little bit understanding of what you are doing and that you will be able to solve that problem of yours in no time.
http://forums.yuplaygod.com/threads/mediaserver-learn-how-to-get-to-the-root-of-this-issue.3487/
mfu007 said:
My phone is not scanning media for galary and music player are showing no content.where actually there are many songs and pic are in mobile we and see it through file manager.please help me as soon as posible.
Click to expand...
Click to collapse
Just try renaming the folder in which your all files are present, and rename it to back i you don't wanna change the folder name. This will work or else try this app https://play.google.com/store/apps/details?id=com.house.noranuko.mediarescanner this will start the media scanner if it wasn't running before and force close media scanner from settings once all your files are displayed or else the media scanner would be running and consume all your battery.
hkm93 said:
The fix has been posted on the forums, please go rad it, and perform the steps involved, it solved my mediaServer issue. You just need to have a little bit understanding of what you are doing and that you will be able to solve that problem of yours in no time.
It solved the mediaserver issue but what about the gallery is not detecting pictures both in internal storage and SD card . but new pics which I m clicking through camera are showing through gallery help me it really sucks.
Click to expand...
Click to collapse
No media Scanning Solved
Mahesh majha said:
Media server is consuming more than 50% battery so I disable the media storage from app and reboot it and enable it and again boot it but after that my gallery is not showing any of the images in memory card and internal storage ....please help me out
I also did a factory reset but it is not getting fixed
Click to expand...
Click to collapse
No media Scanning Solved
1. Open File Maneger (Stock rom)
2. Cliclk on Menu at left bottom corner , Action will open
3.Click on Properties
4. deselect Skip media Scan
5. click ok
6. restart your mobile
Enjoy
i am facing a problem of media scanning after i disabled and enabled media storage to get rid of heating and battery drainage issue but after that songs and pictures are not being detected even after i tried a factory reset. i saw a recent post with the same issue but i am not able to open the link whenever i try to open it it shows error. please can someone copy and paste the method to fix this media scanning problem?
Videos and files are not showing in my video player that are stored in internal plzz help me

Poweramp not working properly

Guy I have installed Poweramp yesterday and since then it is showing scanning library. Although no files are seen in album or artist or genre. While songs are seen in all songs only. I tried clearing data and cache. Uninstall and reinstalled. Nothing helped. Please help.
I use poweramp too, but i select my music folder manually instead of scanning all device
g.andi said:
I use poweramp too, but i select my music folder manually instead of scanning all device
Click to expand...
Click to collapse
I have done same buddy. Manually selected music folder only. Still it is stuck somewhere in scanning for hours
try using vlc media player for android it supports lot of file extensions for music.
try the alpha or beta builds, they arent in the play store so you have to google for the apk
ben cherian said:
Guy I have installed Poweramp yesterday and since then it is showing scanning library. Although no files are seen in album or artist or genre. While songs are seen in all songs only. I tried clearing data and cache. Uninstall and reinstalled. Nothing helped. Please help.
Click to expand...
Click to collapse
I use PowerAmp.
Check your microSD card if that is where your library is.
I haven't had any issues.
try rebooting your phone. I had issues before my replacement that every now and then the android media scanner would stop working and newly added music, ringtones, photos, etc wouldn't show up in the apps or settings until i rebooted the phone. that includes poweramp. it wouldn't' see the new stuff either till reboot. if that's the case maybe a reset would fix the problem. i hadn't had the problem with the replacement phone.
ben cherian said:
Manually selected music folder only. Still it is stuck somewhere in scanning for hours
Click to expand...
Click to collapse
Go to settings, apps, show system apps, find media storage, clear cache and data.
Reboot the phone and wait for the background media files indexing process to complete.
themissionimpossible said:
Go to settings, apps, show system apps, find media storage, clear cache and data.
Reboot the phone and wait for the background media files indexing process to complete.
Click to expand...
Click to collapse
How to know background media files indexing process is complete ? No notifications shown.
I waited for 3 minutes to let that thing happen in background if it's happening at all. I noticed in same settings the data gone up from 0bytes to 15mb and i guess it's done..
Still Poweramp after doing rescan and waited for 20minutes don't really show a change. Songs are seen under all songs. But empty under artist album etc.
Under folder option it shows something else... Attached pics below
Do you see all your albums listed on the LG music player?
themissionimpossible said:
Do you see all your albums listed on the LG music player?
Click to expand...
Click to collapse
Yes of course. That is why am asking.
ben cherian said:
How to know background media files indexing process is complete ? No notifications shown.
I waited for 3 minutes to let that thing happen in background if it's happening at all. I noticed in same settings the data gone up from 0bytes to 15mb and i guess it's done..
Still Poweramp after doing rescan and waited for 20minutes don't really show a change. Songs are seen under all songs. But empty under artist album etc.
Under folder option it shows something else... Attached pics below
Click to expand...
Click to collapse
If nothing works, you may want to give the PowerAmp 3.0 Alpha versions a try...
Just my two cents
spatone said:
If nothing works, you may want to give the PowerAmp 3.0 Alpha versions a try...
Just my two cents
Click to expand...
Click to collapse
Can you share the link

Categories

Resources