Created
April 30, 2017 18:14
-
-
Save dougblackjr/ce0d6731e8d8636b3e1723c28d44ea72 to your computer and use it in GitHub Desktop.
Automatically append intro/outro to podcast, convert to mp3 (use with Quelea, sox, and lame)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Place this batch file in with your raw wav files | |
2) Set the introlocation (where your intro and outro files are located) and outputlocation (where you want the final mp3 to land) | |
3) Run this batch file. | |
This will fine the most recent wav file in the current directory, append the intro and outro, and then convert it to mp3. | |
Especially good for use with Quelea. Requires sox.exe and Lame encoder (This script uses Lame for Audacity) | |
Created and used on Windows 10. Please let me know if you have issues! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /f %%i in ('dir /b/a-d/od/t:c') do set _inputfilename="%%i" | |
set introlocation= | |
set outputlocation= | |
set year=%date:~10,4% | |
set month=%date:~4,2% | |
set day=%date:~7,2% | |
set filename=%year%_%month%_%day% | |
"C:\Program Files (x86)\sox-14-4-2\sox.exe" %introlocation%\podcastIntro.wav %_inputfilename% output.wav | |
"C:\Program Files (x86)\sox-14-4-2\sox.exe" output.wav %introlocation%\podcastOutro.wav %filename%.wav | |
del /f output.wav | |
"C:\Program Files (x86)\Lame For Audacity\lame" -V2 %filename%.wav %outputlocation%\%filename%.mp3 | |
ECHO Done! File is: %outputlocation%\%filename%.mp3 | |
ping 127.0.0.1 -n 6 > nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment