Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: WMA incorrect track length  (Read 3107 times)

0 Members and 1 Guest are viewing this topic.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
WMA incorrect track length
« on: July 21, 2005, 11:29:56 am »
I've noticed with some of my wma's I've ripped from my cd's (using Media Player), the track length is incorrect...the tag editing feature in my mp3 players' software doesn't allow you to manually change this (you shouldn't need to I suppose).

Anyone know a) why this happens (Media Player bug?) and b) how I can fix the affected tracks?

Silver

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:April 16, 2025, 04:09:53 pm
  • Cunning like the Fox.
    • Mods'n'Mods
Re: WMA incorrect track length
« Reply #1 on: July 21, 2005, 11:35:53 am »
Not sure to be honest, but there was a bug in some versions of Winamp that displayed the wrong track length for WMA files not so long ago.... are you using that?

Most usual cause of this error in other formats - mp3/ogg etc... is that they are encoded in VBR not CBR which makes it much harder for the decoder to figure out how long the track is if it is not in the header...

My personal (and completely useless) suggestion is: don't use wma.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: WMA incorrect track length
« Reply #2 on: July 21, 2005, 11:46:57 am »
I'm not using WinAmp...I think Media Player is just placing an incorrect (almost random, but always too short) track length in the tag (if that's the correct term).  I don't see why, most of the time they are fine.

So, the track length appears wrong in anything I try to play the file back in (Media Player, portable MP3 player etc.).  However, when the track reaches the (incorrect) total track length, it just continues playing as normal.  So really just the time display and progress bar look incorrect, nothing is wrong with the audio.

I could stop using wma's but a) I like them and b) I'm not convinced the problem would go away even if I were using MP3's or another format.

Thanks for your reply tho

SalmonKing

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 352
  • Last login:August 16, 2007, 10:45:44 am
  • SK Jukebox
Re: WMA incorrect track length
« Reply #3 on: July 21, 2005, 07:09:31 pm »
What version of WMP are you using?  When I wrote SKJB, I used version 8 then 9 and it would give me the wrong track length on several MP3/WMA files.  From memory, version 10 did not do this (then again, my memory could be a bit hazy on this....rewriting a jukebox program around a different engine 3 times in a month can get a bit tiresome).

That's when I went with : http://www.multimediasoft.com/amp3dj/

One of the reasons I went with it was because the control seemed to be free, but after a month people's music stopped playing!!!   :o ::)

Anyway, kinda glad that happened, as I ended up buying a pretty good control.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: WMA incorrect track length
« Reply #4 on: July 25, 2005, 05:16:28 am »
What version of WMP are you using?  When I wrote SKJB, I used version 8 then 9 and it would give me the wrong track length on several MP3/WMA files.  From memory, version 10 did not do this (then again, my memory could be a bit hazy on this....rewriting a jukebox program around a different engine 3 times in a month can get a bit tiresome).

Thanks...I was using version 9 until a few days ago.  Hopefully version 10 won't have the problem.

Is there a (free) program I could use to alter the existing wma's with incorrect track lengths?

SalmonKing

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 352
  • Last login:August 16, 2007, 10:45:44 am
  • SK Jukebox
Re: WMA incorrect track length
« Reply #5 on: July 25, 2005, 08:01:18 am »
Thanks...I was using version 9 until a few days ago.  Hopefully version 10 won't have the problem.

Is there a (free) program I could use to alter the existing wma's with incorrect track lengths?

I wouldn't think it would store that in the file.  Are you sure it isn't calculating the length, and just showing it like the other editable fields?  Then again, who knows...maybe it is a field you can edit.  I'll have a look around.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: WMA incorrect track length
« Reply #6 on: July 25, 2005, 08:46:14 am »
I wouldn't think it would store that in the file.  Are you sure it isn't calculating the length, and just showing it like the other editable fields?  Then again, who knows...maybe it is a field you can edit.  I'll have a look around.

I'm not sure...

I agree, it shouldn't be held in the file...it's just that my mp3 player's software displays it with the other editable info, but the time itself is not editable.  It could just be calculated, but what would cause multiple programs to give the same incorrect time?

Wait...I just read your last reply, and did you ask what version of media player I was using just for playback?  I thought you meant what version was I ripping CD's with, and I was hoping the older version might 'label' rips incorrectly.  The reason I mention this is as I said above, the problem occurs in multiple programs, leading me to think the problem is with the files themselves.

Barry Barcrest

  • I'm only in it for the lack of money
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1620
  • Last login:November 09, 2021, 09:54:17 am
  • Simple Plan
    • E-Touch Jukebox
Re: WMA incorrect track length
« Reply #7 on: July 27, 2005, 04:25:45 am »
The legnth is generated by the software. So it is probably the software you are using to play the files that is at fault.

richms

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:January 07, 2025, 06:42:57 pm
  • s92a sucks
    • richms.com
Re: WMA incorrect track length
« Reply #8 on: July 28, 2005, 09:32:37 pm »
Any VBR format needs to have the length specified in the header of the file as the only way to calculate it is to read the entire file. There are plenty of MP3s out there with incorrect length headers, I dont use WMA myself so dont know of any tools to fix them unfortunatly.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: WMA incorrect track length
« Reply #9 on: August 02, 2005, 08:19:23 am »
Any VBR format needs to have the length specified in the header of the file as the only way to calculate it is to read the entire file. There are plenty of MP3s out there with incorrect length headers, I dont use WMA myself so dont know of any tools to fix them unfortunatly.

Ah thanks, that makes perfect sense, I am using VBR wma's...and the track lengths appear wrong in multiple apps so I'm sure it is in the header.

There must be some program out there to do it, I'll have a good look...