Re: Search and remove audio sections

Jan Stary <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
On Nov 17 15:52:52, [email protected] wrote:
> I have a bunch of old MP3 podcasts that have ads in them,
> at the beginning and the end.

Are the ads always at the beginning and at the end,
and never anywhere else?

> The ads are about 30 seconds long and usually
> have a small familiar jingle before they start and after they end. 

Usually: so not all of them have the jingle(s),
or the jingle is not always the same, right?

> I was wondering if there is an ability using SoX (or other tool)
> to do a "search and remove" on these, in a batch format
>- that would apply to hundreds of these files.

General audio search is quite hard.

But if you intend to actually listen to the 10 minutes of podcast,
removing the ads manualy from the beginning and end
is a matter of seconds on top of those 10 minutes.


On Nov 17 20:42:51, [email protected] wrote:
> If the jingles at the start and end of each ad are binary equal (which
> they might be if an automated system placed copies of their contents
> in the files) then in theory one could use a conventional file search
> utility to locate each one.

A prerequisite of that would be that oll the files are in the
very same binary format. We know they are mp3s - are they the same
samplerate, bitrate, etc? Because even if the jingle is one and
the same every tome, it won't be, encoded into the individual mp3s.

> Recognising the jingles might be hard if any aspect of mp3 compression
> of the audio means that successive parts of jingles don't appear in the
> exact same bit- and byte- pattern in each file.

Yes, and they probably won't.

> If the files contain, say, continuous music (or maybe even speech) then
> there's a tiny gap (hopefully of digital silence) then a jingle then a
> second tiny gap then more content, I think you could possibly look for
> the positions of the gaps.

The ads are supposed to be at the beginning and end.
But cutting at silence is what I would go fro first,
if there is a telling silence around the ads of course.


	Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.