Skip to content

Instantly share code, notes, and snippets.

@wrl
Created February 7, 2013 12:32
Show Gist options
  • Save wrl/4730618 to your computer and use it in GitHub Desktop.
Save wrl/4730618 to your computer and use it in GitHub Desktop.
#!/bin/sh
# ustream
USTREAM_KEY=""
STREAM_URL="rtmp://1.12617548.fme.ustream.tv/ustreamVideo/12617548/$USTREAM_KEY flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
# livestream
#LIVESTREAM_USER=
#LIVESTREAM_PASSWORD
#URL="mogulus/vosonon/username=$LIVESTREAM_USER/password=$LIVESTREAM_PASSWORD/isAutoLive=true"
#STREAM_URL="rtmp://publish.livestream.com/$URL app=$URL"
TIMESTAMP=$(date "+%m-%d-%y.%H:%M") # filename for local copy
ffmpeg\
-f jack -ac 2 -i livecast\
-itsoffset 0.021\
-f x11grab -s 1024x768 -i :0.0\
-s 640x480\
-pix_fmt yuv420p\
-vcodec libx264 -profile baseline -preset ultrafast -b:v 384k\
-acodec aac -strict experimental -ar 44100 -b:a 64k\
-threads 0\
-f flv "$STREAM_URL"
#-acodec libmp3lame -ar 44100 -ab 128k\
#-f mp4 "~/screencasts/`echo $TIMESTAMP`.bcast.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment