Skip to content

Instantly share code, notes, and snippets.

@mfd
Last active June 20, 2022 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfd/db823703095e8fe54d140c47b20b3045 to your computer and use it in GitHub Desktop.
Save mfd/db823703095e8fe54d140c47b20b3045 to your computer and use it in GitHub Desktop.
Resize videos to h640
for i in *.mp4; do; ffmpeg -i $i -vf scale=-2:640 ${i%.*}_w640.mp4; done
for i in *.mp4; do; ffmpeg -i $i -vf scale=-2:256 tt/${i%.*}_w256.mp4; done
ffmpeg -i file.wmv -vcodec libx264 -acodec aac file_enc.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment