aboutsummaryrefslogtreecommitdiff
path: root/evc/scripts/stream-nodebug
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-06 19:53:07 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-06 19:53:07 +0100
commit437e092985e5633eee50874c337ccbdd0b76ff1e (patch)
tree7ab39a27de58c7ded9a0c3c62c1741038d8563d6 /evc/scripts/stream-nodebug
parent70514416c2ade2abe628efbd0a629a66febdeb13 (diff)
downloadvideo-codec-experiments-437e092985e5633eee50874c337ccbdd0b76ff1e.tar
video-codec-experiments-437e092985e5633eee50874c337ccbdd0b76ff1e.tar.bz2
video-codec-experiments-437e092985e5633eee50874c337ccbdd0b76ff1e.tar.zst
update scripts
Diffstat (limited to 'evc/scripts/stream-nodebug')
-rwxr-xr-xevc/scripts/stream-nodebug7
1 files changed, 7 insertions, 0 deletions
diff --git a/evc/scripts/stream-nodebug b/evc/scripts/stream-nodebug
new file mode 100755
index 0000000..8193654
--- /dev/null
+++ b/evc/scripts/stream-nodebug
@@ -0,0 +1,7 @@
+#!/bin/fish
+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 decode -- |
+ ffplay -hide_banner -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo pipe:0