Created
March 31, 2020 02:43
-
-
Save guicaulada/18bec9c85c8e7cb3e599dc43bb26b60f to your computer and use it in GitHub Desktop.
Revisions
-
Guilherme Caulada created this gist
Mar 31, 2020 .There are no files selected for viewing
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 charactersOriginal 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 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 charactersOriginal 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 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 charactersOriginal 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 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 charactersOriginal 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