aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-08 22:20:34 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-08 22:20:34 +0100
commit4f9ff288cfd66dc33cf66ae9085075f7a242685b (patch)
treed4186f970cb14766285b0ab5cb9123f784f21e04
parent1b3835a38ed38d377ce337836a4b32ee89ca0289 (diff)
downloadvideo-codec-experiments-4f9ff288cfd66dc33cf66ae9085075f7a242685b.tar
video-codec-experiments-4f9ff288cfd66dc33cf66ae9085075f7a242685b.tar.bz2
video-codec-experiments-4f9ff288cfd66dc33cf66ae9085075f7a242685b.tar.zst
small oopsie
-rwxr-xr-xevc/scripts/stream-nodebug2
-rw-r--r--evc/src/bin/encode.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/evc/scripts/stream-nodebug b/evc/scripts/stream-nodebug
index 8193654..7211b05 100755
--- a/evc/scripts/stream-nodebug
+++ b/evc/scripts/stream-nodebug
@@ -2,6 +2,6 @@
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 encode -- -W {$w} -H {$h} $argv[4..] |
cargo run --release --bin decode -- |
ffplay -hide_banner -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo pipe:0
diff --git a/evc/src/bin/encode.rs b/evc/src/bin/encode.rs
index d27074e..c313fd0 100644
--- a/evc/src/bin/encode.rs
+++ b/evc/src/bin/encode.rs
@@ -20,7 +20,7 @@ pub struct EncodeArgs {
#[arg(short = 'H', long)]
height: usize,
- #[arg(short, long, default_value = "default")]
+ #[arg(short, long)]
mode: EncodeMode,
#[arg(short, long, default_value = "8")]