Skip to content

Instantly share code, notes, and snippets.

@chsh
Last active May 26, 2021 01:33
Show Gist options
  • Save chsh/00965e993a44d7b24d8a5bfa5592f3d4 to your computer and use it in GitHub Desktop.
Save chsh/00965e993a44d7b24d8a5bfa5592f3d4 to your computer and use it in GitHub Desktop.
Aggregate pics to hevc(H.265). - ffmpeg encoding params for apple macbook with acceralation hardware.
#!/bin/bash
for arg; do
dir=${arg}
# ffmpeg -framerate 60 -i $dir/seq%06d.jpg -vf deflicker=s=10:m=2 -c:v hevc_videotoolbox -b:v 200000k -tag:v hvc1 $dir.mp4
ffmpeg -framerate 60 -pattern_type glob -i "$dir/seq*.jpg" -vf deflicker=s=10:m=2 -c:v hevc_videotoolbox -b:v 200000k -tag:v hvc1 $dir.mp4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment