Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2)
Forum Updated to NodeBB v4.3 + New Features

Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 3 Posters 1.4k 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.
  • C Offline
    C Offline
    closx
    wrote on last edited by
    #1

    Hello everyone, me again!
    I finally built my QT5 application for Udoobuntu 2 (I know there is not so much source around for that. So I can help anyone with that.). My application is a basic Video Player application which depends on Qmediaplayer.
    When I run glmark2 or something else that tests OpenGL ES2, it works without problems.
    But when I run my application or any QT application uses OpenGL (as hellogl_es2), It gives the error following, "Unable to find an X11 visual which matches EGL config".
    Full output;

    root@udooneo:/usr/lib/arm-linux-gnueabihf/qt5/examples/opengl/hellogl_es2# ./hellogl_es2
    xkbcommon: ERROR: x11: failed to get keymap from X server: unmet condition in get_explicits(): wire->keycode >= keymap->min_key_code && wire->keycode <= keymap->max_key_code
    Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 5 (RGB444), but this is incompatable
    Unable to find an X11 visual which matches EGL config 5
    Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable
    Unable to find an X11 visual which matches EGL config 1
    Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable
    Unable to find an X11 visual which matches EGL config 1
    Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable
    Unable to find an X11 visual which matches EGL config 1
    Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable
    Unable to find an X11 visual which matches EGL config 1
    Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable
    Unable to find an X11 visual which matches EGL config 1
    Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable
    Unable to find an X11 visual which matches EGL config 1
    Segmentation fault
    

    Please help me guys, I can feel that I am so close!
    Best,
    Onur

    bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
    tag me (like @closx) if you are answering to me, so I can notice :D

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vladstelmahovsky
      wrote on last edited by
      #2

      build hellogl_es2 with debug info
      $gdb hellogl_es2

      r
      bt
      cut-n-paste here

      C 1 Reply Last reply
      1
      • V vladstelmahovsky

        build hellogl_es2 with debug info
        $gdb hellogl_es2

        r
        bt
        cut-n-paste here

        C Offline
        C Offline
        closx
        wrote on last edited by
        #3

        @vladstelmahovsky said in Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2):

        build hellogl_es2 with debug info
        $gdb hellogl_es2

        r
        bt
        cut-n-paste here

        Thanks for your reply, but I couldn't understand. How can I add this "info" to debug?

        bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
        tag me (like @closx) if you are answering to me, so I can notice :D

        V 1 Reply Last reply
        0
        • C closx

          @vladstelmahovsky said in Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2):

          build hellogl_es2 with debug info
          $gdb hellogl_es2

          r
          bt
          cut-n-paste here

          Thanks for your reply, but I couldn't understand. How can I add this "info" to debug?

          V Offline
          V Offline
          vladstelmahovsky
          wrote on last edited by
          #4

          @closx just make a debug build

          C 1 Reply Last reply
          0
          • V vladstelmahovsky

            @closx just make a debug build

            C Offline
            C Offline
            closx
            wrote on last edited by
            #5

            @vladstelmahovsky said in Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2):

            @closx just make a debug build

            I already made a debug version. But does not works.
            By the way, application runs. But when I gonna play a video, it gives the eror.
            Thx for your answer again :D

            bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
            tag me (like @closx) if you are answering to me, so I can notice :D

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

              Hi,

              Are you using a cross-compiled version of Qt ?
              What if you force the backend to use EGL ?

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

              C 1 Reply Last reply
              0
              • C closx

                @vladstelmahovsky said in Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2):

                @closx just make a debug build

                I already made a debug version. But does not works.
                By the way, application runs. But when I gonna play a video, it gives the eror.
                Thx for your answer again :D

                V Offline
                V Offline
                vladstelmahovsky
                wrote on last edited by
                #7

                @closx so, application not crashing anymore after EGL errors?
                Have you tried to build Qt5 manually? May be its better to use an Yocto builds?

                1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  Are you using a cross-compiled version of Qt ?
                  What if you force the backend to use EGL ?

                  C Offline
                  C Offline
                  closx
                  wrote on last edited by
                  #8

                  @SGaist said in Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2):

                  Hi,

                  Are you using a cross-compiled version of Qt ?
                  What if you force the backend to use EGL ?

                  Yes, I am using a cross-compiled version. Everything works fine with the QT on board. Only QT applications they works with the OpenGL are not working. I face the same issue when I try to execute OpenGL examples of QT.
                  And I could not understand what you mean by "forcing the backend to use EGL". -sorry for being noob-

                  @vladstelmahovsky said in Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2):

                  @closx so, application not crashing anymore after EGL errors?
                  Have you tried to build Qt5 manually? May be its better to use an Yocto builds?

                  Application never crashes. It works fine. Only parts of application that needs OpenGL (as playing a .mp4 video) does not works.
                  Do you mean building the QT from source to my board? I mean, I installed Qt by the commands,

                  sudo apt-get install build-essential qtcreator qt5-default libqt5multimedia5
                  

                  I did infinity attempts of using Yocto with that crazy board :D I guess it is worse to use Yocto on UDOO.

                  bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
                  tag me (like @closx) if you are answering to me, so I can notice :D

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

                    See the Qt for Embedded Linux chapter in Qt's documentation.

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

                    C 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      See the Qt for Embedded Linux chapter in Qt's documentation.

                      C Offline
                      C Offline
                      closx
                      wrote on last edited by
                      #10

                      @SGaist said in Can't play videos with QT (Qmediaplayer, Udoo Neo Full, Udoobuntu 2):

                      See the Qt for Embedded Linux chapter in Qt's documentation.

                      Hello SGaist,
                      Thank you for your answer. I finally got what is wrong.
                      UDOO NEO CANNOT PLAY VIDEOS!
                      Processor of Udoo Neo (imx6something) does not support video decoding. So there is no decoder. You can only play very small video files (like 100px400p 10fps) with X11 output of VLC. And you cannot set it on QT. If you would set anyway, it would be so low on performance.
                      I finally figured it out, I am being busy with something impossible for 2 months :D
                      Thanks everyone on this forum, anyway!

                      bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
                      tag me (like @closx) if you are answering to me, so I can notice :D

                      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