[WIP] Two video streams - #13686
Conversation
|
This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/qgc-to-support-multiple-cameras-videostreams/47878/6 |
|
Is this to provide display of two video streams simultaneously or is it for switching between two streams. If it's for switching between streams QGC support for mavlink v2 camera protocol already support that. Not super interested in creating some other way to do this. |
|
Could you provide more details on "QGC support for mavlink v2 camera protocol" ?
|
|
Mavlink Camera protocol: https://mavlink.io/en/services/camera.html That said, even with that qgc does not have support to show two video streams at once. Adding support for that on top of the existing Mavlink camera protocol is interesting. But adding support for the whole thing as a one-off from the new camera protocol is not interesting for regular QGC codebase. |
|
Closing this since it isn't something we are going to support unless it uses mavlink camera protocol |

[WIP] Two video streams
Description
You can treat this as a lite alternative to the #8017 .
To be honest, I don't really know QML, and this is just a small attempt to add the support of 2 video streams to QGC.
Here is what it does:
This is work-in-progress and demonstrates the current state. Any hints and contributions are welcome.
Test Steps
./mediamtxffmpeg -re -stream_loop -1 -i anim1.mp4 -c copy -f rtsp rtsp://127.0.0.1:8554/stream1ffmpeg -re -stream_loop -1 -i anim2.mp4 -c copy -f rtsp rtsp://127.0.0.1:8554/stream2And here is the problem: currently, the switching between the video streams is very "heavy". This is how the video receivers seem to work. Maybe this can be improved by updating the GStreamer-related code, but I don't have such expertise.
Related Issue
#8017
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.