diff options
author | metamuffin <metamuffin@disroot.org> | 2022-12-06 08:50:54 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-12-06 08:50:54 +0100 |
commit | d5179b3cc79bda5aa346f111be493f3f9b223d30 (patch) | |
tree | bf94b599f6e38abb62f239881900737a9e026095 /evc/scripts | |
parent | cc1f02a71bd3ad5235ac92dec2d9c516c74f8b1c (diff) | |
download | video-codec-experiments-d5179b3cc79bda5aa346f111be493f3f9b223d30.tar video-codec-experiments-d5179b3cc79bda5aa346f111be493f3f9b223d30.tar.bz2 video-codec-experiments-d5179b3cc79bda5aa346f111be493f3f9b223d30.tar.zst |
works
Diffstat (limited to 'evc/scripts')
-rwxr-xr-x | evc/scripts/gen | 2 | ||||
-rwxr-xr-x | evc/scripts/stream | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/evc/scripts/gen b/evc/scripts/gen index 2160b9a..9754079 100755 --- a/evc/scripts/gen +++ b/evc/scripts/gen @@ -1,4 +1,4 @@ #/bin/fish cargo run --release --bin encode -- -W 1920 -H 1080 < samples/raw > samples/encoded cargo run --release --bin decode -- < samples/encoded > samples/decoded -ffmpeg -framerate 30 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo -i samples/decoded samples/decoded.mp4 +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 73dca01..2db33b9 100755 --- a/evc/scripts/stream +++ b/evc/scripts/stream @@ -1,6 +1,6 @@ #!/bin/fish -ffmpeg -i ~/videos/eddie-woo.mp4 -to 10 -vf scale=1920x1080,fps=30,format=rgb24 -f rawvideo pipe:1 | +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 | - ffplay -framerate 30 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo + cargo run --release --bin decode -- | + ffplay -framerate 30 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo pipe:0 2>/dev/null
\ No newline at end of file |