aboutsummaryrefslogtreecommitdiff
path: root/evc/scripts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-06 08:41:48 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-06 08:41:48 +0100
commitcc1f02a71bd3ad5235ac92dec2d9c516c74f8b1c (patch)
tree0c418181610ada30f8a8291fc7fb4e906dccd982 /evc/scripts
parent5002d0df81f74418665e4e99179ba56d8e78cbe1 (diff)
downloadvideo-codec-experiments-cc1f02a71bd3ad5235ac92dec2d9c516c74f8b1c.tar
video-codec-experiments-cc1f02a71bd3ad5235ac92dec2d9c516c74f8b1c.tar.bz2
video-codec-experiments-cc1f02a71bd3ad5235ac92dec2d9c516c74f8b1c.tar.zst
decode somewhat works
Diffstat (limited to 'evc/scripts')
-rwxr-xr-xevc/scripts/gen4
-rwxr-xr-xevc/scripts/stream6
2 files changed, 10 insertions, 0 deletions
diff --git a/evc/scripts/gen b/evc/scripts/gen
new file mode 100755
index 0000000..2160b9a
--- /dev/null
+++ b/evc/scripts/gen
@@ -0,0 +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
diff --git a/evc/scripts/stream b/evc/scripts/stream
new file mode 100755
index 0000000..73dca01
--- /dev/null
+++ b/evc/scripts/stream
@@ -0,0 +1,6 @@
+#!/bin/fish
+ffmpeg -i ~/videos/eddie-woo.mp4 -to 10 -vf scale=1920x1080,fps=30,format=rgb24 -f rawvideo pipe:1 |
+ 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
+ \ No newline at end of file