# Remove Gap in MP3

**URL:** <https://community.mp3tag.de/t/remove-gap-in-mp3/14553>\
**Category:** Off-Topic\
**Created:** [March 18, 2013, 5:22pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553 "2013-03-18T17:22:01Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![karelg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karelg](https://community.mp3tag.de/u/karelg)\
**Post date:** [March 18, 2013, 5:22pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/1 "2013-03-18T17:22:01Z")

</div>

Hello,  
I was wondering if there is any way to remove the gap in MP3 after I have ripped the CD using Windows Media Player. Some CDs such as Pink Floyd, Genesis Duke have tracks on them that run continuously even though it is two different tracks. When I rip the CD onto my flash drive to MP3, there is always a gap which is annoying if the track is supposed to run continuously. Karel

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [March 18, 2013, 5:28pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/2 "2013-03-18T17:28:17Z")

</div>

> [@karelg](#):
>
> Hello,  
> I was wondering if there is any way to remove the gap in MP3...

Ther most certainly is but not with the means of MP3tag. MP3tag only edits the tags but not the audio stream. You would have to resort to programs like mp3directcut or players that have the ability to play tracks seamlessly.  
Also, sometime the encoding has the option to add or leave out extra silent bits at the beginning or the end.

---

<div class="post-metadata">

**Author:** ![garym](https://community.mp3tag.de/user_avatar/community.mp3tag.de/garym/32/4822_2.png) [@garym](https://community.mp3tag.de/u/garym)\
**Post date:** [March 18, 2013, 9:27pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/3 "2013-03-18T21:27:08Z")

</div>

> [@karelg](#):
>
> Hello,  
> I was wondering if there is any way to remove the gap in MP3 after I have ripped the CD using Windows Media Player. Some CDs such as Pink Floyd, Genesis Duke have tracks on them that run continuously even though it is two different tracks. When I rip the CD onto my flash drive to MP3, there is always a gap which is annoying if the track is supposed to run continuously. Karel

These files are probably ripped gaplessly (although I don't know anything about the WMP ripper), the problem is likely that your PLAYER is not playing them gaplessly. you need a different player. I have mp3, m4a, and FLAC files that all play gaplessly just as they should.

first, test the rips:

use something like foobar2000 or VLC to play the files. Do they play gapless?

---

<div class="post-metadata">

**Author:** ![karelg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karelg](https://community.mp3tag.de/u/karelg)\
**Post date:** [March 18, 2013, 9:48pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/4 "2013-03-18T21:48:34Z")

</div>

You are right! When I play them back in the Windows Media Player they play fine. They play with a gap on my Samsung Galaxy S3 and in my car using the player that is built in.

---

<div class="post-metadata">

**Author:** ![badadjective](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@badadjective](https://community.mp3tag.de/u/badadjective)\
**Post date:** [October 30, 2015, 12:29am UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/5 "2015-10-30T00:29:05Z")

</div>

> [@garym](#):
>
> These files are probably ripped gaplessly (although I don't know anything about the WMP ripper), the problem is likely that your PLAYER is not playing them gaplessly. you need a different player. I have mp3, m4a, and FLAC files that all play gaplessly just as they should.
> 
> first, test the rips:
> 
> use something like foobar2000 or VLC to play the files. Do they play gapless?

I have FLAC files that have indeed been ripped with an extra 2 seconds appended to the end of each track. Are you aware of any software that can remove these seconds in batch for FLAC files? With MP3 I already have a program that can do that but it's not FLAC compatible.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [October 30, 2015, 10:27am UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/6 "2015-10-30T10:27:42Z")

</div>

> [@badadjective](#):
>
> I have FLAC files that have indeed been ripped with an extra 2 seconds appended to the end of each track. Are you aware of any software that can remove these seconds in batch for FLAC files? With MP3 I already have a program that can do that but it's not FLAC compatible.

It's not a specialized program to remove gaps but you can do this with Audcaity, which is a very powerful open source audio editor.

---

<div class="post-metadata">

**Author:** ![badadjective](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@badadjective](https://community.mp3tag.de/u/badadjective)\
**Post date:** [October 30, 2015, 12:07pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/7 "2015-10-30T12:07:48Z")

</div>

> [@poster](#):
>
> It's not a specialized program to remove gaps but you can do this with Audcaity, which is a very powerful open source audio editor.

Thanks, I'm currently playing with that and it's working, but I was hoping to have an option to batch process removing exactly 2 seconds from the end of each track. Do you know of a way to do this with Audacity? I've only figured out how to do it one by one.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [October 30, 2015, 2:37pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/8 "2015-10-30T14:37:48Z")

</div>

> [@badadjective](#):
>
> ... I was hoping to have an option to batch process removing exactly 2 seconds from the end of each track. ...

You may use commandline utility FFMPEG or SOX to do what you want ...  
[http://ffmpeg.org/](http://ffmpeg.org/)  
[http://sox.sourceforge.net/](http://sox.sourceforge.net/)

Using sox.exe it would be something like this, not tested yet, ...  
trimming two seconds off the end, ...

sox.exe input output trim 0 -2

See also ...  
[http://sox.sourceforge.net/sox.html](http://sox.sourceforge.net/sox.html)  
... search also for effect "silence".

DD.20151030.1655.CET

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [October 30, 2015, 2:51pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/9 "2015-10-30T14:51:05Z")

</div>

There's a plugin for audacity:  
[http://wiki.audacityteam.org/wiki/Nyquist\_...ns#Trim\_Silence](http://wiki.audacityteam.org/wiki/Nyquist_Effect_Plug-ins#Trim_Silence)

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [October 30, 2015, 3:05pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/10 "2015-10-30T15:05:41Z")

</div>

> [@badadjective](#):
>
> I have FLAC files that have indeed been ripped with an extra 2 seconds appended to the end of each track. Are you aware of any software that can remove these seconds in batch for FLAC files?

FLAC is not only a codec but a command line tool: [https://xiph.org/flac/](https://xiph.org/flac/)  
It has options to control which parts of a file to encode.  
When used as part of a flac.exe command line, this will encode everything except the last 2 seconds:  
--until=-00:02.00

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [October 30, 2015, 3:52pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/11 "2015-10-30T15:52:37Z")

</div>

> [@ryerman](#):
>
> When used as part of a flac.exe command line, this will encode everything except the last 2 seconds:
> 
> ```
> --until=-00:02.00
> 
> ```

Good idea.  
Because flac.exe excepts flac-files as input too I think this is the best solution for trimming a constant part at the end instead of trimming silence.

---

<div class="post-metadata">

**Author:** ![badadjective](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@badadjective](https://community.mp3tag.de/u/badadjective)\
**Post date:** [October 30, 2015, 10:55pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/12 "2015-10-30T22:55:13Z")

</div>

> [@ryerman](#):
>
> FLAC is not only a codec but a command line tool: [https://xiph.org/flac/](https://xiph.org/flac/)  
> It has options to control which parts of a file to encode.  
> When used as part of a flac.exe command line, this will encode everything except the last 2 seconds:
> 
> ```
> --until=-00:02.00
> 
> ```

Thank you, I will read up and learn how to do this to my existing FLAC files and give it a shot,

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [February 14, 2016, 6:47pm UTC](https://community.mp3tag.de/t/remove-gap-in-mp3/14553/13 "2016-02-14T18:47:08Z")

</div>

> [@karelg](#):
>
> [...]  
> When I play them back in the Windows Media Player they play fine. They play with a gap on my Samsung Galaxy S3 and in my car using the player that is built in.

But if you will ever ever edit those MP3 files [and then re-save them as MP3], then they will have a real gap

As long as you don't change them, a proper player will take care of mini gaps [which are there but are not audible, because the fade in and out smoothly in such a way, that a whole album ripped to MP3 seems continuous]. But if you change them, a "second generation" MP3's will have audible gaps- and no player will help you then [you will have to edit out those gaps manually]
