diff options
Diffstat (limited to 'evc/scripts/stream-nodebug')
-rwxr-xr-x | evc/scripts/stream-nodebug | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/evc/scripts/stream-nodebug b/evc/scripts/stream-nodebug new file mode 100755 index 0000000..8193654 --- /dev/null +++ b/evc/scripts/stream-nodebug @@ -0,0 +1,7 @@ +#!/bin/fish +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 -- | + ffplay -hide_banner -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo pipe:0 |