I wanted to just comment on an answer to a question very similar to this but I don't have enough rep. I'm looking for a way to change this line of code:
for i in *.mkv; do ffmpeg -i "$i" "${i%.*}.mp4"; done
So that it includes .avi files and so that it can search through nested folders. I want to be able to target /Videos
and have the script automatically traverse through the folder tree into /Videos/2016/January
, convert all of the video files contained within that folder, then do the same for /Videos/2016/February
and so on.
Thanks in advance.
(credit for above line of code goes to LordNeckBeard, from this post.)