Created
April 17, 2022 08:48
-
-
Save fqx/0e78a37ae092aecef8eee55eacf4ad5f to your computer and use it in GitHub Desktop.
convert hev1 to hvc1 for Apple devices
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
#!/bin/bash | |
TOTAL=$(ls *.mp4 | wc -l) | |
for i in *.mp4 | |
do | |
ffmpeg -loglevel quiet -y -i "$i" -c copy -movflags +faststart -threads 0 -tag:v hvc1 "temp.mp4" | |
mv -f "temp.mp4" "$i" | |
echo $i | |
done | tqdm --total $TOTAL >> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment