diff options
author | metamuffin <metamuffin@disroot.org> | 2022-12-06 19:53:07 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-12-06 19:53:07 +0100 |
commit | 437e092985e5633eee50874c337ccbdd0b76ff1e (patch) | |
tree | 7ab39a27de58c7ded9a0c3c62c1741038d8563d6 /evc/scripts/gen | |
parent | 70514416c2ade2abe628efbd0a629a66febdeb13 (diff) | |
download | video-codec-experiments-437e092985e5633eee50874c337ccbdd0b76ff1e.tar video-codec-experiments-437e092985e5633eee50874c337ccbdd0b76ff1e.tar.bz2 video-codec-experiments-437e092985e5633eee50874c337ccbdd0b76ff1e.tar.zst |
update scripts
Diffstat (limited to 'evc/scripts/gen')
-rwxr-xr-x | evc/scripts/gen | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/evc/scripts/gen b/evc/scripts/gen index 8fd53dd..1cf4493 100755 --- a/evc/scripts/gen +++ b/evc/scripts/gen @@ -1,9 +1,10 @@ -#/bin/fish +#!/bin/fish set w $argv[1] set h $argv[2] -ffmpeg -i $argv[3] -to 10 -vf scale={$w}x{$h},fps=30 -f rawvideo -pixel_format rgb24 > samples/raw -LOG=info cargo run --release --bin encode -- -W {$w} -H {$h} < samples/raw > samples/encoded -LOG=info cargo run --release --bin decode -- < samples/encoded > samples/decoded -LOG=info cargo run --release --bin decode -- --debug < samples/encoded > samples/decoded-debug -ffmpeg -y -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo -i samples/decoded samples/decoded.mp4 -ffmpeg -y -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo -i samples/decoded-debug samples/decoded-debug.mp4 +set t $argv[3] +ffmpeg -hide_banner -i $argv[4] -to {$t} -vf scale={$w}x{$h},fps=30,format=rgb24 -f rawvideo pipe:1 | + LOG=info cargo run --release --bin encode -- -W {$w} -H {$h} > samples/encoded +LOG=info cargo run --release --bin decode -- < samples/encoded | + ffmpeg -hide_banner -y -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo -i pipe:0 samples/decoded.mp4 +LOG=info cargo run --release --bin decode -- --debug < samples/encoded | + ffmpeg -hide_banner -y -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo -i pipe:0 samples/decoded-debug.mp4 |