Not work Video stream
-
I don't see what this should have to do with Qt programming...
-
@Christian-Ehrlicher how Qt using codecs?
I think that Qt not load codec, becouse I can plaing video ub VLC player on my windows. -
You neither specified what you're doing with Qt nor show us any source code or even if it's related to Qt at all - so how should we answer you in a useful manner?
-
@Christian-Ehrlicher its my code, another strem with another codec work with this code, this stream not work.
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtMultimedia 5.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Video { id: video anchors.fill: parent loops: Animation.Infinite source: "rtsp://stream.lesohranitel.ru:554/RU.32.02/" Component.onCompleted: { video.play() } } }
-
And I have this codecs:
ICM Cinepak, Radius cvid iccvid.dll 1.10.0.12 ICM Intel IYUV IYUV iyuv_32.dll 10.0.19041.1 ICM Microsoft RLE MRLE msrle32.dll 10.0.19041.1 ICM Microsoft Video 1 MSVC msvidc32.dll 10.0.19041.1 ICM Microsoft YUV UYVY msyuv.dll 10.0.19041.1 ICM Toshiba YUV Codec Y411 tsbyuv.dll 10.0.19041.1 ICM Microsoft YUV UYVY msyuv.dll 10.0.19041.1 ICM Xvid MPEG-4 Codec XVID ICM x264vfw - H.264/MPEG-4 AVC codec X264 x264vfw.dll 44.2851.44825.0 ICM Lagarith Lossless Codec LAGS lagarith.dll 1.3.27.0 DMO Mpeg4s Decoder DMO mp4s, MP4S, m4s2, M4S2, MP4V, mp4v, XVID, xvid, DIVX, DX50 mp4sdecd.dll 10.0.19041.1706 DMO WMV Screen decoder DMO MSS1, MSS2 wmvsdecd.dll 10.0.19041.1 DMO WMVideo Decoder DMO WMV1, WMV2, WMV3, WMVA, WVC1, WMVP, WVP2, VC1S wmvdecod.dll 10.0.19041.2604 DMO Mpeg43 Decoder DMO mp43, MP43 mp43decd.dll 10.0.19041.1165 DMO Mpeg4 Decoder DMO MPG4, mpg4, mp42, MP42 mpg4decd.dll 10.0.19041.1165
-
@Mihaill Of course. I use Qt5 + Qt Gstreamer + gstreamer to do it. Unluckily, Qt gstreamer is not maintained anymore. It has a few leaks as well. But you can use qml sink + qml GUI + gstreamer to stream. I guess you can also feed a gstreamer pipeline into qt multimedia for streaming. However, it is not flexible for you to manipulate your pipeline. I have not tried Qt6 for streaming. Qt6 may be more FFmpeg oriented. Do your research.
If h264 codec does not work on Windows, you need a tool to check if it is available. I know how to check it on Linux, but do not know how to do it on Windows.