Skip to content

Instantly share code, notes, and snippets.

@JakeTrock
Last active June 17, 2023 17:01
Show Gist options
  • Save JakeTrock/258eaf3ac64cd0d31abe36b1886f9580 to your computer and use it in GitHub Desktop.
Save JakeTrock/258eaf3ac64cd0d31abe36b1886f9580 to your computer and use it in GitHub Desktop.
video potatofier
for f in *.mp4 ; do ffmpeg -i "$f" -crf 28 -preset veryslow -ab 128k -vf fps=12 -vn -map 0:0 -codec:a copy -map_metadata -1 "./out/${f%.*}.mkv"; done
@JakeTrock
Copy link
Author

now that I'm a hellish mac heathen:
find . -type f -name "*.mp4" -exec ffmpeg -i {} -ab 128k -crf 28 -filter:v fps=fps=24 -c:a aac -ac 1 -b:a 64k -b:v 50k -vf scale=160:120 -async 1 {}.mp4 \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment