diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,12 +1,17 @@ #!/bin/fish +set crate $argv[1] +set input $argv[2] + 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) +set pixelformat rgb24 +if test $crate = flowy; set pixelformat bgra; end -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 +ffmpeg -loglevel quiet -i $input -vf "scale=$res,format=$pixelformat" -f rawvideo pipe:1 \ + | cargo run --release --bin $crate \ + | ffplay -loglevel quiet -video_size $res -pixel_format $pixelformat -f rawvideo pipe:0 |