Skip to content

Instantly share code, notes, and snippets.

@fqx
Created April 17, 2022 08:48
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 fqx/0e78a37ae092aecef8eee55eacf4ad5f to your computer and use it in GitHub Desktop.
Save fqx/0e78a37ae092aecef8eee55eacf4ad5f to your computer and use it in GitHub Desktop.
convert hev1 to hvc1 for Apple devices
#!/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