Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Make non-gapless MP3 files gapless without re-encoding?
« previous next »
  • Print
Pages: [1]

Author Topic: Make non-gapless MP3 files gapless without re-encoding?  (Read 8524 times)

Offline afruff23

  • Member
  • *
  • Posts: 171
Make non-gapless MP3 files gapless without re-encoding?
« on: October 29, 2006, 02:38:10 AM »
I have certain MP3 files which are not LAME encoded (or are encoded with an older LAME) so they are not gapless. As I understand it, LAME mp3 files are gapless because they write a certain header which provides an accurate measurement of a song's length. Gapless can only be achieved on platforms which read this header. Is there a way to add this header to certain mp3 files without re-encoding?
Logged

Offline arrow224

  • Member
  • *
  • Posts: 24
  • Ahh well...such is life
    • The Weird and the Wonderful
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #1 on: October 29, 2006, 10:21:21 PM »
Use a cross-fade setting?
Logged
H320 with v1.29k, Rockbox Experimental Kosh edition v2.9.25.

Offline ryran

  • Member
  • *
  • Posts: 379
    • b19 photography
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #2 on: October 30, 2006, 01:02:08 AM »
The direct answer to your question is no. There's currently no way to add lame header info to existing mp3s.
You might find love with some kind of gap-killer DSP, though there's nothing like that for Rockbox at the moment. I'd say what arrow suggested is your best bet, though it's not gonna be pretty.
Logged

Offline jaybeee

  • Member
  • *
  • Posts: 68
    • TMB
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #3 on: October 30, 2006, 03:25:35 AM »
Try processing the files through MP3packer (or here)

Report back what you find when using this please.
Logged
H120

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #4 on: October 30, 2006, 05:47:29 AM »
MP3packer does not add the LAME gapless tags but it can help some gapless players by adding correct VBR headers.
Logged

Offline lowlight

  • Developer
  • Member
  • *
  • Posts: 194
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #5 on: October 30, 2006, 11:27:40 AM »
In foobar2000, I think you can use the Utils > "Edit MP3 Gapless Playback Information" option to add encoder padding/delay info for non-lame files. I've never tried it.
Logged

Offline afruff23

  • Member
  • *
  • Posts: 171
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #6 on: October 30, 2006, 06:42:29 PM »
lowlight, I've seen that, but I have no idea what values to use.
Logged

Offline lowlight

  • Developer
  • Member
  • *
  • Posts: 194
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #7 on: October 30, 2006, 08:14:20 PM »
There are some guides in the foobar forums. Encoder delay is a fixed value that depends on the encoder used and then you experiment with the number of samples, counting down from the actual number, until the result is gapless. It's clearly it's not an efficient way to process a large number of mp3s.
Logged

Offline jaybeee

  • Member
  • *
  • Posts: 68
    • TMB
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #8 on: October 31, 2006, 10:26:51 AM »
Quote from: pabouk on October 30, 2006, 05:47:29 AM
MP3packer does not add the LAME gapless tags but it can help some gapless players by adding correct VBR headers.
Yes you're right. My bad.

And about the foobar util: yep, that could work, but as already said it isn't elegant. And what surprises me is that no-one has created a little tool to do such a thing. Tools like MrQuestionMan can tell what encoder was used, and so if they can do that, then they can add the gapless data surely. Maybe something for someone to think about.
Logged
H120

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #9 on: October 31, 2006, 01:49:55 PM »
Quote from: jaybeee on October 31, 2006, 10:26:51 AM

Tools like MrQuestionMan can tell what encoder was used, and so if they can do that, then they can add the gapless data surely. Maybe something for someone to think about.

Its not possible.  The encoder delay isn't enough, otherwise gapless information wouldn't even be needed.  You have to know how many samples were in the original file before it was encoded.  
Logged

Offline jaybeee

  • Member
  • *
  • Posts: 68
    • TMB
Re: Make non-gapless MP3 files gapless without re-encoding?
« Reply #10 on: October 31, 2006, 02:55:52 PM »
Quote from: saratoga on October 31, 2006, 01:49:55 PM
Its not possible.  The encoder delay isn't enough, otherwise gapless information wouldn't even be needed.  You have to know how many samples were in the original file before it was encoded.  
That'll do it then  ;)

Hadn't look into enough to figure out all the gapless stuff as I've always used LAME & foobar so get no probs. And with Rockbox it's grand too  ;D
Logged
H120

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Make non-gapless MP3 files gapless without re-encoding?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.112 seconds with 15 queries.