From 6a3aaca8727d3f0292d62dbcd54e3bf87df74c0c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 6 Dec 2022 15:52:08 +0100 Subject: split files --- evc/scripts/stream | 2 +- evc/scripts/stream-lq | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 evc/scripts/stream-lq (limited to 'evc/scripts') diff --git a/evc/scripts/stream b/evc/scripts/stream index 9fd9395..2072e21 100755 --- a/evc/scripts/stream +++ b/evc/scripts/stream @@ -1,5 +1,5 @@ #!/bin/fish -ffmpeg -i ~/videos/eddie-woo.mp4 -to 10 -vf scale=1920x1080,fps=30,format=rgb24 -f rawvideo pipe:1 2>/dev/null | +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 | cargo run --release --bin decode -- --debug | ffplay -framerate 30 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo pipe:0 2>/dev/null diff --git a/evc/scripts/stream-lq b/evc/scripts/stream-lq new file mode 100755 index 0000000..486dbaf --- /dev/null +++ b/evc/scripts/stream-lq @@ -0,0 +1,5 @@ +#!/bin/fish +ffmpeg -i $argv[1] -vf scale=1280x720,fps=30,format=rgb24 -f rawvideo pipe:1 2>/dev/null | + cargo run --release --bin encode -- -W 1280 -H 720 | + cargo run --release --bin decode -- --debug | + ffplay -framerate 30 -video_size 1280x720 -pixel_format rgb24 -f rawvideo pipe:0 2>/dev/null -- cgit v1.2.3-70-g09d2