Created
March 5, 2011 04:21
-
-
Save jessor/856107 to your computer and use it in GitHub Desktop.
linux live screencasting to justin.tv
This file contains hidden or 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment