Skip to content

Instantly share code, notes, and snippets.

@knishioka
Created August 30, 2020 02:01
Show Gist options
  • Save knishioka/fb3bd453e3cd7320788fc34f90e76cb9 to your computer and use it in GitHub Desktop.
Save knishioka/fb3bd453e3cd7320788fc34f90e76cb9 to your computer and use it in GitHub Desktop.
Convert MP4 to 60fps with keeping meta data
mkdir 60fps
for movie in *.MP4; do
echo converting $movie
ffmpeg -i $movie -map_metadata 0 -map_metadata:s:v 0:s:v -map_metadata:s:a 0:s:a -c copy -f ffmetadata ffmetadata.txt -y
ffmpeg -i $movie -i ffmetadata.txt -map_metadata 1 -r 60 "60fps/${movie}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment