Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. Play videos using both QtPhonon and OpenCV on MAC OS
Forum Updated to NodeBB v4.3 + New Features

Play videos using both QtPhonon and OpenCV on MAC OS

Scheduled Pinned Locked Moved Independent Developers
11 Posts 2 Posters 4.9k 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.
  • D Offline
    D Offline
    DevSam
    wrote on last edited by
    #2

    Thanks MrDebug,
    I have already tried opencv for some effects(like brightness, contrast) on video files. After applying effects using Opencv, I found audio missing from my output. Is their any solution for that problem. I will be really thankful for your help.
    Thanks.

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #3

      I used FFmpeg to get the video and audio track. After having the two tracks you can send the audio one to the audio output and you can manage the video as you want.
      Is not easy to do. You have to study how to manage multimedia files with FFmpeg.

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DevSam
        wrote on last edited by
        #4

        Thanks for your response, As you said, the same thing i am trying to do and in output i am getting only video track but for audio it fails. I think there is problem in its audio codecs for decoding or encoding the file. Can you please give me any demo or snippet for the same. i will really appreciate.
        Thanks.

        1 Reply Last reply
        0
        • mrdebugM Offline
          mrdebugM Offline
          mrdebug
          wrote on last edited by
          #5

          Sorry but I haven't got sources to show. Are you sure you have the right codecs installed? Normally the audio track is mp3 based. Can you try with another multimedia file?

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DevSam
            wrote on last edited by
            #6

            hey mrdebug, as you said i am on the same track. i have extracted the frame and then display those frames using SDL framework on SDL_Overlay. Now my problem is i want to embed that sdl_overlay on my Qt GUI. Can you please help me out this problem ? Thanks in advance.

            1 Reply Last reply
            0
            • mrdebugM Offline
              mrdebugM Offline
              mrdebug
              wrote on last edited by
              #7

              Sorry but I don't know SDL. I normally use a QLabel to display FFMpeg video.

              Need programmers to hire?
              www.labcsp.com
              www.denisgottardello.it
              GMT+1
              Skype: mrdebug

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DevSam
                wrote on last edited by
                #8

                ok..Can u please give me a demo or snippet for that. I will be really appreciate your help. Thanks in advance.

                1 Reply Last reply
                0
                • mrdebugM Offline
                  mrdebugM Offline
                  mrdebug
                  wrote on last edited by
                  #9

                  No I haven't got a demo to send to you because the source code that I have written is part of a unshareable project.

                  If you want I can write for you a simple program for Mac OSX that read from a avi (and other) file and display frames in a QLabel, based on FFmpeg.
                  Another critical question is to compile FFmpeg on Mac OSX. If you want I can use remote assistance to bring up the FFmpeg source in your mac, compile and explain how to make up a redistributable package.

                  How you can understand this is not a rapid thing to do. If you are interesting you can send me an email at info@denisgottardello.it.

                  Regards.

                  Need programmers to hire?
                  www.labcsp.com
                  www.denisgottardello.it
                  GMT+1
                  Skype: mrdebug

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DevSam
                    wrote on last edited by
                    #10

                    [quote author="mrdebug" date="1420282424"]

                    If you want I can write for you a simple program for Mac OSX that read from a avi (and other) file and display frames in a QLabel, based on FFmpeg.
                    Another critical question is to compile FFmpeg on Mac OSX. If you want I can use remote assistance to bring up the FFmpeg source in your mac, compile and explain how to make up a redistributable package.

                    Regards.[/quote]

                    Thank you so much MrDebug, I have already compiled FFmpeg on my MAC OSx. Can you please write a simple program for Mac OSX that read from a avi (and other) file and display frames in a QLabel, based on FFmpeg. I will really appreciate if you help me out this. Thanks in advance.

                    1 Reply Last reply
                    0
                    • mrdebugM Offline
                      mrdebugM Offline
                      mrdebug
                      wrote on last edited by
                      #11

                      Can you send me an email at info@denisgottardello.it?

                      Need programmers to hire?
                      www.labcsp.com
                      www.denisgottardello.it
                      GMT+1
                      Skype: mrdebug

                      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