Download source code from github:
git clone https://github.com/lnB51/rstreamer
Build the project:
cargo buid or cargo buid --release
Build for raspberry pi
cargo build --release --target aarch64-unknown-linux-gnu
You have to add .cargo/config file with:
[target.aarch64-unknown-linux-gnu]
linker = "/usr/bin/aarch64-linux-gnu-gcc"Run the project:
./rstreamer or with parameters ./rstreamer -d /dev/video0 -h localhost -p 8080 -r 1920x1080
./rstreamer -d /dev/video0
./rstreamer -d /dev/video10
./rstreamer -h localhost
./rstreamer -h 0.0.0.0
WARNING: To use 0.0.0.0 host you have to be root user
./rstreamer -p 8080
./rstreamer -p 80
WARNING: To use 80 port you have to be root user
./rstreamer -r 1920x1080
./rstreamer -r 1280x720
./rstreamer -hlp