Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save 4poc/858145 to your computer and use it in GitHub Desktop.

Select an option

Save 4poc/858145 to your computer and use it in GitHub Desktop.

Revisions

  1. Matthias -apoc- Hecker revised this gist Mar 7, 2011. 1 changed file with 8 additions and 5 deletions.
    13 changes: 8 additions & 5 deletions linux live screencasting with justin.tv
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,23 @@
    #!/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
    #

    vlc screen:// \
    --screen-width 630 \
    --screen-height 354 \
    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=display, dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=127.0.0.1,port=1234,sdp=file:///tmp/vlc.sdp}"}' &
    --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 10
    sleep 5

    jtvlc justintvusername streamkey /tmp/vlc.sdp
  2. @jessor jessor revised this gist Mar 7, 2011. 1 changed file with 18 additions and 5 deletions.
    23 changes: 18 additions & 5 deletions linux live screencasting with justin.tv
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,20 @@
    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
    #!/bin/bash
    #
    # 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
    #

    $ vlc screen:// --screen-width=1280 --screen-height=1024 --screen-fps 15 -vvv input_stream --sout='#duplicate{dst=display, dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=127.0.0.1,port=1234,sdp=file:///tmp/vlc.sdp}"}'
    vlc screen:// \
    --screen-width 630 \
    --screen-height 354 \
    --screen-top 845 \
    --screen-fps 10 \
    --screen-caching 500 \
    :input-slave="alsa://hw:0,2" \
    -v input_stream \
    --sout='#duplicate{dst=display, dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=127.0.0.1,port=1234,sdp=file:///tmp/vlc.sdp}"}' &

    $ jtvlc justintvusername streamkey /tmp/vlc.sdp -d
    sleep 10

    jtvlc justintvusername streamkey /tmp/vlc.sdp
  3. @jessor jessor created this gist Mar 5, 2011.
    7 changes: 7 additions & 0 deletions linux live screencasting with justin.tv
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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

    $ vlc screen:// --screen-width=1280 --screen-height=1024 --screen-fps 15 -vvv input_stream --sout='#duplicate{dst=display, dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=127.0.0.1,port=1234,sdp=file:///tmp/vlc.sdp}"}'

    $ jtvlc justintvusername streamkey /tmp/vlc.sdp -d