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.
Printable View
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).
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 LinuxCode:
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(); }
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.
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.
how did u played mp4 file