Skip to content

Instantly share code, notes, and snippets.

@guicaulada
Created March 31, 2020 02:43
Show Gist options
  • Select an option

  • Save guicaulada/18bec9c85c8e7cb3e599dc43bb26b60f to your computer and use it in GitHub Desktop.

Select an option

Save guicaulada/18bec9c85c8e7cb3e599dc43bb26b60f to your computer and use it in GitHub Desktop.

Revisions

  1. Guilherme Caulada created this gist Mar 31, 2020.
    7 changes: 7 additions & 0 deletions vban_listen.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/bash
    TARGET="${1:-127.0.0.1}"
    PORT="${2:-6980}"
    STREAM="${3:-vban_stream}"
    BACKEND="${4:-pulseaudio}"
    LOGLEVEL="${5:-1}"
    vban_receptor -i $TARGET -p $PORT -s $STREAM -b $BACKEND -l $LOGLEVEL
    7 changes: 7 additions & 0 deletions vban_stream.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/bash
    TARGET="${1:-127.0.0.1}"
    PORT="${2:-6980}"
    STREAM="${3:-vban_stream}"
    BACKEND="${4:-pulseaudio}"
    LOGLEVEL="${5:-1}"
    vban_emitter -i $TARGET -p $PORT -s $STREAM -b $BACKEND -l $LOGLEVEL
    5 changes: 5 additions & 0 deletions x11_listen.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/usr/bin/bash
    TARGET="${1:-127.0.0.1}"
    PORT="${2:-6990}"
    LOGLEVEL="${3:-all=no}"
    mpv --msg-level=$LOGLEVEL --no-cache --untimed --no-demuxer-thread --video-sync=audio --vd-lavc-threads=1 udp://$TARGET:$PORT
    5 changes: 5 additions & 0 deletions x11_stream.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/usr/bin/bash
    TARGET="${1:-127.0.0.1}"
    PORT="${2:-6990}"
    LOGLEVEL="${3:-quiet}"
    ffmpeg -loglevel $LOGLEVEL -f x11grab -s 1366x768 -framerate 60 -i :0.0 -vaapi_device /dev/dri/renderD128 -vf 'format=nv12,hwupload,scale_vaapi=w=1366:h=768' -c:v h264_vaapi -qp:v 26 -bf 0 -tune zerolatency -f mpegts udp://$TARGET:$PORT