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. What's the best aproach to play propietary video format on iOS and Android QML app?
Forum Updated to NodeBB v4.3 + New Features

What's the best aproach to play propietary video format on iOS and Android QML app?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 3 Posters 2.1k Views 2 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.
  • L Offline
    L Offline
    lqsa
    wrote on last edited by lqsa
    #1

    My app needs to play propietary video format. Now I'm playing decoding the propietary format to a QImage for each frame and using a QQuickPaintedItem derived class to show the video. This class is registered on QML to use it from there.

    class VideoPlayer : public QQuickPaintedItem {
    public:
    	void paint(QPainter *painter) override;
    private:
    	QImage _frame;
    }
    
    
    void VideoPlayer::paint(QPainter *painter)
    {
        painter->drawImage(0, 0, _frame);
    }
    

    Is QQuickPaintedItem a slow technique? exist another better aproach?

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

      Hi,

      What kind of proprietary format is that ?
      Can something like ffmpeg read it ?

      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
      0
      • L Offline
        L Offline
        lqsa
        wrote on last edited by
        #3

        No, ffmpeg can't read. It's a propietary format.

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

          Depending on how you decode your video, you can consider implementing a QMediaService plugin for QtMultimedia that will provide the QMediaPlayer bits that are needed to render your video.

          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
          0
          • L Offline
            L Offline
            lqsa
            wrote on last edited by lqsa
            #5

            Is more quick than QQuickPaintedItem? Where can found any documentation and sample?

            jsulmJ 1 Reply Last reply
            0
            • L lqsa

              Is more quick than QQuickPaintedItem? Where can found any documentation and sample?

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

              @lqsa Documentation and samples for QMediaPlayer? Here: http://doc.qt.io/qt-5/qmediaplayer.html, http://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-player-example.html

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

              L 2 Replies Last reply
              0
              • L Offline
                L Offline
                lqsa
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @lqsa Documentation and samples for QMediaPlayer? Here: http://doc.qt.io/qt-5/qmediaplayer.html, http://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-player-example.html

                  L Offline
                  L Offline
                  lqsa
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @lqsa Documentation and samples for QMediaPlayer? Here: http://doc.qt.io/qt-5/qmediaplayer.html, http://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-player-example.html

                    L Offline
                    L Offline
                    lqsa
                    wrote on last edited by
                    #9

                    @jsulm
                    Sorry, but in these links I can't find any documentation about QMediaService plugin and sample is with QWidgets.

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

                      You can take a look at the QtMultimedia sources.

                      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
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved