I have a folder with multiple subfolders with mkv files
main directory
then
Directory A Dir B Dir C Dir D Dir E Dir F Dir G
I need a script that will search all directories for .mkv and convert to .mp4
i currently have this script
for file in *.mkv; do ffmpeg -i "$file" -c:a aac -q:a 2 -c:v copy "${file%.m kv}.mp4"; done
but it only works if the .sh file is placed in each dir