Created
July 11, 2020 12:30
-
-
Save tony2nite/dcdf9965e70ba695868d572327366156 to your computer and use it in GitHub Desktop.
convert old AVI to MP4 with good quality, keeping original date/time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.avi; do ffmpeg -i "$i" -metadata date="$(stat -f %SB -t "%Y-%M-%d %T" $i)" -vf yadif -c:v libx264 -preset slow -crf 22 "${i%.*}.mp4";touch -r "$i" "${i%.*}.mp4"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment