Created
May 21, 2019 09:24
-
-
Save Cool-Programmer/0bb386d69316f6ffe96d26d829cb3ee3 to your computer and use it in GitHub Desktop.
Batch transcode (quality) .mp4 files and to .3
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
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