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
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.
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
Re: Playback video on QT Widget
Quote:
Originally Posted by
Ratheendrans
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.
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
Re: Playback video on QT Widget
It could not find phonon backend plugin. Where you put the plugin(phonon_gstreamer.so)?
Re: Playback video on QT Widget
I have fixed this issue.
I updated 'LD_LIBRARY_PATH' with gstreamer plugin path
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