Results 1 to 8 of 8

Thread: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

  1. #1
    Join Date
    Jan 2006
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 1 Post

    Default [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    Hi to all ,

    I am now using a Mac 10.4.8 with Qt 4.2.

    I would like to know how to open a Movie File using QucikTime library and then put the frame into QImage.

    Thanks.

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

    Default Re: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    It's rather a QT question, not a Qt one

  3. #3
    Join Date
    Jan 2006
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 1 Post

    Default Re: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    Anyone can help me?

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

    Default Re: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    If you don't insist on using QuickTime library, you can use (for example) libavcodec from ffmpeg package and decode the frame you want and put it into QImage. If you insist on using QuickTime directly, I suggest you ask that question on QuickTime forums as this has nothing to do with Qt. If you have the image bitmap, putting it into QImage is easy - there are QImage constructors which take the image data as an argument.

  5. #5
    Join Date
    Jan 2006
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 1 Post

    Default Re: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    If you don't insist on using QuickTime library, you can use (for example) libavcodec from ffmpeg package and decode the frame you want and put it into QImage.
    Well , i am now interesting in using ffmpeg with Qt 4 , any tutorial or documentation how to use ffmpeg in Qt 4?

    Thanks.

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

    Default Re: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    I managed to create a widget showing the video stream from within the movie by following a tutorial I found in the net, but was unable to receive sound output, so I can't help you much with a complete solution yet.

  7. #7
    Join Date
    Jan 2006
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 1 Post

    Default Re: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    Thanks for your reply , wysota.

    Quote Originally Posted by wysota View Post
    I managed to create a widget showing the video stream from within the movie by following a tutorial I found in the net
    Could you please post the URL of this tutorial?.
    I have no idea how to use ffmpeg with Qt 4 , and this can help me a lot.

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

    Default Re: [Mac] How to use QuickTime to open a Movie and set the frame to QImage?

    I suggest you start with the example from ffmpeg site.

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.