Created
April 19, 2016 02:45
-
-
Save Tangent128/f8b8d22cc7cde6b554197abc606851f7 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
test "$OUTRES" || OUTRES=672x420 | |
test "$URL" || URL="icecast://source:hackme@hostname.tld:port/index.webm" | |
CODECS="-acodec libvorbis -vcodec libvpx -threads 3 -deadline realtime -cpu-used 4 -g 20 -vb 700k -bufsize 700k" | |
FILTER="-s $OUTRES" | |
BIG_CLUSTERS="-live 1 -cluster_size_limit 10M -cluster_time_limit 10K" | |
OUTPUT="-f webm $BIG_CLUSTERS -content_type video/webm $URL" | |
exec ffmpeg "$@" $FILTER $CODECS $OUTPUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment