Last active
May 29, 2023 00:05
-
-
Save 47ronin/4b9ae57798bfc8b25453af2f80c08210 to your computer and use it in GitHub Desktop.
Batch fix HEVC MP4 screen captures from OBS so they are usable on macOS (QuickTime and Final Cut Pro). Preserves modification date.
This file contains hidden or 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
#!/bin/bash | |
for i in *.mp4 | |
do \ | |
ffmpeg -i "$i" -map_metadata 0 -c:v copy -c:a copy -tag:v hvc1 "$HOME/PATH/${i%.*}.mp4" | |
touch -r "$i" "$HOME/PATH/${i%.*}.mp4" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment