Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 4poc/858145 to your computer and use it in GitHub Desktop.
Save 4poc/858145 to your computer and use it in GitHub Desktop.
#!/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