support --rtsp-library=retina (#37)

This isn't well-tested and doesn't yet support an initial connection
timeout. But in a quick test, it successfully returns video!

I'd like to do some more aggressive code restructuring for zero-copy
and to have only one writer thread per sample file directory (rather
than the syncer thread + one writer thread per RTSP stream). But I'll
likely wait until I drop support for ffmpeg entirely.
This commit is contained in:
Scott Lamb
2021-06-07 14:36:53 -07:00
parent 7699696bd9
commit 032bd76577
10 changed files with 582 additions and 200 deletions

View File

@@ -70,8 +70,8 @@ pub struct Camera<'a> {
#[serde(rename_all = "camelCase")]
pub struct CameraConfig<'a> {
pub onvif_host: &'a str,
pub username: &'a str,
pub password: &'a str,
pub username: Option<&'a str>,
pub password: Option<&'a str>,
}
#[derive(Debug, Serialize)]
@@ -191,8 +191,8 @@ impl<'a> Camera<'a> {
false => None,
true => Some(CameraConfig {
onvif_host: &c.onvif_host,
username: &c.username,
password: &c.password,
username: c.username.as_deref(),
password: c.password.as_deref(),
}),
},
streams: [