diff options
author | metamuffin <metamuffin@disroot.org> | 2023-11-18 00:02:40 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-11-18 00:02:40 +0100 |
commit | efd347cf8252fbf5cf2b5c075d3c149a4b8b5f36 (patch) | |
tree | ee6b9a980123a5c9b51bb3324eb3986c05ef5a1c /test | |
parent | feb3c7be85dd1f17c3f34b15906ce7c4b6c017f5 (diff) | |
download | video-codec-experiments-efd347cf8252fbf5cf2b5c075d3c149a4b8b5f36.tar video-codec-experiments-efd347cf8252fbf5cf2b5c075d3c149a4b8b5f36.tar.bz2 video-codec-experiments-efd347cf8252fbf5cf2b5c075d3c149a4b8b5f36.tar.zst |
gpu pipeline
Diffstat (limited to 'test')
-rwxr-xr-x | test | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,4 +1,12 @@ #!/bin/fish -ffmpeg -loglevel quiet -i $argv[2] -vf 'scale=1920x1080,format=rgb24' -f rawvideo pipe:1 \ - | V_WIDTH=1920 V_HEIGHT=1080 V_MODE=encode cargo run --release --bin $argv[1] \ - | ffplay -loglevel quiet -video_size 1920x1080 -pixel_format rgb24 -f rawvideo pipe:0 + +set -q V_WIDTH; or export V_WIDTH=1920 +set -q V_HEIGHT; or export V_HEIGHT=1080 +set -q V_MODE; or export V_MODE=encode +set -q V_DEBUG; or export V_DEBUG=0 + +set res (echo -s $V_WIDTH x $V_HEIGHT) + +ffmpeg -loglevel quiet -i $argv[2] -vf "scale=$res,format=rgb24" -f rawvideo pipe:1 \ + | cargo run --release --bin $argv[1] \ + | ffplay -loglevel quiet -video_size $res -pixel_format rgb24 -f rawvideo pipe:0 |