Skip to content

Instantly share code, notes, and snippets.

@wrl
Created July 12, 2013 02:34
Show Gist options
  • Save wrl/5980990 to your computer and use it in GitHub Desktop.
Save wrl/5980990 to your computer and use it in GitHub Desktop.
#!/bin/sh
# ustream
STREAM_KEY=""
STREAM_URL="rtmp://1.12617548.fme.ustream.tv/ustreamVideo/12617548/$STREAM_KEY flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
# livestream
#LS_USER=
#LS_PASSWD=
#URL="mogulus/$LS_USER/username=$LS_USER/password=$LS_PASS/isAutoLive=true"
#STREAM_URL="rtmp://publish.livestream.com/$URL app=$URL"
gst-launch -e \
jackaudiosrc connect=none ! audioconvert ! audiorate ! 'audio/x-raw-int,rate=48000,channels=2' ! ffenc_aac ! flashmux. \
ximagesrc use-damage=false show-pointer=true display-name=:0.0 screen-num=1 ! ffmpegcolorspace ! videoscale method=0 ! videorate ! video/x-raw-yuv, framerate=25/1 ! ffenc_flv ! flvmux name="flashmux" ! \
rtmpsink location=$STREAM_URL sync=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment