Skip to content

Instantly share code, notes, and snippets.

@Jibbarth
Created November 28, 2016 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jibbarth/90e4dd2c66ee937a975506382f12d9fb to your computer and use it in GitHub Desktop.
Save Jibbarth/90e4dd2c66ee937a975506382f12d9fb to your computer and use it in GitHub Desktop.
Convert mov to mp4 with ffmpeg preserving modification time
#!/bin/bash
for file in *.MOV; do
ffmpeg -i "$file" -vcodec copy -acodec copy "${file%.MOV}".mp4
touch -r "$file" "${file%.MOV}".mp4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment