aboutsummaryrefslogtreecommitdiff
path: root/old/evc/scripts/stream
blob: 7e9400d8e1f0492285f8adf28092d6a11aa4feae (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 reschmux-encode -- -W {$w} -H {$h} $argv[4..] |
    cargo run --release --bin reschmux-decode -- --debug |
    ffplay -hide_banner -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo pipe:0