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. How to transfer video from the camera received from QML to C++?
Forum Update on Monday, May 27th 2025

How to transfer video from the camera received from QML to C++?

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

    Hi!
    How to transfer video from the camera received from QML to C++?
    I need to make a video stream on Android.
    I connected the QtV library
    This my code:

    import QtQuick 2.12
    import QtQuick.Controls 2.12
    import QtMultimedia 5.12
    import QtAV 1.6

    //camera.captureMode = Camera.CaptureVideo
    //camera.start()

    Item {
    width: 400
    height: 700
    //property alias buttonPhoto: buttonPhoto
    //property alias photoImage: photoImage
    //property alias camera: camera

    Camera {
        id: camera
        objectName: "qrCameraQML"
        videoRecorder.mediaContainer: "mp4"
    
        imageProcessing.whiteBalanceMode: CameraImageProcessing.WhiteBalanceFlash
    
        exposure {
            exposureCompensation: -1.0
            exposureMode: Camera.ExposurePortrait
        }
    
        flash.mode: Camera.FlashRedEyeReduction
    
        imageCapture {
            id: imageCapture1
            onImageCaptured: {
                photoPreview.source = preview  // Show the preview in an Image
            }
            onImageSaved: {
            }
        }
    }
    
    VideoOutput {
        id: videoOutput
        source: camera
        anchors.fill: parent
        focus : visible // to receive focus and capture key events when visible
        autoOrientation: true
        objectName: "myVideoOutput"
    }
    
    
    
    Image {
        id: photoPreview
    }
    

    }

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

      Hi,

      Since you are using QtAV, you should content their author. This module is not an official Qt module.

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

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mikeeeeee
        wrote on last edited by
        #3

        The Itav module contains ffmpeg, maybe you know how to use it to do what I want?

        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