diff options
Diffstat (limited to 'evc/scripts/stream')
-rwxr-xr-x | evc/scripts/stream | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/evc/scripts/stream b/evc/scripts/stream index 2072e21..10098b6 100755 --- a/evc/scripts/stream +++ b/evc/scripts/stream @@ -1,5 +1,7 @@ #!/bin/fish -ffmpeg -i $argv[1] -vf scale=1920x1080,fps=30,format=rgb24 -f rawvideo pipe:1 2>/dev/null | - cargo run --release --bin encode -- -W 1920 -H 1080 | +set w $argv[1] +set h $argv[2] +ffmpeg -hide_banner -i $argv[3] -vf scale={$w}x{$h},fps=30,format=rgb24 -f rawvideo pipe:1 | + cargo run --release --bin encode -- -W {$w} -H {$h} | cargo run --release --bin decode -- --debug | - ffplay -framerate 30 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo pipe:0 2>/dev/null + ffplay -hide_banner -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo pipe:0 |