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. Qt5+gstreamer camera preview issue
Forum Updated to NodeBB v4.3 + New Features

Qt5+gstreamer camera preview issue

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 1.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.
  • J Offline
    J Offline
    jayzs
    wrote on last edited by
    #1

    export QT_QPA_PLATFORM=eglfs
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/gstreamer-1.0
    export QT_GSTREAMER_WINDOW_VIDEOSINK=kmssink

    I can play .mp4 file correctly.
    But when playing camera, it shows blank screen. There is no error message.

    Can someone help?! Thank you very much.

    jsulmJ 1 Reply Last reply
    0
    • J jayzs

      export QT_QPA_PLATFORM=eglfs
      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/gstreamer-1.0
      export QT_GSTREAMER_WINDOW_VIDEOSINK=kmssink

      I can play .mp4 file correctly.
      But when playing camera, it shows blank screen. There is no error message.

      Can someone help?! Thank you very much.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @jayzs said in Qt5+gstreamer camera preview issue:

      There is no error message

      Not even in the console?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jayzs
        wrote on last edited by jayzs
        #3

        [root@rk3288:/]# qml_test
        eglfs >> createSurface GBM_FORMAT_ARGB8888
        eglfs >> sucess to create KMS FB!

        this is the ourput in console

        It is on the linux 4.4 built by buildroot. Run on rk3288(arm32v7, mali t764)

        jsulmJ 1 Reply Last reply
        0
        • J jayzs

          [root@rk3288:/]# qml_test
          eglfs >> createSurface GBM_FORMAT_ARGB8888
          eglfs >> sucess to create KMS FB!

          this is the ourput in console

          It is on the linux 4.4 built by buildroot. Run on rk3288(arm32v7, mali t764)

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jayzs Does same app work on a PC?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply
          0
          • jsulmJ jsulm

            @jayzs Does same app work on a PC?

            J Offline
            J Offline
            jayzs
            wrote on last edited by jayzs
            #5

            @jsulm Yes, it works on pc ubuntu 16.04. The qt version on board is 5.9, but 5.12 on pc.

            Here is another message sometimes it shows:
            [ 13.884117] rockchip-vop ff930000.vop: [drm:vop_crtc_enable] Update mode to 1920x1080p60, type: 11
            [ 13.919835] [drm:hdmi_config_hdr_infoframe] ERROR Not support DRM Infoframe

            the board is connecting an aoc 1080p monitor by hdmi.

            I have checked the error msg, it just means no infoframe for hdmi version less then 2.11a, I dont know if this matters, because I can play video to the same monitor correctly.

            Sorry I`m new so have to wait 600 seconds to send another text here.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              fatalfeel
              wrote on last edited by
              #6

              modify and try
              https://github.com/Openwide-Ingenierie/imx8-qmlplayer/tree/master/src

              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