Results 1 to 6 of 6

Thread: separate audio from video

  1. #1
    Join Date
    Jan 2013
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X

    Default separate audio from video

    Hi guys, I'm new of the forum and new for the qt programming, I'm doing a QT GUIApplication and I have a problem, do you know how I can separated audio (.wav) from a .mov or .avi video?

    I have seen that exist ffmpg, do you have some idea?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: separate audio from video

    Qt Multimedia contains facilities for playing and recording media and limited ability to intercept decoded media in-memory. Anything else requires you use a library that understands media container formats, how to manipulate them, and how to re-encode an audio stream that it might extract. FFmpeg is one such library. It has a C interface so it should be quite usable from a Qt program.

  3. #3
    Join Date
    Jan 2013
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: separate audio from video

    Hi Chris, do you know how I can separate the stream audio and the stream video from an .mov or .avi, for put the different stream in two different buffer, in this way I cant obtain the parallelism.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: separate audio from video

    With Qt5 you can do it by using QAudioProbe and QVideoProbe. Note, you'll be getting data frames and not encoded streams, if you want to save them in a particular format, you need to do the encoding yourself. You might also be missing some frames. There is also QAudioDecoder available.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2013
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: separate audio from video

    Thanks wysota, do you know where I can find any example of this?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: separate audio from video

    I don't think there is any example of what you want to do available. You need to do some experimenting on your own.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Extract audio from video
    By pallavi12345 in forum Newbie
    Replies: 1
    Last Post: 17th August 2017, 08:55
  2. Replies: 3
    Last Post: 5th July 2009, 17:22
  3. Webkit audio/video integration
    By TTGator in forum Qt Programming
    Replies: 0
    Last Post: 26th February 2009, 19:17
  4. Audio/Video Preview on Windows?
    By vishal.chauhan in forum Qt Programming
    Replies: 0
    Last Post: 2nd May 2008, 06:10
  5. Greenphone audio/video
    By void* in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 2nd February 2007, 05:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.