I when i download movies, sometimes they are downloaded in the wrong audio format (my player cant play it) i would like to create a script that is ran on a schedule that would loop through all my movies, fetching the Audio codec and checking to see if its DTS (or any variation of), if found, use FFMPEG to re encode the audio only to something else (AAC/AA3)
I did this to start with, but had to use other means to find the audio codec, then put all the movies in a folder and run the script from there. below is what i ran (on Windows 8.1 machine):
set mypath=S:\Blu Ray\New folder\New folder\%f
FOR %f IN (*.mkv) DO ffmpeg -i “%f” -vcodec copy -scodec copy -acodec ac3 -b:a 640k “%mypath%"
Any help would be great!!!
BD