Skip to content

Instantly share code, notes, and snippets.

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 Cool-Programmer/0bb386d69316f6ffe96d26d829cb3ee3 to your computer and use it in GitHub Desktop.
Save Cool-Programmer/0bb386d69316f6ffe96d26d829cb3ee3 to your computer and use it in GitHub Desktop.
Batch transcode (quality) .mp4 files and to .3
Transcode (change quality to 240)
for f in *.mp4; do ffmpeg -y -i "$f" -threads 0 -preset slow -s 320x240 -c:v libx264 -strict -2 "360/${f%}"; done
Change mp4 to 3gp
for f in *.mp4; do ffmpeg -y -i "$f" -r 20 -s 176x144 -vb 100k -acodec aac -strict experimental -ac 1 -ar 8000 -ab 24k "3gp/${f%}.3gp"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment