xstream

streaming tool for xorg over udp
git clone git://git.kocotian.pl/xstream.git
Log | Files | Refs

commit e803fb09c7debc2f9de7ffff41b0953fac02681a
parent d32b2d5e38ca706206d4d21bf6e9566be85ed9bb
Author: kocotian <kocotian@kocotian.pl>
Date:   Sun, 14 Mar 2021 17:48:06 +0100

Additional flags in playing

Diffstat:
Mxstream | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/xstream b/xstream @@ -1,4 +1,7 @@ #!/bin/sh + +ADDITIONAL_PLAYFLAGS="-fflags nobuffer" + case $1 in -*) case $1 in @@ -24,8 +27,8 @@ if [ ! -z "$1" ]; then shift 1 fi -if [ $PLAY -eq 1 ]; then - ffplay -f mpegts "udp://$IP:$PORT" +if [ "$PLAY" -eq 1 ]; then + ffplay $ADDITIONAL_PLAYFLAGS -f mpegts udp://$IP:$PORT else ffmpeg -y \ -f x11grab \