mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-03-13 21:12:55 -04:00
tell retina not to enforce timestamps
Moonfire NVR has some enforcement on its own; this makes retina vs ffmpeg more of an apples-to-apples comparison. I'm also thinking of dropping enforcement from retina; enough things have sketchy timestamps that this policy doesn't make much sense anyway.
This commit is contained in:
parent
4c95df5ba7
commit
547c106e6b
@ -13,7 +13,6 @@ use retina::client::{Credentials, Playing, Session};
|
|||||||
use retina::codec::{CodecItem, VideoParameters};
|
use retina::codec::{CodecItem, VideoParameters};
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
use std::num::NonZeroU32;
|
|
||||||
use std::result::Result;
|
use std::result::Result;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
@ -407,12 +406,7 @@ impl RetinaOpener {
|
|||||||
})
|
})
|
||||||
.ok_or_else(|| format_err!("couldn't find H.264 video stream"))?;
|
.ok_or_else(|| format_err!("couldn't find H.264 video stream"))?;
|
||||||
session.setup(video_i).await?;
|
session.setup(video_i).await?;
|
||||||
let session = session
|
let session = session.play(retina::client::PlayPolicy::default()).await?;
|
||||||
.play(
|
|
||||||
retina::client::PlayPolicy::default()
|
|
||||||
.enforce_timestamps_with_max_jump_secs(NonZeroU32::new(10).unwrap()),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
Ok((session, video_params))
|
Ok((session, video_params))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user