https://github.com/lnb51/rstreamer
Rust http camera streamer for linux
https://github.com/lnb51/rstreamer
embedded http linux rust stream
Last synced: 10 months ago
JSON representation
Rust http camera streamer for linux
- Host: GitHub
- URL: https://github.com/lnb51/rstreamer
- Owner: lnB51
- License: mit
- Created: 2023-07-25T12:48:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T13:08:24.000Z (over 2 years ago)
- Last Synced: 2024-12-27T14:12:33.184Z (over 1 year ago)
- Topics: embedded, http, linux, rust, stream
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://github.com/b1rd-dev/rust_grep/blob/main/LICENSE.md)
# Rust http camera streamer
## Installation
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:
```rust
[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`
### Paremeters:
#### -d | --device
##### Used for set video device to capture from
#### Exaples:
`./rstreamer -d /dev/video0`
`./rstreamer -d /dev/video10`
#### -h | --host
##### Used for set host IP
#### Exaples:
`./rstreamer -h localhost`
`./rstreamer -h 0.0.0.0`
WARNING: To use `0.0.0.0` host you have to be root user
#### -p | --port
##### Used for set port
#### Exaples:
`./rstreamer -p 8080`
`./rstreamer -p 80`
WARNING: To use `80` port you have to be root user
#### -r | --resolution
##### Used for set resolution
#### Exaples:
`./rstreamer -r 1920x1080`
`./rstreamer -r 1280x720`
#### -hlp | --help
##### Used to get help with commands
#### Exaples:
`./rstreamer -hlp`