Repeating same steps on a large number of files

This section is now closed.
Forum rules
This forum is now closed.

For help with current Audacity, please post to the 2.x. board for your operating system.

Please post feedback about the current 2.x version on the 2.x.feedback board.
Locked
DickN
Posts: 445
Joined: Thu Jul 22, 2010 9:03 pm
Operating System: Windows Vista

Repeating same steps on a large number of files

Post by DickN » Thu Mar 03, 2011 10:44 pm

I have a set of over a thousand short MP3's that I want to put on an MP3 player. Problem is their sample rate is 11k, and the MP3 player doesn't play anything under 22k. No problem with bit rate, it's the sample rate. I've found MP3 resampling programs, but either they're not free (I only need to do this once) or I need to get the compiler and the source and build the program. It would be much simpler (via script, batch file, etc.), albeit maybe longer runtime, to automate the conversion of all these files using Audacity. I'm an old DOS jockey, so if there's a way to run Audacity repeatedly via a .bat file, that would be great. Can Audacity be command-line driven? I don't want to save the projects, just import and export MP3's. I have MP3Tag to take care of the tag info. Thanks!

bgravato
Posts: 2098
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Linux Debian

Re: Repeating same steps on a large number of files

Post by bgravato » Fri Mar 04, 2011 12:30 am

DickN wrote: Can Audacity be command-line driven?
No, it can't.

You could try using sox. I can't help you with batch scripting in DOS, but have a look at this thread:
http://forum.audacityteam.org/viewtopic ... 28&t=53637
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

DickN
Posts: 445
Joined: Thu Jul 22, 2010 9:03 pm
Operating System: Windows Vista

Re: Repeating same steps on a large number of files

Post by DickN » Fri Mar 04, 2011 2:00 am

bgravato wrote:You could try using sox.
Is there a download site for sox binary for Windows? So far I've only found source files available for download, and gcc also needs to be compiled with something before I can use it to compile sox. Snowball effect :roll:

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

Re: Repeating same steps on a large number of files

Post by steve » Fri Mar 04, 2011 3:56 am

DickN wrote:Is there a download site for sox binary for Windows? S
http://sourceforge.net/projects/sox/files/sox/14.3.1/
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

DickN
Posts: 445
Joined: Thu Jul 22, 2010 9:03 pm
Operating System: Windows Vista

Re: Repeating same steps on a large number of files

Post by DickN » Fri Mar 04, 2011 4:49 am

How'd I miss that one? Thanks!

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Repeating same steps on a large number of files

Post by Edgar » Sat Mar 05, 2011 5:39 pm

bgravato wrote:
DickN wrote: Can Audacity be command-line driven?
No, it can't.
Not quite exactly true. Audacity does accept a small handful of relatively useless command line switches and is happy to run from a .bat file. The real problem is that almost everything you might want to do with Audacity requires user input and a live user to dismiss any dialogs that pop up. All this can be overcome but requires a re-compile.

Locked