I have installed gstreamer 1.24.7
. I was trying to run the webrtc rust example. But I kept getting missing plugins for ["videoconvert, "videoscale"]
. I decided to create a new project with following dependencies:
[dependencies]
cocoa = "0.26.0"
gstreamer = "0.23.1"
objc = "0.2.7"
I tried running the following snippet
fn tutorial_main() {
gstreamer::init().unwrap();
let needed = [
"videoconvert",
"videoscale",
];
let registry = gstreamer::Registry::get();
let missing = needed
.iter()
.filter(|n| registry.find_plugin(n).is_none())
.cloned()
.collect::<Vec<_>>();
if !missing.is_empty() {
println!("Missing plugins: {:?}", missing);
}
}
I still get the same error. But then when I was trying the Basic Tutorial 3 - Exercise, which makes use of the videoconvert
element, I’m able to run it.
Even doing a gst-inspect
on them shows that they exist.
Any idea on why this happening and how to resolve it?