Last active
November 19, 2024 19:11
-
-
Save EchedelleLR/3a1dc3530c5c78e07202de1c05ab44fd to your computer and use it in GitHub Desktop.
Ffmpeg quick VP8 encoding to 720p
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
# GPLv3.0 | |
find /original/path/ -type f | xargs -I "{}" -P 1 sh -c 'rm /destination/path/"$(basename "{}" | cut -f -3 -d '.')".original_extension; ffmpeg -i "{}" -vf "scale=-1:720,fps=24" -c:a libvorbis -c:v libvpx -ar 48k -b:v 1M -b:a 128k -crf 30 -pix_fmt yuv420p -deadline realtime -cpu-used 0 /destination/path/"$(basename "{}" | cut -f -3 -d '.')".destination_extension' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is thx to @GamePlayer-8 with the original combination of find and xargs (I don't really know how to use it).