How to convert only the audio from multiple videos using FFMPEG?

Former user wrote on 9/24/2018, 9:21 AM

I have several videos with dolby ac3 audio. I want to convert only the audio to .aac format and keep the videos in the original format using FFMPEG.

I'm still not sure how to create command lines correctly.

I wanted to if possible an command line for the use in a file .BAT so I can just drag and drop all the videos and start the batch conversion process.

I would be very grateful if anyone more experienced with the FFMPEG could help me.

Comments

Marco. wrote on 9/24/2018, 9:34 AM

This one works for me:

@echo off
:next
if "%~1"=="" goto done
set output=%~dpn1_new%~x1
ffmpeg.exe -i "%~1" -c:a aac -b:a 320k -c:v copy "%output%"
shift
goto next
:done
exit

 

Former user wrote on 9/24/2018, 9:56 AM

It worked perfectly here.

Thank you!