Studious
Max Output Level: -86 dBFS
- Total Posts : 222
- Joined: 2010/07/17 12:40:45
- Status: offline
Cakewalk's MP3 encoder problem. Is there a fix?
When using Cakewalk's MP3 encoder (the $20 one) to export a Variable Bit Rate (VBR) MP3, it comes out thinking it's more than twice as long as the file actually is. For example, a 3:37 song shows up as 9:28. The crazy part is, there is no dead air in the file; it seems to be a tagging/metadata issue. But it's really messed up playing it back, as the time is so off in the display. Has anybody experienced this? Is there a fix?
post edited by Studious - 2013/11/25 23:27:03
|
scook
Forum Host
- Total Posts : 24146
- Joined: 2005/07/27 13:43:57
- Location: TX
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 20:48:42
(permalink)
Cakewalk uses the LAME encoder. I recall a similar post some time ago. I am not sure what the resolution was. I could not replicate the problem and am not sure what the cause of the problem is but it may be content related. The only thing I can offer is an updated version of the LAME encoder used by Cakewalk. Another user kindly recompiled TTSLame with a newer version of LAME. The files are posted here.
|
mettelus
Max Output Level: -22 dBFS
- Total Posts : 5321
- Joined: 2005/08/05 03:19:25
- Location: Maryland, USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 20:51:53
(permalink)
What are you playing your mp3 in? I am not sure if the VBR is broken, but the player you are using. For example, Windows Media Player does this on VBR mp3s... (a 3:30 song shows up at 5+)... but when playing, it plays the time accurately (just the end marker isn't in the right spot)... the song ends at 3:30 as it should, and then the player stops as it should. Windows Media Player just "assumes" it is a constant bit rate file when it opens and calculates song length.
ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
|
Studious
Max Output Level: -86 dBFS
- Total Posts : 222
- Joined: 2010/07/17 12:40:45
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 21:16:46
(permalink)
I have played the files in Windows Media Player and the built-in player in my Android phone. The timing is messed up in both. scook, are you recommending an update to the LAME encoder used by Cakewalk's MP3 encoder? Or to ditch the Cakewalk encoder entirely and configure LAME as an external encoder? (I've had mixed results with that method)
|
Razorwit
Max Output Level: -66 dBFS
- Total Posts : 1235
- Joined: 2003/11/05 18:39:32
- Location: SLC, UT
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 21:26:49
(permalink)
Hi Studious, Just a quick "me too". I see the same thing. I've ditched the Cakewalk MP3 encoder and just installed a LAME dll and use it as an external encoder. I'd love to see a fix for this, but if you get fed up the external encoder option works great. Dean
Intel Core i7; 32GB RAM; Win10 Pro x64;RME HDSPe MADI FX; Orion 32 and Lynx Aurora 16; Mics and other stuff...
|
scook
Forum Host
- Total Posts : 24146
- Joined: 2005/07/27 13:43:57
- Location: TX
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 21:28:45
(permalink)
The link I provided is an updated version of the encoder Cakewalk supplies and can only be used by those that have purchased the original encoder from Cakewalk. It might make a difference. The other thing to try is exporting the file as a wave and using a different encoder to verify the problem is with vbr encoding in LAME. I don't do much with mp3 so probably not going to be much help with this particular problem. As I said there was a similar thread about 6 months to a year ago but I don't remember the details. If I find a the thread, I will post a link to it.
|
Studious
Max Output Level: -86 dBFS
- Total Posts : 222
- Joined: 2010/07/17 12:40:45
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 21:53:50
(permalink)
Thanks scook, I see what you were referring to now. But that thread is over 4 years old. Is there a way to update Cakewalk's MP3 encoder (fully legit/paid for) to the most current LAME version 3.99? Or is some proprietary coding required to convert the lame dll to "tts"?
|
scook
Forum Host
- Total Posts : 24146
- Joined: 2005/07/27 13:43:57
- Location: TX
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:02:13
(permalink)
That is true but it is a newer version than you are running now. Maybe another cleaver user would like to take a stab at updating the library but until that time, the ones I pointed to is the most recent available.
|
mettelus
Max Output Level: -22 dBFS
- Total Posts : 5321
- Joined: 2005/08/05 03:19:25
- Location: Maryland, USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:05:04
(permalink)
Back to the OP, I loaded the encoder scook provided (thank you!), but am still seeing the issue. Then I jumped into Adobe Audition and selected "Highest quality 44.1kHz VBR" and now that same 3:22 minute song shows up in Windows Media Player as 23 minutes!! But I will say this, Audition converted it so fast I blinked and missed the progress bar (no joke!). So I am thinking the issue is the player you are using, not that the "converter is broken."
ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
|
Studious
Max Output Level: -86 dBFS
- Total Posts : 222
- Joined: 2010/07/17 12:40:45
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:11:32
(permalink)
Thanks for that scook! I must say though, it is quite lame (pun intended) that Cakewalk charges for an MP3 encoder, yet they don't update it.
|
Studious
Max Output Level: -86 dBFS
- Total Posts : 222
- Joined: 2010/07/17 12:40:45
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:20:13
(permalink)
mettelus Back to the OP, I loaded the encoder scook provided (thank you!), but am still seeing the issue. Then I jumped into Adobe Audition and selected "Highest quality 44.1kHz VBR" and now that same 3:22 minute song shows up in Windows Media Player as 23 minutes!! But I will say this, Audition converted it so fast I blinked and missed the progress bar (no joke!). So I am thinking the issue is the player you are using, not that the "converter is broken."
Thank you for confirming this issue. This problem also persists in many other players I've been trying, even the player built into Google Drive, for example (showing the 3:37 song as over 9 minutes). It makes the encoder kinda useless for sharing mp3's (unless you are cool with putting out wonky files).
|
scook
Forum Host
- Total Posts : 24146
- Joined: 2005/07/27 13:43:57
- Location: TX
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:34:10
(permalink)
If it is an encoder problem, it appears that both Cakewalk and Adobe share the same problem. I tried to find the previous thread, could not find it on Google.
|
WDI
Max Output Level: -54.5 dBFS
- Total Posts : 2069
- Joined: 2007/08/28 02:31:11
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:46:28
(permalink)
Personally, I've never had good luck with variable bit rate quality anyways for either audio or video. There always seems like parts are too compressed and you can hear or see what I call artifacts. Output a constant bit rate and compare file sizes. For audio my guess is the variable bit rate will not be significantly smaller anyways.
Sonar 7 PE Windows XP Pofessional (SP3) MSI K8N Neo4-F AMD Athlon 64 3500+ 2 GB PC 3200 Ram RME Fireface 800 Edirol FA-66 CM Labs MotorMix Old stuff: ARJO
|
mettelus
Max Output Level: -22 dBFS
- Total Posts : 5321
- Joined: 2005/08/05 03:19:25
- Location: Maryland, USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:58:37
(permalink)
I did a third VBR in another program, with similar results... then I opened these mp3's with programs readily available in the "open with" command... (the three VBR mp3s were made with the TTSLame (above), Adobe Audition, and Protected Music Converter) This is what happened when playing them: Windows Media Player & Movie Maker - opens but time bar is incorrect (length varies based on mp3 chosen as they were set to differing VBR settings) SONAR X3c - Ironically will not open any VBR mp3 if trying to "open with" X3 (says the file is corrupt), but does import them correctly into an audio track (all 3 VBRs) with the correct 3:22 timing Quick Time Player - hangs when try to "open with," program doesn't respond at all; but will open these files if Quick Time is already running (to the correct 3:22 timing) Adobe Audition - Will launch and play all three VBR mp3s with the correct 3:22 timing Pretty much a player issue... choose your weapons wisely
ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
|
arachnaut
Max Output Level: -67 dBFS
- Total Posts : 1168
- Joined: 2007/05/05 17:24:33
- Location: Sunnyvale, CA USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/25 22:58:39
(permalink)
- Jim Hurley - SONAR Platinum - x64 - Windows 10 Pro ASUS P8P67 PRO Rev 3.0; Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X; GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61 64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither
|
mudgel
Max Output Level: 0 dBFS
- Total Posts : 12010
- Joined: 2004/08/13 00:56:05
- Location: Linton Victoria (Near Ballarat)
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 04:46:15
(permalink)
Studious Thanks for that scook! I must say though, it is quite lame (pun intended) that Cakewalk charges for an MP3 encoder, yet they don't update it.
Under the GNU open source agreements, for a commercial entity to include the lame encoder in a retail product there is a licence fee payable which is simply passed onto the end user as per the licence. As for updating it we are talking about a modest point release difference. As the licence fees and other associated issues are not apply able for private non commercial use you can always use Cakewalk's simple instructions to setup the lame encoder yourself. Then you get it free and can update and use any version you choose.
Mike V. (MUDGEL) STUDIO: Win 10 Pro x64, SPlat & CbB x64, PC: ASUS Z370-A, INTEL i7 8700k, 32GIG DDR4 2400, OC 4.7Ghz. Storage: 7 TB SATA III, 750GiG SSD & Samsung 500 Gig 960 EVO NVMe M.2. Monitors: Adam A7X, JBL 10” Sub. Audio I/O & DSP Server: DIGIGRID IOS & IOX. Screen: Raven MTi + 43" HD 4K TV Monitor. Keyboard Controller: Native Instruments Komplete Kontrol S88.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 10:46:45
(permalink)
If the encoder does not add an explicit tag for running time, or if the player can't interpret the tag, then the player has to calculate running time based on the number of blocks multiplied by their size. Obviously, this will always result in an incorrect number with files whose block sizes are not consistent. It would appear that LAME does not write such a tag in a format that's readable by all players, so if this is important to you you'll have to either a) use CBR or b) use a different encoder. Audition, btw, uses its own Fraunhofer-licensed encoder. VBR files I've encoded with Audition all report correct running times.
All else is in doubt, so this is the truth I cling to. My Stuff
|
lawp
Max Output Level: -67 dBFS
- Total Posts : 1154
- Joined: 2012/06/28 13:27:41
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 10:51:22
(permalink)
i think that today, with less worry about storage space, CBR is the way to go (VBR was introduced to give even more compression/smaller file?) and fwiw, i always encode manually from a WAV (using razorlame) rather than as an export option from the daw
|
joden
Max Output Level: -65 dBFS
- Total Posts : 1263
- Joined: 2007/09/22 17:03:46
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 11:20:39
(permalink)
Just grab a little app called MP3 Diags - one of its functions is to repair the VBR Xing header data. one click! And it can do batches as well. I just create my MP3 in Sonar assign it to a folder setup for MP3 Diags and fix them, takes all of about 3 seconds when the MP3 is done! http://mp3diags.sourceforge.net/
|
mettelus
Max Output Level: -22 dBFS
- Total Posts : 5321
- Joined: 2005/08/05 03:19:25
- Location: Maryland, USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 15:03:35
(permalink)
bitflipper VBR files I've encoded with Audition all report correct running times.
I am glad you chimed in, since I do not understand the structure of these files. I have only tried this test once, and Windows Media Player "failed" on three different files. Are you implying that Windows Media Player reads Audition files properly for you? (Granted, I have locked out WPM from updating itself, so I might very well be "codec light" here?). For folks on Win7 and earlier, I would "assume" that the average user would have WPM set as their "default" mp3 player, which may be the concern with the OP. I definitely agree with the recommendations for higher data rate at CBR. They convert faster as well on that setting, and storage these days is not a big concern.
ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
|
joden
Max Output Level: -65 dBFS
- Total Posts : 1263
- Joined: 2007/09/22 17:03:46
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 17:28:00
(permalink)
It is a "pot luck" situation with VBR and Sonar mp3 encoder. I have done 5,6,7 in a row with no issues, but then 8, 9 and 10 WILL start showing as running for 12 minutes and longer (for a 3 minute file). For some reason the mp3 encoder hiccups on VBR files? I have not noticed the same issue with fixed rate mp3's. That app I mentioned is free open source, and does heaps more than just VBR header fixes...check it out
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 18:36:02
(permalink)
mettelus I am glad you chimed in, since I do not understand the structure of these files. I have only tried this test once, and Windows Media Player "failed" on three different files. Are you implying that Windows Media Player reads Audition files properly for you? MP3 files (like all lossy-encoded file formats, as well as lossless FLAC) consist of a sequence of discrete data blocks. With CBR, all blocks are encoded identically and are therefore all the same size (as determined by the quality setting) regardless of content. VBR allows each block to be encoded at a different quality, so that quality can be adjusted up or down (within limits you specify) as needed based on the complexity of the audio within a given block. It might seem that cheap storage and broadband connections have made VBR obsolete, but that wouldn't be entirely true all the time. Sometimes, you do care about file size. For example, I use VBR to get files under the 10MB limit imposed on a free SoundClick account. Other free file hosting sites such as SoundCloud don't limit individual files but instead give you a fixed disk quota for all files. And whenever file size does matter, VBR will generally yield higher fidelity than CBR at medium to low quality settings. Of course, if you're hosting files yourself or just copying them to your MP3 player, then just make them all 320 kb/s CBR and forget about it. I just did a test to make sure I wasn't blowin' smoke about Audition-encoded files...I loaded up a half-dozen VBR MP3s that I'd encoded with Audition and played them with Windows Media Player. It correctly reported the running time for each one.
All else is in doubt, so this is the truth I cling to. My Stuff
|
mettelus
Max Output Level: -22 dBFS
- Total Posts : 5321
- Joined: 2005/08/05 03:19:25
- Location: Maryland, USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 19:24:18
(permalink)
Hmmm... so I am most likely missing codecs for WMP? Edit: Actually I just opened and looked around the options/updates, etc. and it says I have the most current version and no updates are needed. Now I am lost. CBR is "good" for me
ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 19:37:44
(permalink)
No, not a missing codec. WMP is just reading a tag that LAME either doesn't write or doesn't write in the correct format for WMP to understand. Here's an MSDN article that explains it: http://support.microsoft.com/kb/306507 This behavior can occur if the .mp3 file was encoded at a Variable Bit Rate (VBR). Windows Media Player requires that the TLEN (or total length) field of the ID3v2 tag is set correctly to determine the appropriate length of a VBR .mp3 file. If this field is not set, the Windows Media Player samples the first few frames of the file and then estimates a length. If you don't already have Foobar 2000, grab it, it's free. Very handy for editing MP3 tags and lots of other things, including a "fix vbr mp3 header" feature that appears to correct incorrect TLEN tags. It takes awhile to run, so I assume it's actually counting block sizes to get an accurate total.
post edited by bitflipper - 2013/11/26 19:55:39
All else is in doubt, so this is the truth I cling to. My Stuff
|
mettelus
Max Output Level: -22 dBFS
- Total Posts : 5321
- Joined: 2005/08/05 03:19:25
- Location: Maryland, USA
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/26 20:14:59
(permalink)
Thank you! What a name to choose for a program FUBAR... er... Foobar :) I exported the one VBR mp3 in Audition 4 (came with CS5.5) using the "Highest quality 44.1kHz VBR" but WMP opened it as 23 minutes (for a 3:22 song), which is why I had asked that question.
ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
|
LHong
Max Output Level: -90 dBFS
- Total Posts : 24
- Joined: 2005/11/23 01:41:12
- Location: California
- Status: offline
Re: Cakewalk's MP3 encoder bug. Is there a fix?
2013/11/27 01:37:58
(permalink)
Fraunhofer decoder incompatibility Differing interpretations of an unclear portion of the MP3 spec led to certain versions of the Fraunhofer IIS MP3 decoder being unable to properly play certain MP3s created with certain versions of LAME. In order to demonstrate the problem, the problematic MP3 must have been created with LAME 3.97 or earlier, and must contain a frame with certain parameters and a very large amount of data, such as a 320-kbps frame which makes heavy use of the of the bit reservoir. The decoder must be the DirectShow filter l3codecx.ax version 1.5.0 or lower. That filter is the decoder used by Windows Media Player. The filter was upgraded to 1.6.0 by an August 2010 security update, the newer version can play the problematic MP3s. A workaround was implemented in LAME 3.98.0 beta 1 through LAME 3.98.2, and in LAME 3.99 alpha 1, whereby 320-kbps frames were limited in how much of the bit reservoir they could use. This resulted in wasted space when the bit reservoir would grow beyond the limit. In LAME 3.98.3 and beyond, and in LAME 3.99 alpha 2 and beyond, the method was changed such that the bit reservoir can't grow beyond the limit. More info: http://wiki.hydrogenaudio.org/index.php?title=LAME#VBR_.28variable_bitrate.29_settings
Try the latest version of LAME Encoder 2.99.5 - it might solve the issue! http://www.free-codecs.com/Lame_Encoder_download.htm Good luck!
post edited by LHong - 2013/11/27 12:05:35
|