(Help)It is impossible to make a Loop with mp3

Questions, skill improvement, and respectful critique involving music, sound, and movies.
Post Reply
Message
Author
User avatar
Zephy
Regular
Posts: 25
Joined: Tue Aug 01, 2017 6:20 pm
Completed: Witches's Tea Party, Dreamfarer, Fairy in a Jar, Shell of Permafrost
Soundcloud: https://soundcloud.c
itch: https://zephysonas.i
Location: California
Contact:

(Help)It is impossible to make a Loop with mp3

#1 Post by Zephy »

I learned that the mp3 codec will always add a few milliseconds of silence to the beginning and end of the file when it compresses. You can have a perfect seamless loop as a WAV file but it will no longer be perfect when it's turned to mp3.
Screen Shot 2020-12-14 at 4.35.21 PM.png
See the two files above should be identical but you will see the Green Mp3 file has a few seconds of deadspace added to it.

As a composer how do you deal with this issue? Do you just not use mp3 or other lossy codecs? Do you use an application to trim it in the export?

Screen Shot 2020-12-14 at 4.40.51 PM.png

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: (Help)It is impossible to make a Loop with mp3

#2 Post by Imperf3kt »

I've never experienced this, it's not part of the LAME codec as far as I am aware.

What program are you using to do the conversion?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Zephy
Regular
Posts: 25
Joined: Tue Aug 01, 2017 6:20 pm
Completed: Witches's Tea Party, Dreamfarer, Fairy in a Jar, Shell of Permafrost
Soundcloud: https://soundcloud.c
itch: https://zephysonas.i
Location: California
Contact:

Re: (Help)It is impossible to make a Loop with mp3

#3 Post by Zephy »

The LAME codec is one of the codecs that does not do this. Im doing my conversions in Izotope Ozone when I master the tracks.

User avatar
FulminisIctus
Regular
Posts: 32
Joined: Sun May 21, 2017 1:30 pm
Projects: Mycorrhiza, LoveSick Darlings, Human Reignition Project, Episicava, Caladria Chronicles, Ah My Girlfriend is a Demon Summoned from the Depths of Hell, Cautionary Tale, Visual Novel Audio Pack Vol 1 and Vol 2
Contact:

Re: (Help)It is impossible to make a Loop with mp3

#4 Post by FulminisIctus »

As a composer how do you deal with this issue? Do you just not use mp3 or other lossy codecs? Do you use an application to trim it in the export?
The standard audio format that's usually used is .ogg (not just because it loops seamlessly but also because you don't have to worry about license stuff, as opposed to .mp3). You'd need an encoder that tells the decoder when the actual audio starts, as well as a decoder that can read and execute those instructions if you really want to use mp3.
I've never experienced this, it's not part of the LAME codec as far as I am aware.
LAME adds silence as well as far as I know (my info might be old on that), but adds a tag for decoders so they know how to skip/trim the silence (that's called "gapless playback"). I don't think renpy supports gapless playback, but don't quote me on that.

There's software out there that can trim MP3 files like mpTrim https://www.mptrim.com/ but there isn't usually really a reason to use mp3s instead of oggs.
I'm a composer and sound designer! You can find more info about my services - and if I'm free to take on a job at the moment - by viewing my commission doc (https://docs.google.com/document/d/1i0Z ... sp=sharing)!

makeawish
Newbie
Posts: 6
Joined: Thu Jan 02, 2020 7:08 pm
Soundcloud: make-a-wish-musics
Contact:

Re: (Help)It is impossible to make a Loop with mp3

#5 Post by makeawish »

Yes, I had the same issue on a loop track I saved in MP3, and after saved in .ogg this was fixed. :)

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: (Help)It is impossible to make a Loop with mp3

#6 Post by Imperf3kt »

FulminisIctus wrote: Mon Jan 11, 2021 8:39 am you don't have to worry about license stuff, as opposed to .mp3
Just clearing this up that the MP3 format has not required licensing since 2017 when the patent expired and was not renewed.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
FulminisIctus
Regular
Posts: 32
Joined: Sun May 21, 2017 1:30 pm
Projects: Mycorrhiza, LoveSick Darlings, Human Reignition Project, Episicava, Caladria Chronicles, Ah My Girlfriend is a Demon Summoned from the Depths of Hell, Cautionary Tale, Visual Novel Audio Pack Vol 1 and Vol 2
Contact:

Re: (Help)It is impossible to make a Loop with mp3

#7 Post by FulminisIctus »

Imperf3kt wrote: Thu Feb 18, 2021 8:42 pm Just clearing this up that the MP3 format has not required licensing since 2017 when the patent expired and was not renewed.
Oh dang, that's great. Thank you for the correction!
I'm a composer and sound designer! You can find more info about my services - and if I'm free to take on a job at the moment - by viewing my commission doc (https://docs.google.com/document/d/1i0Z ... sp=sharing)!

Post Reply

Who is online

Users browsing this forum: No registered users