breaking an mp3 into parts by detecting silence as breakpoint

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
manit123
Posts: 12
Joined: Tue May 28, 2013 12:35 pm
Operating System: Please select

breaking an mp3 into parts by detecting silence as breakpoint

Post by manit123 » Sun Mar 28, 2021 7:27 am

hi ,
I have an mp3 of following characteristics

Input #0, mp3, from 'all-songs.mp3':
Metadata:
creation_time : 2017-07-02 02:19:04
encoder : Lavf54.63.104
Duration: 07:35:09.43, start: 0.050113, bitrate: 16 kb/s
Stream #0:0: Audio: mp3, 22050 Hz, mono, fltp, 16 kb/s

I want to make multiple small mp3 out of it each having one song . Each song has variable duration .
So I zoomed in mp3 and selected a silent part between first two songs. It is approximately 0.6 second long .
My aim is to find dB level of silent part
So I choose analyze > plot spectrum
I get a frequency analysis window - there are multiple parameters to choose for graph namely algorithm , size , function , axis .
Currently I have chosen algorithm-spectrum , size-128 , function-hamming window , axis-log frequency
I can see that peak remains below -57dB.

So I choose part of mp3 that includes first two songs and choose analyze - silence finder . I use value of -57dB , 0.3second and label placement as 0.000 but it says 'no silences found' . Even with -50dB I get 'no silences found' .

What am I doing wrong here ?

PS : Once I get a text file containing location of silent points then I will usee ffmpeg to make multiple mp3 . Let me know if there is a better way .
I am using audacity 2.4.2 on windows 7 32 bit OS with 4GB RAM.


Thanks.

jademan
Forum Crew
Posts: 1171
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Please select

Re: breaking an mp3 into parts by detecting silence as breakpoint

Post by jademan » Mon Mar 29, 2021 11:15 am

manit123 wrote:
Sun Mar 28, 2021 7:27 am
So I choose part of mp3 that includes first two songs and choose analyze - silence finder . I use value of -57dB , 0.3second and label placement as 0.000 but it says 'no silences found' . Even with -50dB I get 'no silences found' .
You can try -67dB which is quieter than -57dB. These are negative numbers. :geek:

manit123
Posts: 12
Joined: Tue May 28, 2013 12:35 pm
Operating System: Please select

Re: breaking an mp3 into parts by detecting silence as breakpoint

Post by manit123 » Tue Mar 30, 2021 3:03 pm

-67 also did not work.
BTW , silence finder option says 'treat audio below this level as silence' so if plot shows max as -57 then -50 should give me silence even in places where there is little sound.

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: breaking an mp3 into parts by detecting silence as breakpoint

Post by steve » Tue Mar 30, 2021 4:03 pm

manit123 wrote:
Sun Mar 28, 2021 7:27 am
My aim is to find dB level of silent part
So I choose analyze > plot spectrum
That's the wrong tool for the job.

Try using "Effect > Amplify" but do not apply the effect.
Just look at the number in the first box: "Amplification (dB)"

That is the amount of amplification required to bring the level up to 0 dB. So, for example, if it says "40.241", then that means that the peak level of the selection is "40.241" dB below 0 dB, or in other words, it's -40.241 dB.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jademan
Forum Crew
Posts: 1171
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Please select

Re: breaking an mp3 into parts by detecting silence as breakpoint

Post by jademan » Tue Mar 30, 2021 10:18 pm

manit123 wrote:
Tue Mar 30, 2021 3:03 pm
-67 also did not work.
BTW , silence finder option says 'treat audio below this level as silence' so if plot shows max as -57 then -50 should give me silence even in places where there is little sound.
Yes, I stand corrected. I had my head screwed in backwards. ;)

What steve says, just select the audio in question and amplify will give you the number you are looking for.

Post Reply