Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. video from Qt5 and C++ code example directly failed
Forum Updated to NodeBB v4.3 + New Features

video from Qt5 and C++ code example directly failed

Scheduled Pinned Locked Moved Solved Installation and Deployment
24 Posts 3 Posters 10.1k Views 1 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.
  • J Offline
    J Offline
    jerome_isAviable
    wrote on 25 Jan 2016, 15:39 last edited by jerome_isAviable
    #1

    When i use from Qt5 + C++ code , i have error, but from qml code... just works.
    I'm not sure, but it looks like C++ project part is no more maintened from Qt team, because it works before...
    what's happen ? is it possible to view camera from Qt and C++ code or is it no more possible ? (and why ?)

    this is the error :

    libva info: VA-API version 0.38.1
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_38
    libva info: va_openDriver() returns 0
    libva info: VA-API version 0.38.1
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_38
    libva info: va_openDriver() returns 0
    QWidget::paintEngine: Should no longer be called
    QWidget::paintEngine: Should no longer be called
    QWidget::paintEngine: Should no longer be called
    QWidget::paintEngine: Should no longer be called
    libva info: VA-API version 0.38.1
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_38
    libva info: va_openDriver() returns 0

    ** (camera:14406): CRITICAL **: gst_vaapi_window_x11_new_with_xid: assertion 'xid != None' failed

    ** (camera:14406): CRITICAL **: gst_vaapi_window_x11_new_with_xid: assertion 'xid != None' failed

    thank you for information about that.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Jan 2016, 21:45 last edited by
      #2

      Hi,

      You need to provide more information like the exact version of Qt you are using, the name of the example, the Linux distribution you are using, the installed version of gstreamer etc.

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

      J 1 Reply Last reply 26 Jan 2016, 14:59
      0
      • S SGaist
        25 Jan 2016, 21:45

        Hi,

        You need to provide more information like the exact version of Qt you are using, the name of the example, the Linux distribution you are using, the installed version of gstreamer etc.

        J Offline
        J Offline
        jerome_isAviable
        wrote on 26 Jan 2016, 14:59 last edited by jerome_isAviable
        #3

        @SGaist
        Hi Sgaist, thanks you for try to help (again and again):
        _archlinux kernel 4.3.3-3-ARCH
        _QT-5.5.1-9
        _gstreamer-1.6.3-1

        on laptop clevo intel i7 with nvidia GTX 950M graphic card and drivers: xf86-video-intel 2.99.917+519+g8229390-1, with nvidia 358.16-3 with bumblebee-3.2.1-10 (works fine).
        I also installed some lib32 drivers and mesa, mesa-libgl,
        libva-intel-driver (1.6.2-1), libva-mesa-driver (11.1.1-1),

        The Qt exemple use for try it is: "Camera Example"

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 Jan 2016, 21:33 last edited by
          #4

          The first thing I'd do is try to run GStreamer from the console to see if it's working properly.

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

          J 1 Reply Last reply 27 Jan 2016, 19:41
          0
          • S SGaist
            26 Jan 2016, 21:33

            The first thing I'd do is try to run GStreamer from the console to see if it's working properly.

            J Offline
            J Offline
            jerome_isAviable
            wrote on 27 Jan 2016, 19:41 last edited by
            #5

            @SGaist
            yes sure.
            It works (gstreamer).

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 27 Jan 2016, 21:13 last edited by
              #6

              Ok, good. Can test that with a simpler version of the program e.g.

              int main(int argc, char *argv[])
              {
                  QApplication app(argc, argv);
              
                  QCamera camera;
                  QCameraViewfinder viewfinder;
                  viewfinder.show();
                  camera.setViewfinder(&viewfinder);
                  camera.start();
                  return app.exec();
              }
              

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

              J 1 Reply Last reply 28 Jan 2016, 12:48
              0
              • S SGaist
                27 Jan 2016, 21:13

                Ok, good. Can test that with a simpler version of the program e.g.

                int main(int argc, char *argv[])
                {
                    QApplication app(argc, argv);
                
                    QCamera camera;
                    QCameraViewfinder viewfinder;
                    viewfinder.show();
                    camera.setViewfinder(&viewfinder);
                    camera.start();
                    return app.exec();
                }
                
                J Offline
                J Offline
                jerome_isAviable
                wrote on 28 Jan 2016, 12:48 last edited by
                #7

                @SGaist
                yes, sure.
                I done it and it compil fine, run and never show camera or viewfinder, and it said back:

                libva info: VA-API version 0.38.1
                libva info: va_getDriverName() returns 0
                libva info: Trying to open /usr/lib/dri/i965_drv_video.so
                libva info: Found init function __vaDriverInit_0_38
                libva info: va_openDriver() returns 0

                but, if from your distribution (desktop version) linux it's runing fine, i think ther eis a problem, maybe not with QT5, but maybe with my configuration.
                The fact make me confused is also that, with qml code, camera and view work perfectly. That's strange.

                J 1 Reply Last reply 28 Jan 2016, 13:42
                0
                • J jerome_isAviable
                  28 Jan 2016, 12:48

                  @SGaist
                  yes, sure.
                  I done it and it compil fine, run and never show camera or viewfinder, and it said back:

                  libva info: VA-API version 0.38.1
                  libva info: va_getDriverName() returns 0
                  libva info: Trying to open /usr/lib/dri/i965_drv_video.so
                  libva info: Found init function __vaDriverInit_0_38
                  libva info: va_openDriver() returns 0

                  but, if from your distribution (desktop version) linux it's runing fine, i think ther eis a problem, maybe not with QT5, but maybe with my configuration.
                  The fact make me confused is also that, with qml code, camera and view work perfectly. That's strange.

                  J Offline
                  J Offline
                  jerome_isAviable
                  wrote on 28 Jan 2016, 13:42 last edited by
                  #8

                  @SGaist
                  ok, i think i find why this can not works.
                  In fact, it is not QT5 directly, but the way it use video with (va-api) on my laptop.
                  Because my laptop has two graphic proc (the one from intel from CPU chip, and the one from graphic card nvidia GTX950M).
                  Then, i have to tell bumblebee to use nvidia card instead of intel GPU part of intel CPU due to impossibility by this intel proc to use these va-api (add an env variable for that in /etc/environment for example: LIBVA_DRIVER_NAME=nvidia).

                  But maybe it could be possible also to configure QT5 tools to not use va-api lib for make running video on widgets ? is there a way to tell him to use the same way as it use with QML code ? If possible this way would be the best one for many situations (but not all for specific stuff maybe).

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 28 Jan 2016, 23:15 last edited by
                    #9

                    If I understand you correctly, you have both working if running on the nVidia GPU but not when the Intel GPU is active ?

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

                    J 1 Reply Last reply 11 Mar 2016, 09:39
                    0
                    • S SGaist
                      28 Jan 2016, 23:15

                      If I understand you correctly, you have both working if running on the nVidia GPU but not when the Intel GPU is active ?

                      J Offline
                      J Offline
                      jerome_isAviable
                      wrote on 11 Mar 2016, 09:39 last edited by
                      #10

                      @SGaist not sure, i answer too quick and no had time more for experiment this way from laptop.

                      But from now, i work on my desktop PC, then only Intel video driver and CPU used for video (i7). And same problem: QCamear example running but show a black screen (no error output).

                      Then i see that there is no error with libva, but maybe the problem come from the use of libva by QT5.
                      I can not remove libva due to dependencies. How is it possible to make running/using video by an other way than libva for QT5 ?
                      I not understand because codes for video from QML sources works, not from QT/C++ sources (same problem from QT5 QCamera example).
                      maybe you could try to install a linux distribution in 64bits mode and install libva and gl libs, then just run the example give by QT5 to see the problem ?
                      or tell me what i could do for have more information around this kind of (maybe) bug.

                      appreciate your help, thanks.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 11 Mar 2016, 20:41 last edited by
                        #11

                        Qt 5.6 being almost out, can you check with it if you are still experiencing this ?
                        Otherwise, you should also check with the GStreamer 1.0 QtMultimedia plugin

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

                        J 1 Reply Last reply 28 Mar 2016, 02:00
                        0
                        • S SGaist
                          11 Mar 2016, 20:41

                          Qt 5.6 being almost out, can you check with it if you are still experiencing this ?
                          Otherwise, you should also check with the GStreamer 1.0 QtMultimedia plugin

                          J Offline
                          J Offline
                          jerome_isAviable
                          wrote on 28 Mar 2016, 02:00 last edited by
                          #12

                          @SGaist i just install the last one qt-5.6.0-1 from archlinux repos.
                          But same problem again.
                          I don't know what to do, i try to find help on irc from qt channel and archlinux channel, but no one help or find.
                          Do you have more idea ? is it possible to join a Qt dev of QtMultimedia or someone around this code ?

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 28 Mar 2016, 20:57 last edited by
                            #13

                            You can try writing to the interest mailing list

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

                            J 1 Reply Last reply 31 Mar 2016, 01:30
                            0
                            • S SGaist
                              28 Mar 2016, 20:57

                              You can try writing to the interest mailing list

                              J Offline
                              J Offline
                              jerome_isAviable
                              wrote on 31 Mar 2016, 01:30 last edited by
                              #14

                              @SGaist I tried... but:

                              This is an automatically generated Delivery Status Notification

                              THIS IS A WARNING MESSAGE ONLY.

                              YOU DO NOT NEED TO RESEND YOUR MESSAGE.

                              Delivery to the following recipient has been delayed:

                               interest@qt-project.com
                              

                              Message will be retried for 2 more day(s)

                              Technical details of temporary failure:
                              The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
                              [qt-project.com. 77.240.23.85: socket error]

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 31 Mar 2016, 07:02 last edited by
                                #15

                                Did you subscribe first ?

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

                                J 1 Reply Last reply 1 Apr 2016, 03:33
                                0
                                • S SGaist
                                  31 Mar 2016, 07:02

                                  Did you subscribe first ?

                                  J Offline
                                  J Offline
                                  jerome_isAviable
                                  wrote on 1 Apr 2016, 03:33 last edited by
                                  #16

                                  @SGaist yes i suscribe first and then confirm my subscribtion.
                                  But i have all the time error from send delivery mails.

                                  also, i looked inside my directory: /usr/lib/dri
                                  and i have this (who seems to be suspect i think):
                                  https://gist.github.com/anonymous/dd17c9f72906726f8070b3d6a81a7a76

                                  i installed nvidia before, but remove it and blacklisted it because of passthrough for qemu virtual machine (ability of use autocad with windows 7 on VM), but i use my intel driver. i not understand these libs on this directory.
                                  Could you please tell me if you think it could be a problem there ?

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 1 Apr 2016, 20:49 last edited by
                                    #17

                                    IIRC these are the libraries used by the Direct Rendering Infrastructure so I wouldn't say they are suspicious

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

                                    J 1 Reply Last reply 4 Apr 2016, 00:46
                                    0
                                    • S SGaist
                                      1 Apr 2016, 20:49

                                      IIRC these are the libraries used by the Direct Rendering Infrastructure so I wouldn't say they are suspicious

                                      J Offline
                                      J Offline
                                      jerome_isAviable
                                      wrote on 4 Apr 2016, 00:46 last edited by jerome_isAviable 4 Apr 2016, 00:47
                                      #18

                                      @SGaist i tried to suscribe with an other account than gmail (from my own site):

                                      This is the mail system at host sortant-01.o2switch.net.
                                      
                                      I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
                                      
                                      For further assistance, please send mail to postmaster.
                                      
                                      If you do so, please include this problem report. You can delete your own text from the attached returned message.
                                      
                                                         The mail system
                                      
                                      <interest@qt-project.com>: connect to qt-project.com[77.240.23.85]:25: No route to host
                                      
                                      

                                      It's look like a bad joke.... how to contact them ?
                                      Could you please post for me and explain i can not contact them ? what i can do ? i folow the process, it doesn't work att all.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 4 Apr 2016, 19:40 last edited by
                                        #19

                                        Because it's qt-project.org not .com

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

                                        J 2 Replies Last reply 5 Apr 2016, 13:34
                                        1
                                        • S SGaist
                                          4 Apr 2016, 19:40

                                          Because it's qt-project.org not .com

                                          J Offline
                                          J Offline
                                          jerome_isAviable
                                          wrote on 5 Apr 2016, 13:34 last edited by
                                          #20
                                          This post is deleted!
                                          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