diff options
author | metamuffin <metamuffin@disroot.org> | 2023-03-07 22:30:23 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-03-07 22:30:23 +0100 |
commit | b9b629a8ed9c393b1b475f67f427d26e649a6794 (patch) | |
tree | 682cf6187fc3cbf6ff64243836c8240dbde27be5 | |
parent | 755325d6c8faa897ee686452831cb544d6c72d75 (diff) | |
download | video-codec-experiments-b9b629a8ed9c393b1b475f67f427d26e649a6794.tar video-codec-experiments-b9b629a8ed9c393b1b475f67f427d26e649a6794.tar.bz2 video-codec-experiments-b9b629a8ed9c393b1b475f67f427d26e649a6794.tar.zst |
a
-rw-r--r-- | lvc/src/main.rs | 4 | ||||
-rwxr-xr-x | lvc/tools/d-save | 2 | ||||
-rwxr-xr-x | lvc/tools/d-saved | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/lvc/src/main.rs b/lvc/src/main.rs index 7ecd4b8..9d8a6cb 100644 --- a/lvc/src/main.rs +++ b/lvc/src/main.rs @@ -27,11 +27,11 @@ struct Args { enum Action { // Compress video Encode { - #[arg(short, long, default_value_t = 1024)] + #[arg(short, long, default_value_t = 400)] max_block_size: usize, #[arg(short, long, default_value_t = 10)] iters: usize, - #[arg(short, long, default_value_t = 20_000)] + #[arg(short, long, default_value_t = 5_000)] threshold: u32, }, // Decompress video diff --git a/lvc/tools/d-save b/lvc/tools/d-save index 72e89c2..b79d8de 100755 --- a/lvc/tools/d-save +++ b/lvc/tools/d-save @@ -1,2 +1,2 @@ #!/bin/fish -ffmpeg -pixel_format rgb24 -video_size 1920x1080 -f rawvideo -i pipe:0 -i data/input.webm -map '0:v' -map '1:a' -c:v libsvtav1 -y data/output.webm +cargo run --release -- -w 1920 -h 1080 decode | ffmpeg -pixel_format rgb24 -video_size 1920x1080 -f rawvideo -i pipe:0 -i $argv[1] -map '0:v' -map '1:a' -c:v libsvtav1 -y data/output.webm diff --git a/lvc/tools/d-saved b/lvc/tools/d-saved new file mode 100755 index 0000000..f342106 --- /dev/null +++ b/lvc/tools/d-saved @@ -0,0 +1,2 @@ +#!/bin/fish +cargo run --release -- -w 1920 -h 1080 decode --debug | ffmpeg -pixel_format rgb24 -video_size 1920x1080 -f rawvideo -i pipe:0 -i $argv[1] -map '0:v' -map '1:a' -c:v libsvtav1 -y data/output-debug.webm |