Skip to content

Instantly share code, notes, and snippets.

@niazangels
Created January 29, 2023 17:51
Show Gist options
  • Save niazangels/252bbae1c3fdcdeffe8d4d2fbfb24e00 to your computer and use it in GitHub Desktop.
Save niazangels/252bbae1c3fdcdeffe8d4d2fbfb24e00 to your computer and use it in GitHub Desktop.
Compress videos with ffmpeg
ffresize(){
for f in *.mp4 ; do ffmpeg -i "$f" -vf scale=854:480 "$f-480p.mp4" ; done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment