Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Not work Video stream
Forum Updated to NodeBB v4.3 + New Features

Not work Video stream

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 679 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Mihaill

    Hi.
    I use Windows, install VLC and K-Lite Codec Pack.
    I get videostream. When stream using codec mp4v- all work fine. But when stream with h264 - video not work.
    How I can show video with h264?

    Christian EhrlicherC Offline
    Christian EhrlicherC Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by
    #2

    I don't see what this should have to do with Qt programming...

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    M 1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher

      I don't see what this should have to do with Qt programming...

      M Offline
      M Offline
      Mihaill
      wrote on last edited by
      #3

      @Christian-Ehrlicher how Qt using codecs?
      I think that Qt not load codec, becouse I can plaing video ub VLC player on my windows.

      Christian EhrlicherC 1 Reply Last reply
      0
      • M Mihaill

        @Christian-Ehrlicher how Qt using codecs?
        I think that Qt not load codec, becouse I can plaing video ub VLC player on my windows.

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #4

        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?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        M 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          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?

          M Offline
          M Offline
          Mihaill
          wrote on last edited by
          #5

          @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()
                  }
              }
          }
          
          JoeCFDJ 1 Reply Last reply
          0
          • M Mihaill

            @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()
                    }
                }
            }
            
            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #6

            @Mihaill Your Qt version? Qt5 and Qt6 could be very different.

            M 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @Mihaill Your Qt version? Qt5 and Qt6 could be very different.

              M Offline
              M Offline
              Mihaill
              wrote on last edited by
              #7

              @JoeCFD I use 5.15

              M 1 Reply Last reply
              0
              • M Mihaill

                @JoeCFD I use 5.15

                M Offline
                M Offline
                Mihaill
                wrote on last edited by
                #8

                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
                
                
                JoeCFDJ 1 Reply Last reply
                0
                • M Mihaill

                  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
                  
                  
                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #9

                  @Mihaill if vlc works, you can try to check its qt lib which has qml part.
                  https://vlc-qt.tano.si/

                  M 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @Mihaill if vlc works, you can try to check its qt lib which has qml part.
                    https://vlc-qt.tano.si/

                    M Offline
                    M Offline
                    Mihaill
                    wrote on last edited by
                    #10

                    @JoeCFD Is it possible to set up a video stream using qt?

                    JoeCFDJ 1 Reply Last reply
                    0
                    • M Mihaill

                      @JoeCFD Is it possible to set up a video stream using qt?

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by JoeCFD
                      #11

                      @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.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved