0.4.0 mostly complete milestone
This commit is contained in:
parent
d81eb7c460
commit
dc8fd4dd72
@ -45,12 +45,7 @@ pub async fn eye_ball(
|
||||
gst::init().context("gst init")?;
|
||||
|
||||
let desc = format!(
|
||||
|
||||
"v4l2src device=\"{dev}\" io-mode=mmap ! \
|
||||
queue ! tsdemux name=d ! \
|
||||
d. ! h264parse disable-passthrough=true config-interval=-1 ! \
|
||||
video/x-h264,stream-format=byte-stream,alignment=au ! \
|
||||
appsink name=vsink emit-signals=true max-buffers=32 drop=true"
|
||||
"v4l2src device=\"{dev}\" io-mode=mmap ! queue ! tsdemux name=d ! d. ! h264parse disable-passthrough=true config-interval=-1 ! video/x-h264,stream-format=byte-stream,alignment=au ! appsink name=sink emit-signals=true max-buffers=32 drop=true"
|
||||
);
|
||||
// let desc = format!(
|
||||
// "v4l2src device={dev} io-mode=mmap ! \
|
||||
@ -65,6 +60,10 @@ pub async fn eye_ball(
|
||||
.downcast::<gst::Pipeline>()
|
||||
.expect("not a pipeline");
|
||||
|
||||
// let pipeline: gst::Pipeline = gst::parse_launch(&desc)?
|
||||
// .downcast()
|
||||
// .expect("not a pipeline");
|
||||
|
||||
let sink = pipeline
|
||||
.by_name("sink")
|
||||
.expect("appsink")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user