public

linux live screencasting to justin.tv

  • Download Gist
linux live screencasting with justin.tv
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# 1. Get an account on http://www.justin.tv/
# 2. Copy streaming key from: http://www.justin.tv/broadcast/adv_other
# 2. Install VLC: http://www.videolan.org/vlc/
# 3. Get Win/Mac/Lin Stream Client: \
# http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API
# 4. Adjust the vlc parameters to your liking and run VLC like this
 
#!/bin/bash
cvlc screen:// \
--screen-width 1576 \
--screen-height 886 \
--screen-fps 5 \
--screen-caching 200 \
--screen-top 75 \
-v input_stream \
--sout='#duplicate{ dst="transcode{ scale=1, width=630, height=354, venc=x264{ keyint=60 }, codec=h264, vb=600, acodec=mp4a, ab=32, channels=2, samplerate=22050 } :rtp{dst=127.0.0.1,port=1234,sdp=file:///tmp/vlc.sdp} "}' \
--sout-transcode-threads=2 &
 
# 5. Run JTVLC to stream like this:
jtvlc justintvusername streamkey /tmp/vlc.sdp
 
# Notes:
#- If you want to see what you're about to stream add 'dst=display, '
# before 'dst="transcode['
# More about the VLC parameters: http://wiki.videolan.org/Documentation:Modules/screen

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.