Skip to content

Instantly share code, notes, and snippets.

@ljsabc
Last active July 3, 2021 20:05
Show Gist options
  • Save ljsabc/d7ce60b79ca522f5f6de5f415d52ad88 to your computer and use it in GitHub Desktop.
Save ljsabc/d7ce60b79ca522f5f6de5f415d52ad88 to your computer and use it in GitHub Desktop.
iPhone HEVC Batch FFMPEG Compression Toolkit
@echo off
For /R "input" %%G In (*.mov *.mp4) Do (
Echo %%G
HEVC30LP.bat %%G
move input\%%~nxG_output.mov output\%%~nG.mov
"exiftool.exe" -tagsFromFile %%G -ExtractEmbedded -all:all -overwrite_original output\%%~nG.mov
)
@echo off
ffmpeg -y -i %1 -vcodec libx265 -crf 26 -r 30 -preset veryslow -tag:v hvc1 -acodec copy %1_output.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment