Gentlemen, need help writing a script. Due to the beginning of the new pilot season came up with the idea that enough "hands" each file to encode, it is necessary for this process to automate. task: you have a folder with videos, it is necessary to select files that have names that contains — LostFilm.TV and if there is no file with the extension mp4 (already encoded) to put in the script and encode. Encode videos using ffmpeg: ffmpeg -i House.M.D.s07e01.rus.LostFilm.TV.avi -acodec aac -strict experimental -ab 128kb -vcodec mpeg4 -b 1000kb -s 320x180 -r 23.98 House.M.D.s07e01.rus.LostFilm.TV.mp4