Crates.io | retina |
lib.rs | retina |
version | 0.4.10 |
source | src |
created_at | 2021-06-09 20:51:39.72399 |
updated_at | 2024-08-31 16:16:01.489201 |
description | high-level RTSP multimedia streaming library |
homepage | |
repository | https://github.com/scottlamb/retina |
max_upload_size | |
id | 408354 |
size | 664,610 |
High-level RTSP multimedia streaming library, in Rust. Good support for ONVIF RTSP/1.0 IP surveillance cameras, as needed by Moonfire NVR. Works around brokenness in cheap closed-source cameras.
Status: In production use in Moonfire NVR. Many missing features.
Progress:
Help welcome!
Try the mp4
example. It streams from an RTSP server to a .mp4
file until
you hit ctrl-C.
$ cargo run --package client mp4 --url rtsp://ip.address.goes.here/ --username admin --password test out.mp4
...
^C
$ cargo run --package client <CMD>
Where CMD:
This allows viewing a H.264 video stream from your browser, with the help of
webrtc-rs
.
$ cargo run --package webrtc-proxy -- --help
This builds on the whole Rust ecosystem. A couple folks have been especially helpful:
rtsp-types
h264-reader
It's a working name. Other ideas welcome. I started by looking at dictionary words with the letters R, T, S, and P in order and picking out ones related to video:
$ egrep '^r.*t.*s.*p' /usr/share/dict/words' |
|
---|---|
retinoscope | close but too long, thus retina |
retrospect | good name for an NVR, but I already picked Moonfire |
rotascope | misspelling of "rotascope" (animation tool) or archaic name for "gyroscope"? |
Your choice of MIT or Apache; see LICENSE-MIT.txt or LICENSE-APACHE, respectively.