I want to write a command or script to find all my .mkv videos larger than 3Gb, then run ffmpeg to make them smaller (720p) and change the extension to mp4. I have it working except the file ends up with .mkv.mp4 extension.
I'm also sure there is probably a much better way of doing this, such as with a script. Here is what I have come up with:
find '/home/username/Videos/' -type f -size +3G -exec ffmpeg -i "{}" -c:v libx264 -c:a copy -acodec copy -vf scale="trunc(oh*a/2)*2:720" -preset superfast -crf 24 -b:v 400k "{}.mp4" \;
I would also like to have the output files to a directory like /home/username/Videos/Changed, and then delete the original .mkv.
Can anyone help teach me the best method to do this?