sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Dani <Dani@softco.co.il>
To: "sox-users@lists.sourceforge.net" <sox-users@lists.sourceforge.net>
Subject: Search and remove audio sections
Date: Tue, 17 Nov 2020 15:52:52 +0000	[thread overview]
Message-ID: <DB8P195MB0741A75BDDBFA908FCBBD407F3E20@DB8P195MB0741.EURP195.PROD.OUTLOOK.COM> (raw)

Hi,

I have a bunch of old MP3 podcasts that have ads in them, at the beginning and the end. These are short bits of podcasts (up to 10 minutes each), and the ads are quite distracting.
The ads are about 30 seconds long and usually have a small familiar jingle before they start and after they end. 
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.
Something in the form of:
%jingle% -> the familiar jingle at the start and end of the ad, so... mimicking a made-up wildcard/regex search:
Search for:  (%jingle% * %jingle%) ( * ) (%jingle% * %jingle%)
Replace: ($2) - meaning - I leave only the center part.
Is that something that can be done with audio?

Thanks,

Dani.




_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

             reply	other threads:[~2020-11-17 19:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-17 15:52 Dani [this message]
2020-11-17 20:42 ` Search and remove audio sections Jeremy Nicoll - ml sox users
2020-11-17 21:40   ` Jeff Learman
2020-11-18  0:25     ` Jeremy Nicoll - ml sox users
2020-11-18  8:01       ` Dani
2020-11-19  2:21 ` Rafal Maszkowski
2020-11-20 14:18 ` Jan Stary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB8P195MB0741A75BDDBFA908FCBBD407F3E20@DB8P195MB0741.EURP195.PROD.OUTLOOK.COM \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).