Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
| #!/bin/bash | |
| input="input.mp4" | |
| output="output.mp4" | |
| color="black" | |
| while getopts ":i:o:w:h:c:" opt; do | |
| case $opt in | |
| i) input="$OPTARG" | |
| ;; |
On mac:
/usr/local/bin.| #!/bin/sh | |
| print_usage() { | |
| echo "usage: compress_video <input_file>" | |
| echo "supported formats: mp4, webm, mkv, mov, avi, flv" | |
| } | |
| get_extension() { | |
| f="${1##*/}" | |
| case "$f" in |