Last active
June 17, 2023 17:01
-
-
Save JakeTrock/258eaf3ac64cd0d31abe36b1886f9580 to your computer and use it in GitHub Desktop.
video potatofier
This file contains hidden or 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
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 |
uses cuda ffmpeg for a speedy tiny video
because we want a potatofier, not a potato fire
find -name "*.mp4" -exec ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i {} -ab 128k -crf 28 -filter:v fps=fps=24 -c:v h264_nvenc {}.mkv \;
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
recursive:
find -name "*.mp4" -exec ffmpeg -i {} -ab 128k -crf 28 -preset slow -map_metadata -1 {}.mkv \;