mavlink-camera-manager: H264 Encoding error when running UVC Camera
I am trying to run UVC camera ARDUCAM IMX323 using mavlink-camera-manager but when I try to stream H264 encoding the gstreamer fails with the following error.
Name: /dev/video4 - USB 2.0 Camera: Arducam IMX323
Video: H264 640x480 @ 30 / 1 FPS, Thermal: falseDisable Mavlink: false
Delete stream
Endpoints:
udp://192.168.0.247:5600
Configuration:
{
"id": "97cd52da-8fd5-4072-bc55-5ebd46c590a8",
"running": false,
"error": "Failed to recreate the stream 97cd52da-8fd5-4072-bc55-5ebd46c590a8: Error {\n domain: gst_parse_error,\n code: 2,\n message: \"no property \\\"aggregate-mode\\\" in element \\\"rtph264pay22\\\"\",\n}. Trying again in one second...",
"video_and_stream": {
"name": "/dev/video4 - USB 2.0 Camera: Arducam IMX323 ",
"stream_information": {
"endpoints": [
"udp://192.168.0.247:5600"
],
"configuration": {
"type": "video",
"encode": "H264",
"height": 480,
"width": 640,
"frame_interval": {
"numerator": 1,
"denominator": 30
}
},
"extended_configuration": {
"thermal": false,
"disable_mavlink": false
}
},
"video_source": {
"Local": {
"name": "USB 2.0 Camera: Arducam IMX323 ",
"device_path": "/dev/video4",
"type": {
"Unknown": "usb-xhci-hcd.2.auto-1"
}
}
}
}
}
If I stream the data in MJPG format then the gstreamer pipeline works but gives an error while running H264 encoding.
I am getting the mavlink connection via QGC correctly.
The application was built on arm64 architecture
Below is the screenshot of webpage running on my embedded device
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20
Sure No problem by the time I will test locally and hardcode the encoders to see what error comes and once you create a branch and I will start supporting
TBH I would love to contribute to the enhancement you have proposed and other functionality to the MCM. Let mw know how can I contribute and help
Yes the code I am referring to is for my own application but what I meant was if someone who wants to use custom HW encoders can use the branch as reference. I can see that there was a request as enhancement for using custom features so I thought I could contribute.
I will start building using custom HW encoder on my hardware and will share provide more detailed error with logs.
Thanks for your help. we can close this task now
the library was built as part of the docker distribution. The solution just to add the following in
~/.bashrcNow I am able to stream H264
Further to that based on the script above I have been able to compile Gstreamer 1.24.8 on my Ubun 2.0 distribution
But the issue is when I stream using avdec_h264 I am getting a lot of latency. I have got HW encoders such as
qtic2vencandqtivdecbut I am unable to use them in the code. If you can suggest or provide steps then I can build that functionality and can share this development with you for othersI think so I got the error. It is failing to load libgstlibav.so
Here is the output
Nothing weird pops out I can see the test screen
Thanks @joaoantoniocardoso . I will try to build or update gstreamer version within the docker build. hopefully that would work. Will keep you posted in case I get stuck. Thanks for you quick response and support
Hi I don’t think 1.24 would work on my chipset. As I using msm-5.4 kernel with Ubuntu 20.04. So that is the reason I am unable to update.
are there any special steps I need to do for updating the gstreamer version for my HW.