Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131746

[Boot2Qt] Recording gets stopped and no video has been recorded when switching cameras during recording

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.1
    • Multimedia
    • None
    • Linux/Yocto

    Description

      Linux Ubuntu 22.04.4 / Wayland

      Qt Creator 14.0.2

      Device: Raspberry Pi4 64 bit with Qt 6.8.1

      Steps to reproduce:

      1. Run QML camera
      2. Connect 2 USB web cameras (I used HD and FHD)
      3. Start recording a video with FHD and then switch the camera to HD one.

      Expected: The video is recorded from both cameras.

      Actual: The video is not recorded. The app throws an error. It happens also when switch from HD to FHD, but in this case I need to do more switches, like switch the cameras 2-3 times.

      QGstreamerMediaCapture: received error from gstreamer Internal data stream error. /usr/src/debug/gstreamer1.0/1.22.12/libs/gst/base/gstbasesrc.c(3134): gst_base_src_loop (): /GstPipeline:mediaCapturePipeline/GstBin:camerabin/GstV4l2Src:camerasrc:streaming stopped, reason not-linked (-1) 

      It's not a regression from 6.8.0 as on this version I was not even able to record the video because to the error which happens while I press record button:

      QGstreamerMediaCapture: received error from gstreamer Internal data stream error. /usr/src/debug/gstreamer1.0/1.22.11/plugins/elements/gstqueue.c(992): gst_queue_handle_sink_event (): /GstPipeline:mediaCapturePipeline/GstEncodeBin:encodebin/GstQueue:queue13:streaming stopped, reason error (-5) 

       

      Build version:

      -----------------------
      Build Configuration:  |
      -----------------------
      DISTRO = b2qt
      DISTRO_VERSION = 5.0.4
      DISTRO_CODENAME = scarthgap
      QT_VERSION = 6.8.1
      TARGET_SYSROOT = cortexa53-poky-linux
      DEPLOY_CONF_NAME = Raspberry Pi Development Boards (64bit)
      DEPLOY_CONF_TYPE = Boot2Qt 6.8.1
      -----------------------
      Layer Revisions:      |
      -----------------------
      meta              = HEAD:2034fc38eb4e63984d9bd6b260aa1bf95ce562e4
      meta-poky         = HEAD:2034fc38eb4e63984d9bd6b260aa1bf95ce562e4
      meta-raspberrypi  = HEAD:6df7e028a2b7b2d8cab0745dc0ed2eebc3742a17
      meta-oe           = HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97
      meta-python       = HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97
      meta-networking   = HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97
      meta-initramfs    = HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97
      meta-multimedia   = HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97
      meta-filesystems  = HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97
      meta-virtualization = HEAD:6f3c1d8f90947408a6587be222fec575a1ca5195
      meta-clang        = HEAD:2b7433611d80f6d0ee1b04156fa91fc73d3c2665
      meta-boot2qt      = HEAD:4078fdfdaf23c4d96c0734563945ca41acf00c93
      meta-boot2qt-distro = HEAD:4078fdfdaf23c4d96c0734563945ca41acf00c93
      meta-mingw        = HEAD:acbba477893ef87388effc4679b7f40ee49fc852
      meta-qt6          = HEAD:f4ef1331f0cc49bd4aa1e1aace6dc7f000b9651e
       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtmultimediateam Qt Multimedia Team
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes