I am trying to batch convert a bunch of .eac3 files to .m4a @128. the folder name is
H:\Need to Encode\Doctor
Any help would be greatly appreciated
+ Reply to Thread
Results 1 to 13 of 13
-
-
Code:
pushd H:\Need to Encode\Doctor for %%a in (*.eac3) do "c:\programs\ffmpeg\ffmpeg.exe" -i "%%~a" -c:a aac -b:a 128k -ac 2 "%%~na.m4a"
(I set -ac 2 for stereo downmix which I assume you want at only 128 kbps)Last edited by sneaker; 12th Jun 2018 at 08:15. Reason: -ac 2 is stereo downmix, not -c:a 2
-
That specific code was meant for a batch file (open Notepad, paste, save as "whatever.bat" and double-click it). You can also use it on the prompt without a batch file but then you have to change all double percent signs (%%) to single ones (%).
You can also use eac3to (with NeroAacEnc.exe):
Code:for %%a in (*.eac3) do eac3to.exe "%%~a" "%%~na.m4a"
-
This is what I have tried so far
Code:pushd H:\Need to Encode\Doctor for %%a in (*.eac3) do "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%%~a" -c:a aac -b:a 128k -c:a 2 "%%~na.m4a"
Code:for %%a in (*.eac3) do "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%%~a" -c:a aac -b:a 128k -c:a 2 "%%~na.m4a"
Either one just quickly opens a dos prompt and closes -
hold on a second.. Ok, I am getting an error, please see the picture "unknown encoder '2'
[Attachment 45874 - Click to enlarge] -
If you leave out the "-ac x" part ffmpeg will not downmix (unless required by the encoder, e.g. mp3 will only encode to mono or stereo so 5.1 will be downmixed). -ac 6 would be 6 channels (usually 5.1).
Audio volume:
https://superuser.com/questions/323119/how-can-i-normalize-audio-using-ffmpeg
https://trac.ffmpeg.org/wiki/AudioVolume -
Alternatively '-ac' may be skipped at all to not force ffmpeg to particular channel number, also audio bitrate should be corresponding to channel number (i would not recommend less than 64kbps per channel if native ffmpeg AAC encoder is used), sadly to say '-q:a' doesn't work well with native ffmpeg AAC encoder.
-
When I do 5.1/6ch audio, I usually stick with 384.
So if I am converting an 5.1 EAC3 audio file to a 5.1 .m4a audio file, my code would look like this?
Code:pushd H:\Need to Encode\Doctor for %%a in (*.eac3) do "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%%~a" :a aac -b:a 384k -c:a 2 "%%~na.m4a"
-
No.
"-c:a" is selectiong the audio codec, e.g. "-c:a aac" is choosing the aac encoder. ("codec" "audio")
"-ac x" is audio channel mixing, e.g. "-ac 6" is 6 channel audio (5.1). ("audio" "channels")
Similar Threads
-
batch that compare filename in 2 folder
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 3rd Oct 2017, 04:58 -
FFMPEG - Looking for simple batch script to convert entire folder
By steptoe in forum Video ConversionReplies: 6Last Post: 20th Mar 2017, 22:49 -
Program to convert M4a to MP3 and TAG from Filename at same time?
By 6of1 in forum AudioReplies: 11Last Post: 22nd Sep 2016, 08:55 -
Batch wrap AAC in mp4/m4a
By Kylezo in forum AudioReplies: 6Last Post: 13th Mar 2016, 03:52 -
Set the current folder as destination folder and workfolder in a BATCH
By marcorocchini in forum Newbie / General discussionsReplies: 7Last Post: 25th Jun 2014, 07:58