Hi,
I am checked and found that Phonon can't play all types of media files. It can't play mp4 and flv. will we get the fix in the next release of Qt SDK, or is there any other way to fix it.
Hi,
I am checked and found that Phonon can't play all types of media files. It can't play mp4 and flv. will we get the fix in the next release of Qt SDK, or is there any other way to fix it.
Phonon is only a back-end, that means everything what can play Your OS native vide player can play Phonon. See doc for more details. (and yes phonon plays mp4 and flv's with correct codec installed).
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
How do you open the file?
With Phonon I mean.
This can be a couple of things:
1. You do not have the correct codec installed. Media Player might use a different codec (even internal code). Check the capabilities of the backend.
2. There's something wrong with the backend. In your case that would be the DS backend I think.
3. You did not create the correct Phonon/Qt code to play the video. Hence the question, how do you open the file.
this is the code I used
3.
and its running on LinuxQt Code:
void HelloMeego::on_pushButton_4_clicked() { //video // display video in same window Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this); // Phonon::VideoPlayer *myPlayer= new Phonon::VideoPlayer(Phonon::VideoCategory, this); Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(this); Phonon::createPath(mediaObject, videoWidget); ui->verticalLayout->addWidget(videoWidget); Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this); Phonon::createPath(mediaObject, audioOutput); Phonon::MediaSource source = Phonon::MediaSource(urlVideo); mediaObject->setCurrentSource(source); Phonon::SeekSlider *slider = new Phonon::SeekSlider; slider->setMediaObject(mediaObject); ui->horizontalLayout_2->addWidget(slider); slider->show(); mediaObject->play(); }To copy to clipboard, switch view to plain text mode
1. how to check the backend capabilities. Are you talking about the media file support by phonon?this I have this
("application/vnd.ms-wpl", "application/x-mplayer2", "application/x-ms-wmd", "application/x-ms-wmz", "audio/aiff", "audio/basic", "audio/mid", "audio/midi", "audio/mp3", "audio/mpeg", "audio/mpegurl", "audio/mpg", "audio/wav", "audio/x-aiff", "audio/x-mid", "audio/x-midi", "audio/x-mp3", "audio/x-mpeg", "audio/x-mpegurl", "audio/x-mpg", "audio/x-ms-wax", "audio/x-ms-wma", "audio/x-wav", "midi/mid", "unknown", "video/avi", "video/mpeg", "video/mpg", "video/msvideo", "video/x-mpeg", "video/x-mpeg2a", "video/x-ms-asf", "video/x-ms-asf-plugin", "video/x-ms-wm", "video/x-ms-wmv", "video/x-ms-wmx", "video/x-ms-wvx", "video/x-msvideo")
2. what is DS backend ?
Hi,
i have the same kind of issue, i can play mp4 but not flv.
v-6 (10th November 2010)
Sorry for late reply. I miss this thread by accident.
You can play MP4 files in WMP and not in Phonon because You are probably using ffdshow base codec/pack. K-Lite use DS codecs that are supported by Phonon. It's in doc.
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
how did u played mp4 file
Bookmarks