github.com/gkstretton/dark/services/goo@v0.0.0-20231114224855-2d1a2074d446/scripts/capture-rtsp (about) 1 #!/bin/bash 2 # captures the stream $1 to the file $2 3 # NOTE: this saves the bitstream as-is. Compression / quality 4 # reduction I think requires re-encoding, so copy couldn't be used 5 6 ffmpeg -i rtsp://$1 -vcodec copy -r 30 -y $2