Is there a way to convert alot of video files from AC3 sound to AAC? I don't want to convert video iteself, video is okay, only the sound. I have alot of videos encoded with H.264 or mpeg4(xvid) and AC3 sound, in different containers (.avi, .mkv). I want to convert ONLY sound in them to AAC not touching the video format and container.
Convert the audio of multiple video files to AAC with a script in the send to context menu.
- Download FFmpeg
- Open the
shell:sendtofolder with the key combination [win]+[r]
- Create an empty batch file, for instance
- Paste the following code
FOR %%i IN (%*) DO ffmpeg -i "%%~fi" -c:v copy -c:a aac "%%~di%%~pi%%~ni_aac%%~xi"
Select the files you want to convert, right click on them, click on "Send to", and click on "aac.bat".
The script will create new files where "_aac" is added to the file names and the audio is converted to AAC.
I assumed you are running Windows. I tested the script with multiple MKV files with DTS audio on Windows 10.
In case you want to specify the input and output files in another way you can use the code below.
ffmpeg -i "C:\input.mkv" -c:v copy -c:a aac "C:\output.mkv"