mavlink-camera-manager: Google Coral camera not detected on /dev/video3
The V4L compatible camera on /dev/video3 isn’t detected currently.
Camera
Google Coral connected via MIPI-CSI
Example Gstreamer command that will stream to QGroundControl (As UDP)
sudo gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,width=640,height=480,framerate=30/1 ! vpuenc_h264 bitrate=500 ! rtph264pay ! udpsink host=192.168.1.103 port=5600 sync=false
Board details
- Board - NXP NavQPlus
- Processor -NXP i.MX 8M Plus (4x Arm Cortex A53 cores)
- OS: Ubuntu 22.04 on Yocto Linux 5.15 kernel - Build 22.04.3 from Rudis Labs
Output from mavlink-camera-manager
2023-08-22T15:31:00.768533Z INFO main ThreadId(01) src/logger/manager.rs:82: mavlink-camera-manager, version: 0.2.4-5e2a1f8, build date: 2023-08-21
2023-08-22T15:31:00.769195Z INFO main ThreadId(01) src/logger/manager.rs:89: Starting at 2023-08-22T15:31:00
2023-08-22T15:31:00.769568Z DEBUG main ThreadId(01) src/logger/manager.rs:93: Command line call: ./mavlink-camera-manager -v --mavlink=udpout:10.0.0.2:14551 --enable-tracing-level-log-file
2023-08-22T15:31:00.769768Z DEBUG main ThreadId(01) src/logger/manager.rs:94: Command line input struct call: {
"log-path": MatchedArg {
occurs: 0,
indices: [
6,
],
vals: [
"./logs",
],
},
"enable-tracing-level-log-file": MatchedArg {
occurs: 1,
indices: [
4,
],
vals: [],
},
"rest-server": MatchedArg {
occurs: 0,
indices: [
5,
],
vals: [
"0.0.0.0:6020",
],
},
"verbose": MatchedArg {
occurs: 1,
indices: [
1,
],
vals: [],
},
"mavlink": MatchedArg {
occurs: 1,
indices: [
3,
],
vals: [
"udpout:10.0.0.2:14551",
],
},
}
2023-08-22T15:31:00.770383Z DEBUG main ThreadId(01) src/settings/manager.rs:80: Using settings file: "/home/user/.config/mavlink-camera-manager/settings.json"
2023-08-22T15:31:00.771705Z DEBUG main ThreadId(01) init: src/stream/manager.rs:67: Starting video stream service.
2023-08-22T15:31:00.817495Z DEBUG main ThreadId(01) src/settings/manager.rs:148: Settings saved: ManagerStruct {
file_name: "/home/user/.config/mavlink-camera-manager/settings.json",
config: SettingsStruct {
header: HeaderSettingsFile {
name: "Camera Manager",
version: 0,
},
mavlink_endpoint: Some(
"udpout:10.0.0.2:14551",
),
streams: [],
},
}
2023-08-22T15:31:00.818828Z DEBUG SignallingServer ThreadId(02) run_main_loop: src/stream/webrtc/signalling_server.rs:70: Starting Signalling server on Url { scheme: "ws", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(0.0.0.0)), port: Some(6021), path: "/", query: None, fragment: None }...
2023-08-22T15:31:00.826309Z DEBUG SignallingServer ThreadId(02) run_main_loop:runner{endpoint=Url { scheme: "ws", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(0.0.0.0)), port: Some(6021), path: "/", query: None, fragment: None }}: src/stream/webrtc/signalling_server.rs:91: Signalling server: listening on: 0.0.0.0:6021
2023-08-22T15:31:00.829553Z WARN main ThreadId(01) start_default: src/video/video_source_local.rs:72: msg="Unable to identify the local camera connection type, please report the problem: \"platform:32e00000.isi:cap_devic\""
2023-08-22T15:31:00.848742Z WARN main ThreadId(01) start_default: src/video/video_source_local.rs:72: msg="Unable to identify the local camera connection type, please report the problem: \"platform:32e00000.isi:m2m_devic\""
2023-08-22T15:31:00.854622Z ERROR main ThreadId(01) start_default: src/video/video_source_local.rs:623: Faield to get device "/dev/video1": Os { code: 16, kind: ResourceBusy, message: "Device or resource busy" }
2023-08-22T15:31:00.855150Z ERROR main ThreadId(01) start_default: src/video/video_source_local.rs:623: Faield to get device "/dev/video0": Os { code: 16, kind: ResourceBusy, message: "Device or resource busy" }
2023-08-22T15:31:00.855913Z DEBUG main ThreadId(01) start_default: src/stream/manager.rs:139: Streams: []
2023-08-22T15:31:00.857553Z INFO main ThreadId(01) /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/builder.rs:200: starting 4 workers
2023-08-22T15:31:00.857808Z INFO main ThreadId(01) /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/server.rs:196: Actix runtime found; starting in Actix runtime
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 25
Hi @steamfoundry, could you test this PR and post the full log here? I still need to work on some details, but it should detect your camera and its formats using the added GStreamer’s Device Monitor API.
Thanks
Excellent, thanks for the docs, as we are already using GStreamer in our pipelines, I believe it’s just a matter of using the correct plugins, like perhaps
v4l2h264encfor the i.MX 8M.We have a plan to allow users to use and configure and/or transcoding in our pipelines, it’s being discussed here, you are more than welcome to participate 😃
Not sure if this would be too small of a use case for you. The NXP i.MX 8M Plus has a lot of support for hardware encoding/decoding that works with Gstreamer.
https://developer.ridgerun.com/wiki/index.php/IMX8/Multimedia/GStreamer_Support/Hardware-accelerated_plugins
NXP also wrote a user guide. https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors%40tkb/15/2/i.MX8GStreamerUserGuide.pdf
If there was the choice using Gstreamer to enable hardware encoding that would be great.
Didn’t seem to do it.
mavlink-camera-manager.2023-08-22-15(1).log
Hi @steamfoundry, can you test this PR? It’s updating the v4l library, which might solve the problem.
Okay.
I need some time to investigate it, it is a direct response from the v4l library we are using.
Here is the new log
Sorry:
Here was the output
Sorry for the delay responding you, that’s great info, it indeed makes sense,
platform:32e00000.isi:cap_devicis/dev/video3, so the MCM says it couldn’t recognize it, and it’s a fault on our identification part. What it means, however, is that the device is not a known type, thus, it should be listed as aVideoSourceLocalType::Unknown("platform:32e00000.isi:cap_devic"), but we don’t have a debug message there to help us.It seems there’s something wrong in the device discovery, by design it should work with
VideoSourceLocalType::Unknownsource types.You might need to add a couple of debug for us to understand it better, for instance, we can start with the following one:
Thanks