mp3 files mysteriously get longer duration times

Search This thread

BryanJam

Member
Aug 2, 2022
26
2
My mp3 files get little encores tacked onto them for no apparent reason. Once dowloaded the song appears as it should (I had no reason to suspect any problem) Upon later listens, the song will end and then skip back to a random point during the song and play through to the ending again. At first I thought it was my mp3 player glitching So I didn`t think it was much of a problem. I changed mp3 players and it still happend. So I began checking the song lengths against the stated length of the songs I downloaded thinking the source was the problem. Sure enough many (but not all) of my song lengths would be anywhere between 10 seconds too long and double the song length. So I deleted and re-downloaded a bunch of my songs (After having went through the process of editing the tags so the songs would play in the right order and have added information I like to keep with my songs). While downloading this time I double checked the stated song length against the wikipedia information about the song. They would match to within a second or two at most. Then I would look in the music players listing for how long the song was. They would match to wikipedia as well. After re-editing the tags to how I want them sorted I checked the lengths again. Still matched. A few days later just for good measure I checked a few of my downloads... Too long again. I`d listen to the song and it would have an ending where there should be an ending and an added encore. Back where I started from.
 

blackhawk

Senior Member
Jun 23, 2020
10,402
4,137
Samsung Galaxy Note 10+
Welcome to XDA 🤗

I've had scripted jpeg malware before. They can damage files in the folder they are in but can't damage the folders (or files in those folder) within the main infected folder. The folder acts as containment. If one of those get in a database folder with hundreds or more loose files it be hell to find. The solution is to delete the malware jpeg.

Never heard of that happen with audio files though. It's either a 3rd party app, system corruption or malware doing it. Files should not mutate by themselves. Load some known good mp3's and see what happens.
Clear system cache if you have that option.
Whatever the cause it needs to be tracked down.
Happy witch hunting...

In the future use mp4's, wav or flak for higher resolution...
 

BryanJam

Member
Aug 2, 2022
26
2
Welcome to XDA 🤗

I've had scripted jpeg malware before. They can damage files in the folder they are in but can't damage the folders (or files in those folder) within the main infected folder. The folder acts as containment. If one of those get in a database folder with hundreds or more loose files it be hell to find. The solution is to delete the malware jpeg.

Never heard of that happen with audio files though. It's either a 3rd party app, system corruption or malware doing it. Files should not mutate by themselves. Load some known good mp3's and see what happens.
Clear system cache if you have that option.
Whatever the cause it needs to be tracked down.
Happy witch hunting...

In the future use mp4's, wav or flak for higher resolution...
thanks for trying to help. sure they are all in the music folder but each artist and album has a sub folder all to itself. whatever this is it is equal opportunity.... but not all inclusive. the extra long songs are spread out over lots of different places but not all songs in any given location are affected.

I`ve sent emails to the app devs to see if they have any ideas.

I`ve also scanned for viruses and malware. no hits. also the rest of the phone is running fine except for a little laggy at times on my tag editor app.

well that is unexpected! I played an affected song with Files by Google and it is the proper song length and has no encore. Both my tag editor which can play songs and my mp3 player app show that the song is too long and they play the encore. different developers for both apps.
 

blackhawk

Senior Member
Jun 23, 2020
10,402
4,137
Samsung Galaxy Note 10+
Take the tag editor out of the equation.
Any other 3rd party apps with permission to access the music folder?
Try using Poweramp as the player. It's rock solid stable.
If you have backup of the library on the PC, etc delete the one on the phone, then replace with the backup copy.
It could still be malware or software/firmware corruption. A factory reset may be needed if you can't find the root cause. Play with it.
What triggers it? Is it a specific file type?
Scan a effected file with online Virustotal.
Looking at running services and cache apps see what's running. If you can clear the system cache do so.

Do some Google searches too, it doesn't have to be that exact device. This is bizarre... until you track it down.
 

BryanJam

Member
Aug 2, 2022
26
2
checked file with virus total online. a bunch say undetected. 15 say unable to process file.

only file type is mp3 I can`t figure out the cause. it seems so random.

last time I cleared cache I lost all of my attached lyrics (I also translate the lyrics to spanish so my wife can better understand the song lyrics) that is a lot of work to undo. I am loath to do so. I`ll do so as last resort.

now the only apps that have access are camera, files by google, gallery, mcAffe Security, and messages. I removed permission from 10 or so apps. none of them were suspicious. all well known brand name apps.

tag editor no longer has permission nor my mp3 player (muzio)

going to DL poweramp

going to restore music files from an external hard drive
 

BryanJam

Member
Aug 2, 2022
26
2
can`t even find help online to locate how to clear system cache on my phone. it is a oneplus nord n10 5g

no wav files are affected that I am aware of. I don`t know how long they are supposed to be and I haven`t searched for and listened to them to find out.

I searched for cache cleaners in the play store and downloaded the highest rated antivirus app on the list. its by protectstar AI v1.1.4(1030). because of my search parameters I thought it would have a cache cleaner. nope.

I ran a regular scan which found no problems. running a deep scan now. 36% through and no problems.

It is saying it found a surprising number of apps. 363 of them at this point. If I added my last 5 phones apps together I might expect fewer apps.
 

BryanJam

Member
Aug 2, 2022
26
2
it seems I have to go into recovery mode (don`t yet know how and it sounds like something I don`t really want to do) in order to clear system cache. It also seems that doing so will clear all the app caches. I already stated why I don`t want to do that.
 

blackhawk

Senior Member
Jun 23, 2020
10,402
4,137
Samsung Galaxy Note 10+
it seems I have to go into recovery mode (don`t yet know how and it sounds like something I don`t really want to do) in order to clear system cache. It also seems that doing so will clear all the app caches. I already stated why I don`t want to do that.
The app caches are separate from the system cache at least on Samsung's. Verify that first.
Otherwise it's no big deal.

Some malware has no definition and will not show up on any scans. If it's a file(s) in your music database that's the cause it will need to be deleted. The trigger many times is when the file is opened. This may help you locate it if that's the cause.
 

BryanJam

Member
Aug 2, 2022
26
2
The backuo I had took me back WAY back. I swear I backed up more recently. I`ll be a long time straightening everything out.

Thanks again for the help! I`will come back and reply if the problem persists after I have caught back up.
 

blackhawk

Senior Member
Jun 23, 2020
10,402
4,137
Samsung Galaxy Note 10+
If it's a file with malicious metadata or something in it, it will be tough to find.
Contain, isolate, remove. Protect the backup copies!
I like to keep time staggered redundant backups, a minimum of two. If you're backup copy fails?
My music database is over a half dozen backups deep on multiple sdds and hdds.
 

BryanJam

Member
Aug 2, 2022
26
2
If it's a file with malicious metadata or something in it, it will be tough to find.
Contain, isolate, remove. Protect the backup copies!
I like to keep time staggered redundant backups, a minimum of two. If you're backup copy fails?
My music database is over a half dozen backups deep on multiple sdds and hdds.
I know sooner than expected. I was listening while I work and after about 15 songs or so I got an encore from one of the backup songs. I see there are three versions of that song in my back up. one 4 minutes 30 seconds one 3:49 and one 3:39. it`s supposed to be 3:50 according to wikipedia. of course I checked the 3:49 ends normally. but get this the 3:39 one ends at 2:00. go figure.
 

blackhawk

Senior Member
Jun 23, 2020
10,402
4,137
Samsung Galaxy Note 10+
I know sooner than expected. I was listening while I work and after about 15 songs or so I got an encore from one of the backup songs. I see there are three versions of that song in my back up. one 4 minutes 30 seconds one 3:49 and one 3:39. it`s supposed to be 3:50 according to wikipedia. of course I checked the 3:49 ends normally. but get this the 3:39 one ends at 2:00. go figure.
So the backup is tainted too?
 

BryanJam

Member
Aug 2, 2022
26
2
I am running another deep scan this time with the backup drive attached. 47% through no problems found but I am guessing it is. whe n the scan is complete I will play the tainted song directly from the backup to see if it has the three versions with three different lengths.
 

BryanJam

Member
Aug 2, 2022
26
2
I intentionally have multiple versions of songs. not for this one. However there are three versions of different lengths on the backup drive the one with 4:36 has an encore and two with 3:49 one of the two ends at 1:56 the other ends normally. nothing detected with the deep scan.
 

BryanJam

Member
Aug 2, 2022
26
2
hey black hawk. I am working on restoring my song collection. very few of the backed up songs were effected. doesn`t mean I don`t have to check them all!

I have two questions about power amp that you might be able to answer.

If I listen to half a song and then select a new song to listen to the next time the first song comes up to play it starts where It left off in the middle of the song. Is there a setting I have set up wrong or whats the deal? (figured this one out) it was the store/restore per track progress

also is there a way to reset play counts on the tracks? during this process I sometimes have to listen to a song a couple of times. When I get finished I would like to start with the track counts all back to 0 so that I can shuffle and not hear the same songs over again while neglecting some others.
 

blackhawk

Senior Member
Jun 23, 2020
10,402
4,137
Samsung Galaxy Note 10+
Mine doesn't behave like that; if I skip forward then back, that song starts from the beginning.
It's in settings, somewhere. Make frequent settings backups especially during set up, just in case. Those backups are important with a complex app like this.

I don't understand your second question. I use playlists or play albums. I don't use suffle or random select as I have over 6000 tracks! I have music database backups that go back over 12 years. Time staggered backups are important if the database is somehow corrupted.

I'm very curious what caused your problem. Never heard of this before, but that doesn't mean it can't happen! Again it reminds me of those malware jpegs.

I vet all downloads before moving them out of the download folder. It may be as simple as playing the track, opening the jpeg or more in depth like scanning with online Virustotal. If there's any doubt, no matter how small, that file gets deleted. Nothing is worth the risk of potentially damaging a database or OS load.
 

BryanJam

Member
Aug 2, 2022
26
2
Mine doesn't behave like that; if I skip forward then back, that song starts from the beginning.
It's in settings, somewhere. Make frequent settings backups especially during set up, just in case. Those backups are important with a complex app like this.

I don't understand your second question. I use playlists or play albums. I don't use suffle or random select as I have over 6000 tracks! I have music database backups that go back over 12 years. Time staggered backups are important if the database is somehow corrupted.

I'm very curious what caused your problem. Never heard of this before, but that doesn't mean it can't happen! Again it reminds me of those malware jpegs.

I vet all downloads before moving them out of the download folder. It may be as simple as playing the track, opening the jpeg or more in depth like scanning with online Virustotal. If there's any doubt, no matter how small, that file gets deleted. Nothing is worth the risk of potentially damaging a database or OS

shuffle has a slider with less random and full random. less random takes into account how many times a track has been played and prefers the least played tracks preventing randomly hearing the same track twice in a row, full random just randomizes the tracks and that being the case you might hear the same song twice in a row with the less random option you can play a twenty song playlist on shuffle and not hear the same song twice until all the songs in the playlist have been played at least once. With full random you might hear song 6 8 times before you hear song 1 once.

i heard back from power amp tech support. they tell me to do a full rescan in order to reset the play counts. if I do what they say which is go to settings/ library where there is an option to do a full rescan. I select this option and it warns me that all tag info will be erased from power amp database and library/folders will be rescanned also WARNING! track entries from ejected/unmounted storage/ SD cards will be removed from Library/Folders, buyt will stay in play lists.

i suspect the file manipulation had to do with the auto tagger I paid good money for and used to edit tags by album or artist and add lyrics to individual songs. I believe it was callaed autotagger - music tag editor by sergey churpin. I sent them an email quite a while ago. no response.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    no problems with the deep scan aand I just cleared system cache.

    will see what happens now.
    1
    p.s. i`m worried if I full rescan i`ll lose my tags... again! i also duoble checked the autotagger. it was the one I mentioned.
    1
    In ye olde days, MP3 was pretty easy, especially at constant bit rate.
    I take an MP3 of mine, it's 4,034,270 bytes. Times 8, divided by 128000 equals 252 equals 4m 12s
    It has an ID3V1 at the end.

    ID3V2 has inline tags, much more complicated.

    I would guess that your lyrics has messed things up.
    Or are there messed up MP3s without lyrics?
    1
    Short and immediate impression:

    The clean version is 3,046,701 bytes
    The dirty version is 4,512,228 bytes (this is the "short" version)

    Only the dirty version has the cover graphic, but it's a whopper, 1,573,900 bytes
    (3046701-(4512228-1573900))/128000*8 = 6.773 seconds
    The music has been truncated 6.773 seconds

    The clean version has space scoped out for ID3v2 but has no metadata.

    The dirty version has both ID3v1 (at the end of the file) and ID3v2 (at the beginning of the file).
    The metadata is all different
    ID3v2 lists the album as "The Best of the Who"
    ID3v1 lists the album as "Meaty, Beaty, Big and Bouncy"

    My best guess? What you used that put in ID3v1 truncated the file.
    Suggestion: Don't use that.
    1
    Well, you fooled me. The audio in the two files is totally unrelated. There is even a speed difference between them.
    The "clean" is a decent stereo mix.
    The "dirty" is mono as a stereo file.

    You may have a real problem with tagging, but this file doesn't prove anything.

    But, there was a point to all this. I finally noticed that my left and right speakers were reversed!