display ip flux video
-
Hi,
I have a IP Camera. I can see video on my navigateur ("http://192.168.1.5/video.cgi) and on VLC.
I want to display the video on QML application.
I have tried with MediaPlayer and VideoOutput but the medialPlayer stay in "Loading" state.
I use Qt 5.2 on Windows (MinGW 32 bits)Rectangle { width: 800 height: 600 color: "black" MediaPlayer { id: player source: "http://192.168.1.5/video.cgi" onStatusChanged:displayStatus(status) autoPlay: true } VideoOutput { id: videoOutput source: player anchors.fill: parent } }
-
Hi! Maybe you want to try this VLC wrapper as the integrated mediaplayer is somewhat limited.
-
Thank you for your answer. It works but there are latency on the video and I have lot of "log" :
Is there a way to disable this debug ?LC-Qt "1.1.0" initialised Using libvlc version: "2.2.4 Weatherwax" Format: chroma: J422 width: 320 height: 256 pitches: 0 lines: 0 YV12 3 0 core vout display error: Failed to change zoom [swscaler @ 03d7abe0] deprecated pixel format used, make sure you did set range correctly libvlc: Failed to change zoom libvlc: Failed to set on top libvlc: Failed to change source AR core vout display error: Failed to set on top core vout display error: Failed to change source AR [mjpeg @ 03cbc920] No JPEG data found in image libvlc Error: "Track identifier not found" libvlc Error: "Track identifier not found" [mjpeg @ 03cbc920] No JPEG data found in image [mjpeg @ 03cbc920] No JPEG data found in image [mjpeg @ 03cbc920] No JPEG data found in image [mjpeg @ 03cbc920] No JPEG data found in image ... [mjpeg @ 03cbc920] No JPEG data found in image libvlc: Failed to change zoom libvlc: Failed to change source AR core vout display error: Failed to change zoom core vout display error: Failed to change source AR D:\Helene\sandbox\Qt\VLC\build-TestVLC-Desktop_Qt_5_3_MinGW_32bit-Release\release\TestVLC.exe s'est terminé avec le code 0
import QtQuick 2.3 import QtQuick.Window 2.2 import VLCQt 1.0 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Rectangle { width: 640 height: 480 color: "black" } VlcVideoPlayer { id: vidwidget anchors.fill: parent url: "http://192.168.1.5/video.cgi" } }
-
Thank you for your answer. It works but there are latency on the video and I have lot of "log" :
Is there a way to disable this debug ?LC-Qt "1.1.0" initialised Using libvlc version: "2.2.4 Weatherwax" Format: chroma: J422 width: 320 height: 256 pitches: 0 lines: 0 YV12 3 0 core vout display error: Failed to change zoom [swscaler @ 03d7abe0] deprecated pixel format used, make sure you did set range correctly libvlc: Failed to change zoom libvlc: Failed to set on top libvlc: Failed to change source AR core vout display error: Failed to set on top core vout display error: Failed to change source AR [mjpeg @ 03cbc920] No JPEG data found in image libvlc Error: "Track identifier not found" libvlc Error: "Track identifier not found" [mjpeg @ 03cbc920] No JPEG data found in image [mjpeg @ 03cbc920] No JPEG data found in image [mjpeg @ 03cbc920] No JPEG data found in image [mjpeg @ 03cbc920] No JPEG data found in image ... [mjpeg @ 03cbc920] No JPEG data found in image libvlc: Failed to change zoom libvlc: Failed to change source AR core vout display error: Failed to change zoom core vout display error: Failed to change source AR D:\Helene\sandbox\Qt\VLC\build-TestVLC-Desktop_Qt_5_3_MinGW_32bit-Release\release\TestVLC.exe s'est terminé avec le code 0
import QtQuick 2.3 import QtQuick.Window 2.2 import VLCQt 1.0 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Rectangle { width: 640 height: 480 color: "black" } VlcVideoPlayer { id: vidwidget anchors.fill: parent url: "http://192.168.1.5/video.cgi" } }
@helenebro hey, did you ever get anywhere with this? I am having a similar problem with vlc-qt.. as far as latency --network-caching=0 has an effect when used to run vlc from the command line
-
@helenebro hey, did you ever get anywhere with this? I am having a similar problem with vlc-qt.. as far as latency --network-caching=0 has an effect when used to run vlc from the command line
@GtrPksRnt4eatin Same.. :( Using msvc2013, Qt5.9.1, VLCQt 1.1.0, VLC 2.2.6