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. How to play video on QT creator receive from UDP socket.?

How to play video on QT creator receive from UDP socket.?

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 2.7k Views 2 Watching
  • 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.
  • P Offline
    P Offline
    Pooja Bhusare
    wrote on last edited by
    #1

    How to play video on QT creator receive from socket.?
    capture the video camera and stream send it to target using udp sockets and then other side receive it and play it using qmediaplayer but i can't find any doc or tutorial that explains.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Qt Creator has nothing to do with that. It's just an IDE.

      Your question is too vague. What part are you implementing ?
      What are you using Qt for ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pooja Bhusare
        wrote on last edited by
        #3

        @SGaist i want to receive the video file send from another PC via UDP socket on QTudp and play with the help of Qtgstreamer

        PC(send .mp4 file)---UDP socket--->Qt creator (receive .mp4 file)---->play .mp4 file using gstreamer

        KroMignonK JonBJ 2 Replies Last reply
        0
        • P Pooja Bhusare

          @SGaist i want to receive the video file send from another PC via UDP socket on QTudp and play with the help of Qtgstreamer

          PC(send .mp4 file)---UDP socket--->Qt creator (receive .mp4 file)---->play .mp4 file using gstreamer

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:

          PC(send .mp4 file)---UDP socket--->Qt creator (receive .mp4 file)---->play .mp4 file using gstreamer

          that's NOT possible.
          Qt Creator is an IDE like MS Visual Studio ==> https://en.wikipedia.org/wiki/Integrated_development_environment

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          1 Reply Last reply
          0
          • P Pooja Bhusare

            @SGaist i want to receive the video file send from another PC via UDP socket on QTudp and play with the help of Qtgstreamer

            PC(send .mp4 file)---UDP socket--->Qt creator (receive .mp4 file)---->play .mp4 file using gstreamer

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:

            Qt creator (receive .mp4 file)

            Do you mean a Qt application which you have written here, not Creator?

            P 1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              First of all: QtGstreamer has been unmaintained for quite a long time now and was provided by the GStreamer folks. You should not start a new project using it. However, GStreamer itself has a plugin for Qt.

              With recent versions of Qt you can use QMediaPlayer with custom GStreamer pipeline.

              Finally, there's no need to reinvent the wheel in this case, use GStreamer to stream your file, that will be way simpler than doing the all the chain yourself to use QUdpSocket.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • JonBJ JonB

                @Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:

                Qt creator (receive .mp4 file)

                Do you mean a Qt application which you have written here, not Creator?

                P Offline
                P Offline
                Pooja Bhusare
                wrote on last edited by
                #7

                @JonB Yes .
                I am very new in Qt .
                is it possible to receive video frames from UDP socket and display in app which will be created by Qt creator.?
                or
                can we establish full duplex communication between pc(as client) and Qt app(using Qt creator) (as a server)?
                so the pc can send message (string) or .png file and that message would be display on qtapp ?

                please anyone help me

                KroMignonK 1 Reply Last reply
                0
                • P Pooja Bhusare

                  @JonB Yes .
                  I am very new in Qt .
                  is it possible to receive video frames from UDP socket and display in app which will be created by Qt creator.?
                  or
                  can we establish full duplex communication between pc(as client) and Qt app(using Qt creator) (as a server)?
                  so the pc can send message (string) or .png file and that message would be display on qtapp ?

                  please anyone help me

                  KroMignonK Offline
                  KroMignonK Offline
                  KroMignon
                  wrote on last edited by
                  #8

                  @Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:

                  which will be created by Qt creator.?

                  Sorry to borrow you with this, but Qt Creator is not mandatory to create an application based on Qt.
                  Qt Creator will only helps you for:

                  • editing code,
                  • build your application
                  • run/debug your application.

                  This could all be done without Qt Creator.
                  So Qt Creator is not a factor for your needs, please accept this.

                  And as @SGaist wrote before, you can

                  • use QUdpSocket to receive/send UDP Datagram
                  • use GStreamer to stream your video on network. If you are using Windows, take a look at this post ==> https://forum.qt.io/topic/112384/building-with-gstreamer-on-windows

                  It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                  P 1 Reply Last reply
                  1
                  • KroMignonK KroMignon

                    @Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:

                    which will be created by Qt creator.?

                    Sorry to borrow you with this, but Qt Creator is not mandatory to create an application based on Qt.
                    Qt Creator will only helps you for:

                    • editing code,
                    • build your application
                    • run/debug your application.

                    This could all be done without Qt Creator.
                    So Qt Creator is not a factor for your needs, please accept this.

                    And as @SGaist wrote before, you can

                    • use QUdpSocket to receive/send UDP Datagram
                    • use GStreamer to stream your video on network. If you are using Windows, take a look at this post ==> https://forum.qt.io/topic/112384/building-with-gstreamer-on-windows
                    P Offline
                    P Offline
                    Pooja Bhusare
                    wrote on last edited by
                    #9

                    @KroMignon
                    how to stream a video frame by frame from system1 to a qt-application on system2 and display it in real time.
                    and i am doing these stuff on linux system.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      As already written: Use GStreamer. It provides all the tools for both generating the stream in an adequate format, so server side, as well as read said stream, so client side.

                      And, again, as already written: use QMediaPlayer::setMedia with a custom pipeline if needed to show the video on your application.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      2

                      • Login

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