Ip camera live streaming in QML
-
Is there any possibility to live stream the live video output from rtsp/ip cameras without any external or 3rd party libraries. I have tried like this:
MediaPlayer { id: videoPlayer source: "rtsp://admin:vikra%40123@192.168.56.51:554/live" muted: true autoPlay: true autoLoad: true } VideoOutput { id: camera1 width: 1920 height: 1080 anchors.fill:parent source: videoPlayer } Component.onCompleted: { videoPlayer.play(); }
But,it is not working,results in error like this:DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x800c000d ()
IF this is not possible,how to live stream in qml using opencv library. I have already done the live streaming in Qt C++ using opencv. Now, I want to completely run the live stream in qml without C++ at the backend
-
@SGaist I'm using windows platform and My Qt version is 5.15.2.
I found two solutions.One of those from the links are :
https://github.com/yunus-temurlenk/SendVideoToQmlWithQThread/blob/main/main.qml
@SGaist you have already discussed about this..I saw in youtube in this channel https://youtu.be/-EYldBso0M4?si=DJ7A2n0nilsJc9Gu
Actually,I already implemented this solution in my project and it is working.
-
Hi,
Which version of Qt are you using ?
On which platform ? -
@SGaist I'm using windows platform and My Qt version is 5.15.2.
I found two solutions.One of those from the links are :
https://github.com/yunus-temurlenk/SendVideoToQmlWithQThread/blob/main/main.qml
@SGaist you have already discussed about this..I saw in youtube in this channel https://youtu.be/-EYldBso0M4?si=DJ7A2n0nilsJc9Gu
Actually,I already implemented this solution in my project and it is working.
-
So this thread can be considered solved ?
-