Forked from jessor/linux live screencasting with justin.tv
Created
March 7, 2011 06:20
-
-
Save 4poc/858145 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/bash | |
# | |
# http://wiki.videolan.org/VLC_command-line_help | |
# http://wiki.videolan.org/Documentation:Modules/screen | |
# http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API | |
# StreamKey: http://www.justin.tv/broadcast/adv_other | |
# | |
cvlc screen:// \ | |
--screen-width 1356 \ | |
--screen-height 1016 \ | |
--screen-top 845 \ | |
--screen-fps 10 \ | |
--screen-caching 500 \ | |
:input-slave="alsa://hw:0,2" \ | |
-v input_stream \ | |
--sout='#duplicate{dst="transcode{scale=1,width=872,height=702,venc=x264{keyint=60},vcodec=h264,vb=800,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 \ | |
& | |
sleep 5 | |
jtvlc justintvusername streamkey /tmp/vlc.sdp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment