Last active
October 26, 2017 05:34
-
-
Save tuliren/8c8396670c97dfb2e6c417e619d57721 to your computer and use it in GitHub Desktop.
Video conversion
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
#!/bin/bash | |
for file in *.mp4 | |
do | |
new_file=`echo ${file} | cut -d"." -f1` | |
echo "Processing: ${new_file}.mp4 -> ${new_file}.gif" | |
ffmpeg -i ${new_file}.mp4 -s 600x400 -r 5 -f gif - | gifsicle --optimize=1 --delay=3 > ${new_file}.gif | |
done |
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
#!/bin/bash | |
for file in *.mp4 | |
do | |
new_file=`echo ${file} | cut -d"." -f1` | |
echo "Processing: ${new_file}.mp4 -> ${new_file}.mp3" | |
ffmpeg -i "${new_file}.mp4" -ab 128k "${new_file}.mp3" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment