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. Video playing from SD Card
Forum Updated to NodeBB v4.3 + New Features

Video playing from SD Card

Scheduled Pinned Locked Moved Mobile and Embedded
13 Posts 3 Posters 3.1k 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.
  • A Offline
    A Offline
    aabfm
    wrote on last edited by
    #1

    Hi,
    I’m currently developing an application that needs to play video that is stored on a SD Card.
    The embedded computer that I’m using is the DX-4 from AndersDX (check this "link":http://www.andersdx.com/products/embedded-displays/hardware/dx4.aspx).
    Any ideas how to do this? Sorry for the question but I just don't know where to start from.
    Thanks in advance.

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

      Hi,

      It depends on the technology you will use however, in any case, have a look at the Qt Multimedia documentation.

      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
      • A Offline
        A Offline
        aabfm
        wrote on last edited by
        #3

        I'll have a go.
        What I want is just to play any kind of video file (from AVI to MP4, etc etc)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aabfm
          wrote on last edited by
          #4

          I'M LOST!!!!!!
          Does anybody know of a simple function that I can associate with a button and once I press that button it plays a file such as /home/user/video.avi (or mp4)?
          I'm struggling with time... Help!!!!

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

            Something like "this":http://qt-project.org/doc/qt-5/qtmultimedia-video-qmlvideo-example.html ? Does a bit too much for what you want but should get you started

            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
            • A Offline
              A Offline
              aabfm
              wrote on last edited by
              #6

              I have to agree with you it's a 'bit' too much...
              Let me explain where I'm at right now with my application.

              I'm developing a fancy doorbell for which I'd like to have this virtual doorman, i.e., imagine that the only person in the house is in busy and should be ok to open the door in a couple of minutes, the doorman would appear in the screen (video playing) greeting whoever is at the door and asking to wait a couple of minutes while he's 'trying to contact' the person in the house.
              I've already done everything from the virtual door knob on the DX4 to the electronic circuit that controls the door lock, as well as the video with the doorman.
              What I want now is to play the video as soon as somebody hits the button.

              BTW there is another thread of mine regarding interrupt handling, that would be for the person to open the door from inside.

              Thanks in advance not only for your help and support but also for your patience.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                aabfm
                wrote on last edited by
                #7

                Hi again,
                I've made everything but the video.
                Is there a tutorial, on a step-by-step basis, that can show/teach me one of these solutions?

                • A modal window with the video in it and a Cancel button in case I want to stop it and get back into the parent window.
                • Similar to the previous one but a separate application that I can call from the main one.
                • Ideal one would be a full screen video playing and when the video finishes it just closes itself and the main window is just behind it.
                  I've tried qt.project.org but step-by-step tutorials don't seem to exist...
                  Any ideas where to find this?
                  Thanks
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Something's not clear, do you want to use a single application with multiple windows or several applications ?

                  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
                  • A Offline
                    A Offline
                    aabfm
                    wrote on last edited by
                    #9

                    Either way, which ever is easier or faster.
                    Right now I can't afford to look on the aesthetics. :)
                    Once again thanks for your patience.

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

                      Then you should just go with the MediaPlayer element and build from there using e.g. a Stack

                      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
                      • A Offline
                        A Offline
                        aabfm
                        wrote on last edited by
                        #11

                        Can you help me with that? Where should I go first?
                        Is this a case of drag and drop and edit some properties?
                        Is this just code typing? Do I need to add something to the user interface?

                        I'll try to simplify even more what I want...
                        I need a button on the main window that once clicked calls either a full screen playing video or (perhaps better) a child window with the video playing in it with only a 'close' button to return to the main one.

                        Let me take this opportunity to ask a question which as been quite difficult to find an answer for: which types of video can I play with MediaPlayer?

                        Sorry but this is really the first time for me with Qt...
                        And if we're talking about Qt with ELDK at the same time... That's even worse...

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          ankitlive
                          wrote on last edited by
                          #12

                          hi,
                          Copy the video from the SD card to the local hard drive and check if you can play the video.

                          Please check the link below to see how to post questions in forum.

                          http://support.microsoft.com/kb/555375

                          Post back with the status.

                          [url=http://www.mygatenow.com/2014/10/shoe-in-money-system-review.html]shoe in money system review[/url]

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

                            It depends if you are writing the QML by hand or using the qml designer.

                            The video format supported will depend on the backend, so if's linux, it should be what gstreamer supports.

                            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