What is the script for converting an entire folder of webm and mp4 files to mp3 or wav into a new folder using ffmpeg on windows.
I also need instructions on how to run the script on windows.
+ Reply to Thread
Results 1 to 2 of 2
-
-
I do that sort of thing using AnotherGUI. It's a tiny download and doesn't need to be installed. Just unzip it somewhere and run it. Tell AnotherGUI where to find ffmpeg, click "Edit" to create a preset and copy and paste the following into the "first pass" section:
-i "<FullSourceFileName>" -y -threads 1 -vn -acodec pcm_s16le "<OutputPath><OutputFileName>.wav"
Give the preset a name and save it. Make sure it's selected and drag and drop your folder of files onto AnotherGUI. Use Ctrl+A to highlight them all and click "change output path" to select the output location. Click "Go". That should get ffmpeg to ignore any video and convert the audio to 16 bit wave files.
Converting to MP3 would look like this:
-i "<FullSourceFileName>" -y -threads 1 -vn -acodec mp3 -ab 128 "<OutputPath><OutputFileName>.mp3"
By default AnotherGUI runs processes in multiple threads. You might want to reduce the number it'll run simultaneously or change it to "1" under Preferences for hard drive intensive jobs, so they only convert one at a time. If the jobs result in an error for some reason, add -report to the command line and try again:
-report -i "<FullSourceFileName>" -y -threads 1 -vn -acodec mp3 -ab 128 "<OutputPath><OutputFileName>.mp3"
That'll get ffmpeg to save a detailed log which usually indicates what the problem is. If it doesn't appear in the output folder, have a look in the folder where AnotherGUI is located.
If you need to down-mix the audio to stereo someone else might need to help you with that. I'd have to check the command line options as I don't use ffmpeg for that myself.Last edited by hello_hello; 10th Aug 2016 at 15:23. Reason: spelling
Similar Threads
-
Convert BDMV folder with eac3to piped to ffmpeg
By z-machine95 in forum AudioReplies: 3Last Post: 11th Aug 2015, 13:12 -
Convert from WAV to MP3
By Matteo in forum AudioReplies: 2Last Post: 12th Nov 2014, 03:02 -
converting wav to gsm multiple files all in one folder
By mmccray in forum AudioReplies: 0Last Post: 2nd Aug 2014, 12:03 -
How to Extract /Convert RMVB Audio Files to MP3 or WAV?
By devilcoelhodog in forum AudioReplies: 6Last Post: 28th Dec 2011, 10:07 -
why is ffmpeg breaking my WAV when converting it to MP3?
By charlieship in forum AudioReplies: 0Last Post: 26th Sep 2011, 17:56