Results 1 to 8 of 8

Thread: Playback video on QT Widget

  1. #1
    Join Date
    Nov 2009
    Posts
    60
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Playback video on QT Widget

    Hi All,

    I want to playback mpeg2 files(presently looking for MPEG Files only) on Qt Widget,I will need function like play,pause and stop control through events triggered by the system's external events.

    So can any one suggest an optimum way to achieve this.

    Thanks and Regards,
    Ratheendran

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Playback video on QT Widget

    Look into Media player example in Qt Demos. Its a part of phonon I guess.
    Also from Qt 4.7.0 you will have a class QVideoWidget. You can check with the tech preview of 4.7.0-tp.

  3. #3
    Join Date
    Nov 2009
    Posts
    60
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Playback video on QT Widget

    Thanks for support,

    I had gone through the QT4.7 Tech preview, and I of the understanding that this require G-Streamer as back-end multimedia frame work.

    Can any one give me references of cross compiling G-Streamer on ARM board(Embedded Linux).

    Regards,
    Ratheendran

  4. #4
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Playback video on QT Widget

    Quote Originally Posted by Ratheendrans View Post
    Thanks for support,

    I had gone through the QT4.7 Tech preview, and I of the understanding that this require G-Streamer as back-end multimedia frame work.

    Can any one give me references of cross compiling G-Streamer on ARM board(Embedded Linux).

    Regards,
    Ratheendran
    Cross compile gstreamer is just similar to other application. Your board should come with an instruction on cross compile applicaiton , you just need to pass the correct compiler to gstreamer build process.

    However, if your board is not powerful enough and rely on DSP/hardware codec, you need to ask your vendor to provide gstreamer backend or other backend system.

  5. #5
    Join Date
    Nov 2009
    Posts
    60
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Playback video on QT Widget

    Hi All,

    Thanks for your responses.

    I successfully cross compiled GStreamer and their plugin and integrated will QT4.6.1 embedded.

    Now when I run the mediaplayer application and select a file,I do not see any video/Audio.

    I see the below messages on command prompt.

    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::AudioOutput ( no objectName ).
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to MediaVideoWidget ( no objectName ).
    QDesktopServices::storageLocation 4 not implemented
    QFileSystemWatcher: failed to add paths: /home/sky
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
    WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded

    Kindly guide me in fixing this issue.

    Ratheendran

  6. #6
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Playback video on QT Widget

    It could not find phonon backend plugin. Where you put the plugin(phonon_gstreamer.so)?

  7. #7
    Join Date
    Nov 2009
    Posts
    60
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Playback video on QT Widget

    I have fixed this issue.

    I updated 'LD_LIBRARY_PATH' with gstreamer plugin path

  8. #8
    Join Date
    May 2010
    Posts
    7
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Playback video on QT Widget

    Hi Ratheendran

    Are u able to play all formats of video in the player?. Can u help me regarding this?. How can we play all formats of video in a Qmediaplayer
    Reduce-Reuse-Recycle

Similar Threads

  1. Resizing of Phonon video widget
    By Leolander in forum Qt Programming
    Replies: 1
    Last Post: 1st March 2010, 09:36
  2. Live stream for Phonon video widget
    By Leolander in forum Qt Programming
    Replies: 0
    Last Post: 1st March 2010, 06:05
  3. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 06:15
  4. 4.5 + video playback on windows
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2009, 09:58
  5. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 08:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.