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. Client for VNC video streaming

Client for VNC video streaming

Scheduled Pinned Locked Moved Solved General and Desktop
41 Posts 4 Posters 9.1k 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.
  • O Offline
    O Offline
    ODБOï
    wrote on 4 Jan 2019, 11:33 last edited by
    #1

    Hi,
    I don't know anything about VNC, while i'm searching on google i wanted to also ask on the forum if someone knows a way to 'listen' a VNC video streaming and save it to file with a Qt client.
    Thank you very much for any hint.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 4 Jan 2019, 12:20 last edited by
      #2

      Hi
      VNC is normally like
      https://www.realvnc.com/en/
      So im not sure what the video streaming part would be ?

      Do you mean VLC ?
      https://www.videolan.org/index.da.html

      1 Reply Last reply
      4
      • F Offline
        F Offline
        fcarney
        wrote on 4 Jan 2019, 20:08 last edited by
        #3

        It its VLC it can capture and record a stream itself. It also has an API to their DLLs that may be able to do the same thing. So it could be done using VLCs own libraries.

        C++ is a perfectly valid school of magic.

        1 Reply Last reply
        1
        • O Offline
          O Offline
          ODБOï
          wrote on 4 Jan 2019, 21:07 last edited by
          #4

          hi,

          @mrjj said in Client for VNC video streaming:

          So im not sure what the video streaming part would be ?

          VNC is secure remote desktop access tool,
          I don't need to display the ui when i'm accessing it remotely, i only need a program that will recive the video and save to file. I'm not sure it is possible
          i need to search more about how it works

          @fcarney thx i will check VLC libs for the screen capture if there is no possibilities to save to file without displaying on the screen.

          thank you

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fcarney
            wrote on 4 Jan 2019, 21:13 last edited by
            #5

            Oh, in that case it may be that VNC uses a proprietary stream rather than what VLC uses. VLC uses open streams designed for video streaming. It sounds like apples and oranges to me.

            C++ is a perfectly valid school of magic.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 4 Jan 2019, 21:19 last edited by
              #6

              Hi
              Its very unclear to me what you ask about.
              What will be streaming the video ? and what format ?

              O 1 Reply Last reply 4 Jan 2019, 21:41
              1
              • M mrjj
                4 Jan 2019, 21:19

                Hi
                Its very unclear to me what you ask about.
                What will be streaming the video ? and what format ?

                O Offline
                O Offline
                ODБOï
                wrote on 4 Jan 2019, 21:41 last edited by
                #7

                @mrjj
                i don't know how VNC realy works,and it is unclear to me also.

                I have pc1 with a 3rd party GUI application running,
                with another pc2 i want to capture the gui of the first pc.

                So pc2 can display/record pc1 screen with VNC, like with teamviewer. I want my qt app to run on pc2 and also record the screen of pc1.

                thank you @mrjj

                M 1 Reply Last reply 4 Jan 2019, 21:50
                0
                • O ODБOï
                  4 Jan 2019, 21:41

                  @mrjj
                  i don't know how VNC realy works,and it is unclear to me also.

                  I have pc1 with a 3rd party GUI application running,
                  with another pc2 i want to capture the gui of the first pc.

                  So pc2 can display/record pc1 screen with VNC, like with teamviewer. I want my qt app to run on pc2 and also record the screen of pc1.

                  thank you @mrjj

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 4 Jan 2019, 21:50 last edited by
                  #8

                  @LeLev
                  Ah, ok, so you did mean VNC sort of way.
                  Well such tool exists
                  https://www.tightvnc.com/rfbplayer.php

                  However its not easy to rerecreate using a Qt app as you would have to to understand its protocol.
                  There does exists libs to use
                  https://libvnc.github.io/

                  However, can we talk about the goal of this ?
                  the other 3rd party GUI is runnig on some pc and you want to record a video of it running?
                  what will it be doing ?

                  1 Reply Last reply
                  2
                  • O Offline
                    O Offline
                    ODБOï
                    wrote on 4 Jan 2019, 22:06 last edited by
                    #9

                    Thank you,

                    @mrjj said in Client for VNC video streaming:

                    the other 3rd party GUI is runnig on some pc and you want to record a video of it running?

                    yes,it is running on a machine with 'custom windows'

                    the Gui will reveal a strange 'hardware' bug on the machine that happends only 1-2 times per year... lot of things have been done for debugging this (not by me) but nothing was found, everything is 'normal' :) . I need to record the gui to see some values when the 'hardware' bug happends. I could simply use Fraps or another screen capture tool, but the installation of 3rd party tool is not allowed on that windows. It has VNC

                    M 1 Reply Last reply 4 Jan 2019, 22:12
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 4 Jan 2019, 22:12 last edited by
                      #10

                      Hi,

                      This article and the linked repository might be just what you need.

                      Hope it helps

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

                      O 1 Reply Last reply 5 Jan 2019, 00:48
                      3
                      • O ODБOï
                        4 Jan 2019, 22:06

                        Thank you,

                        @mrjj said in Client for VNC video streaming:

                        the other 3rd party GUI is runnig on some pc and you want to record a video of it running?

                        yes,it is running on a machine with 'custom windows'

                        the Gui will reveal a strange 'hardware' bug on the machine that happends only 1-2 times per year... lot of things have been done for debugging this (not by me) but nothing was found, everything is 'normal' :) . I need to record the gui to see some values when the 'hardware' bug happends. I could simply use Fraps or another screen capture tool, but the installation of 3rd party tool is not allowed on that windows. It has VNC

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 4 Jan 2019, 22:12 last edited by
                        #11

                        @LeLev

                        Ok, a rare bug. Delicious ;)
                        if it only happens 1-2 in a year, how will you know what time to record video?

                        Anyway, you could simply use a tool to record the VNC session then. im not sure creating a Qt app would be worth the time.

                        O 1 Reply Last reply 4 Jan 2019, 22:24
                        0
                        • M mrjj
                          4 Jan 2019, 22:12

                          @LeLev

                          Ok, a rare bug. Delicious ;)
                          if it only happens 1-2 in a year, how will you know what time to record video?

                          Anyway, you could simply use a tool to record the VNC session then. im not sure creating a Qt app would be worth the time.

                          O Offline
                          O Offline
                          ODБOï
                          wrote on 4 Jan 2019, 22:24 last edited by
                          #12

                          @mrjj said in Client for VNC video streaming:

                          Delicious ;)

                          absolutely! :) but this cost tons of money.. for the chief. that is a large machine going crazy once a year

                          i want my qt app to start every time when the user will start the machine (he will also start my app on a pc near the machine).
                          then my app will record and save video chunks. I thought using qt to handle record/chunk/deletion/.. logic
                          Do you think tools alre 'programables' enough or its worth use Qt (everywhere).
                          Thanks

                          M 1 Reply Last reply 4 Jan 2019, 22:37
                          0
                          • O ODБOï
                            4 Jan 2019, 22:24

                            @mrjj said in Client for VNC video streaming:

                            Delicious ;)

                            absolutely! :) but this cost tons of money.. for the chief. that is a large machine going crazy once a year

                            i want my qt app to start every time when the user will start the machine (he will also start my app on a pc near the machine).
                            then my app will record and save video chunks. I thought using qt to handle record/chunk/deletion/.. logic
                            Do you think tools alre 'programables' enough or its worth use Qt (everywhere).
                            Thanks

                            M Offline
                            M Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on 4 Jan 2019, 22:37 last edited by
                            #13

                            @LeLev
                            Ah, well even most tools can be controlled by scripts, using a Qt program would be more solid.
                            Also considering its the operator that controls the recording. ( i though it would be you)
                            it has to be really smooth operating so a Qt app seems like good idea.

                            How many FPS do you need to record ?

                            O 2 Replies Last reply 4 Jan 2019, 22:46
                            1
                            • M mrjj
                              4 Jan 2019, 22:37

                              @LeLev
                              Ah, well even most tools can be controlled by scripts, using a Qt program would be more solid.
                              Also considering its the operator that controls the recording. ( i though it would be you)
                              it has to be really smooth operating so a Qt app seems like good idea.

                              How many FPS do you need to record ?

                              O Offline
                              O Offline
                              ODБOï
                              wrote on 4 Jan 2019, 22:46 last edited by
                              #14

                              @mrjj said in Client for VNC video streaming:

                              Also considering its the operator that controls the recording. ( i though it would be you)

                              I need to minimize operator intervention. He will only start the pc the rest must be done automatically.

                              20-30 fps and descent ~480p+ is enough

                              M 1 Reply Last reply 4 Jan 2019, 22:59
                              0
                              • O ODБOï
                                4 Jan 2019, 22:46

                                @mrjj said in Client for VNC video streaming:

                                Also considering its the operator that controls the recording. ( i though it would be you)

                                I need to minimize operator intervention. He will only start the pc the rest must be done automatically.

                                20-30 fps and descent ~480p+ is enough

                                M Offline
                                M Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on 4 Jan 2019, 22:59 last edited by
                                #15

                                @LeLev

                                Ok, so it must auto connect and record and make sure not to fill disk with video.
                                The QVNCClientWidget should make it fairly easy to connect etc but
                                it seems not to have a direct way of save to video.
                                However, it exposes the image directly as QImage so you should be able to
                                create a video somehow.

                                O 1 Reply Last reply 4 Jan 2019, 23:07
                                1
                                • M mrjj
                                  4 Jan 2019, 22:59

                                  @LeLev

                                  Ok, so it must auto connect and record and make sure not to fill disk with video.
                                  The QVNCClientWidget should make it fairly easy to connect etc but
                                  it seems not to have a direct way of save to video.
                                  However, it exposes the image directly as QImage so you should be able to
                                  create a video somehow.

                                  O Offline
                                  O Offline
                                  ODБOï
                                  wrote on 4 Jan 2019, 23:07 last edited by
                                  #16

                                  @mrjj said in Client for VNC video streaming:

                                  QVNCClientWidget

                                  Really ?! awsome there is a ready to use Qt Class !
                                  i was not expecting this conclusion at all
                                  Thank you very much for info and for your time!
                                  I will play with QVNCClientWidget this weekend and get into this monday.

                                  M 1 Reply Last reply 4 Jan 2019, 23:19
                                  0
                                  • O ODБOï
                                    4 Jan 2019, 23:07

                                    @mrjj said in Client for VNC video streaming:

                                    QVNCClientWidget

                                    Really ?! awsome there is a ready to use Qt Class !
                                    i was not expecting this conclusion at all
                                    Thank you very much for info and for your time!
                                    I will play with QVNCClientWidget this weekend and get into this monday.

                                    M Offline
                                    M Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on 4 Jan 2019, 23:19 last edited by
                                    #17

                                    @LeLev
                                    Hi
                                    Yes, SGaist was so kind to dig one up. :) (see link higher up)
                                    Its not part of official Qt but Qt never the less.
                                    Its from 2016 so seems pretty recent.
                                    So the biggest issue will be to produce a video from the frames. Preferable compressed
                                    if video size matters.

                                    O 1 Reply Last reply 4 Jan 2019, 23:49
                                    2
                                    • M mrjj
                                      4 Jan 2019, 23:19

                                      @LeLev
                                      Hi
                                      Yes, SGaist was so kind to dig one up. :) (see link higher up)
                                      Its not part of official Qt but Qt never the less.
                                      Its from 2016 so seems pretty recent.
                                      So the biggest issue will be to produce a video from the frames. Preferable compressed
                                      if video size matters.

                                      O Offline
                                      O Offline
                                      ODБOï
                                      wrote on 4 Jan 2019, 23:49 last edited by
                                      #18

                                      @mrjj said in Client for VNC video streaming:

                                      see link higher

                                      cant find it,

                                      https://bitbucket.org/amahta/qvncclient/src ?

                                      M 1 Reply Last reply 5 Jan 2019, 00:20
                                      0
                                      • O ODБOï
                                        4 Jan 2019, 23:49

                                        @mrjj said in Client for VNC video streaming:

                                        see link higher

                                        cant find it,

                                        https://bitbucket.org/amahta/qvncclient/src ?

                                        M Offline
                                        M Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on 5 Jan 2019, 00:20 last edited by
                                        #19

                                        @LeLev
                                        yep :)

                                        O 1 Reply Last reply 5 Jan 2019, 00:44
                                        1
                                        • M mrjj
                                          5 Jan 2019, 00:20

                                          @LeLev
                                          yep :)

                                          O Offline
                                          O Offline
                                          ODБOï
                                          wrote on 5 Jan 2019, 00:44 last edited by
                                          #20

                                          @mrjj
                                          perfect ! thank you and thank you @SGaist

                                          1 Reply Last reply
                                          0

                                          5/41

                                          4 Jan 2019, 21:13

                                          topic:navigator.unread, 36
                                          • Login

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