aboutsummaryrefslogtreecommitdiff
path: root/evc/scripts/stream
blob: cd7e159bb9b57a4617b7c27df3ed0ef5b8620584 (plain)
1
2
3
4
5
6
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} $argv[4..] |
    cargo run --release --bin decode -- --debug |
    ffplay -hide_banner -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo pipe:0