View Full Version : Automate audio demuxing and conversion to mp3
Zag
16th January 2007, 18:56
For my morning commute drive, I like to listen to espn sports radio which is no longer available in my area. I have been recording the show from espn2 in the morning, demuxing the audio using DGIndex and converting the .mpa to mp3 using River Past Audio converter. Although it only takes a few minutes to do each morning I would like to see if I could automate these few steps. Maybe create a batch file that can be scheduled to run after the recording. What command line tools could I run?
Skelsgard
17th January 2007, 16:05
Why don't you just record directly to MP3 instead of video with MP2 audio to have to transcode later?
The are several MP3 recorders outthere, some of them free like the MP3MyMP3 2 Recorder, others are paid like TotalRecorder (which has scheduling features).
Itīll save the hassle of transcoding and the loss of quality that implies.
Cheers
Zag
17th January 2007, 17:08
I'll give that a shot. Thanks for the info.
Pookie
18th January 2007, 11:51
what is the extension of the source files - .TSP ? If it isn't, change the script below to whatever it is...
Download this
http://tirnanog.fate.jp/mirror/ffmpeg/ffmpeg.rev7375.7z
http://sourceware.mirrors.tds.net/pub/sourceware.org/pthreads-win32/dll-latest/lib/pthreadGC2.dll
save the following as espn.bat
for %%a in (*.tsp) do ffmpeg -i "%%a" -vn -acodec mp3 -ac 2 -ab 128 -ar 44100 -y "%%~na.mp3"
Put everything in the same folder as your espn feeds - it should look like this:
file1.tsp
file2.tsp
ffmpeg.exe
ffplay.exe
espn.bat
pthreadGC2.dll
Doubleclick on Espn.bat and it should do the job....
But, as Skelsgard said, easier to record directly to mp3 if you can....
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.