diff options
author | metamuffin <metamuffin@disroot.org> | 2022-12-06 09:10:30 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-12-06 09:10:30 +0100 |
commit | a5b09a2fc7a2e1ddc5776993373052cd3eda9b51 (patch) | |
tree | ff9cc842999b0e1a00bca2507a0e42c25b8908d6 /evc | |
parent | 86eda32f9d8fed77136ffd3495e93c4c37e7671b (diff) | |
download | video-codec-experiments-a5b09a2fc7a2e1ddc5776993373052cd3eda9b51.tar video-codec-experiments-a5b09a2fc7a2e1ddc5776993373052cd3eda9b51.tar.bz2 video-codec-experiments-a5b09a2fc7a2e1ddc5776993373052cd3eda9b51.tar.zst |
a
Diffstat (limited to 'evc')
-rwxr-xr-x | evc/scripts/gen-debug | 4 | ||||
-rwxr-xr-x | evc/scripts/stream | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/evc/scripts/gen-debug b/evc/scripts/gen-debug new file mode 100755 index 0000000..513afab --- /dev/null +++ b/evc/scripts/gen-debug @@ -0,0 +1,4 @@ +#/bin/fish +cargo run --release --bin encode -- -W 1920 -H 1080 < samples/raw > samples/encoded +cargo run --release --bin decode -- --debug < samples/encoded > samples/decoded +ffmpeg -y -framerate 30 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo -i samples/decoded samples/decoded.mp4 diff --git a/evc/scripts/stream b/evc/scripts/stream index 2db33b9..9fd9395 100755 --- a/evc/scripts/stream +++ b/evc/scripts/stream @@ -1,6 +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 | cargo run --release --bin encode -- -W 1920 -H 1080 | - cargo run --release --bin decode -- | + cargo run --release --bin decode -- --debug | ffplay -framerate 30 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo pipe:0 2>/dev/null -
\ No newline at end of file |