Dronecode / camera-manager

Camera Manager for interfacing cameras with the Dronecode platform
https://camera-manager.dronecode.org/en/
Apache License 2.0
63 stars 51 forks source link

Add RTSP server for v4l2src and appsrc #181

Closed lbegani closed 6 years ago

lbegani commented 6 years ago

Earlier the implementation for RTSP was only for specific set of cameras. Have now changed it to support any camera device added as a plugin.

hamishwillee commented 6 years ago

Looks good. Have you got a reviewer you can rely on?

lbegani commented 6 years ago

Looks good. Have you got a reviewer you can rely on?

@hamishwillee No one yet, I usually wait for a while and then merge. Feel free to add reviewers. Going forward, I plan to add gtest unit test cases that can be run for basic testing .

hamishwillee commented 6 years ago

That sounds sensible!

@mrpollo It would be great if we could get some additional help for Lalit in code review. Is there anyone you could suggest we ask?

paytufo commented 6 years ago

Great! How can I do to use it with a Xiaomi Yi?

hamishwillee commented 6 years ago

@paytufo Docs are here: https://camera-manager.dronecode.org/en/

Essentially you plug your camera into a linux companion computer and the camera manager provides a MAVLink and RTSP API. If the camera supports Video4Linux (V4L2) API then everything should just work. If not, you will need to write a plugin that maps to whatever linux API your camera supports.

@lbegani Do you happen to know whether this camera support Video4Linux?

lbegani commented 6 years ago

@paytufo Can the camera Xiaomi Yi be connected with the drone's companion board(over USB interface etc) and can it be detected/accessed from a program running in drone. With little understanding of Yi, I think it is not possible. Xiaomi Yi can be controlled by mechanical buttons or by proprietary phone app over wifi. Correct me if my understanding is wrong.

paytufo commented 6 years ago

It’s actually possible to control the Yi Camera with bluetoothand wifi, even exist a phyton program who can control everything and share video via RTSP, but I can only use it with Windows. I’ve tried to make it work with MacOs via Terminal and must be work but I can’t get image. Tried to execute the phyton and execute with qgroundcontrol and get no image. I think the app/project names “master-yi” or something like that, I can browse later. Is on github. Will be amazing to load this when the raspi or other linux based computer boot up and the get the video signal in the app.

paytufo commented 6 years ago

Here is the URL https://github.com/deltaflyer4747/Xiaomi_Yi This actioncam is really cheap and very “hackeable” you can put it in client mode wifi for example. I inow I can connect via HDMI to the computer and then share it. But will be better without cables, you don’t?

lbegani commented 6 years ago

@paytufo If you can write/run a simple c/c++ program to open/read Yi camera device, then I can help you with how you can write plugin for this camera device and integrate it with camera-manager. Let me know once it works.

paytufo commented 6 years ago

I’m architect and I haven’t knowledges enough about programing, maybe I can talk with some friends who could does it. What I’m sure is that the windows CC.exe is running and working with VLC. And I thought that this method open the RSTL transmission to other devices connected to the same network, I can even open in my Iphone in a special camera app but not in qgroundcontrol or in VLC in mu MacOs. Maybe like I said, I haven’t knowledges enough. In other way, I’ll try to make this C/C++ with any friend. Thank you very much!!