Skip to content

Instantly share code, notes, and snippets.

@ksharsha
Created October 31, 2016 21:54
Show Gist options
  • Save ksharsha/b06d184391290bc3b87fdadadb73c5bc to your computer and use it in GitHub Desktop.
Save ksharsha/b06d184391290bc3b87fdadadb73c5bc to your computer and use it in GitHub Desktop.
ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4
@RENANZG
Copy link

RENANZG commented Mar 31, 2024

One-line bash script for Debian GNU/Linux

$ cd ~/Videos
$ for file in .mp4; do ffmpeg -i "$file" -vf "scale=-2:240" "Output-${file%.}.mp4"; done

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