Simple audio / video converters for MacOS / Linux. Put in /usr/local/bin or any directory in your $PATH and chmod +x. Make sure ffmpeg and imagemagick are installed
Download FFMPEG binaries here: https://evermeet.cx/ffmpeg/
Simple audio / video converters for MacOS / Linux. Put in /usr/local/bin or any directory in your $PATH and chmod +x. Make sure ffmpeg and imagemagick are installed
Download FFMPEG binaries here: https://evermeet.cx/ffmpeg/
#!/bin/bash | |
if [ $# -ne 2 ]; then | |
echo "Usage: $0 <framerate> <pattern>" | |
echo "Example: $0 30 \"*.png\"" | |
exit 1 | |
fi | |
ffmpeg -framerate $1 -pattern_type glob -i "$2" -c:v libx264 -pix_fmt yuv420p out.mp4 |
#!/bin/bash | |
ffmpeg -i "$1" -vf scale=640:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop 0 - "$1.gif" |
#!/bin/bash | |
ffmpeg -i "$1" "$1.mp3" |
#!/bin/bash | |
ffmpeg -i "$1" -vcodec h264 -profile:v main -level 4.0 "$1.mp4" |
#!/bin/bash | |
ffmpeg -i "$1" -c:v libvpx -b:v 1M -c:a libvorbis "$1.webm" |