Phonon not show video

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Phonon not show video

1,502 次查看
enaud
Contributor III

hi all,

I've resolved error of phonon with export QT_PLUGIN_PATH='/usr/plugin' but now my application start but i no view video i view only a black box.. If i type: gplay MOV008.mp4 I view correclty my vide on full screen. But with my QT app no Code of my app is:

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <phonon/VideoPlayer>
#include <phonon/MediaObject>
#include <phonon/MediaSource>

MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
Phonon::MediaObject *media = new Phonon::MediaObject(this);
media->setCurrentSource(Phonon::MediaSource(QString("MOV008.mp4")));
ui->videoPlayer->play(media->currentSource());
}

MainWindow::~MainWindow()
{
delete ui;
}

When i run my app i view: (Look at this link) http://pastebin.com/9gjxv5nj



thanks

标签 (1)
0 项奖励
7 回复数

1,004 次查看
enaud
Contributor III

I have Lookup error on ARM

0 项奖励

1,004 次查看
Hitex
Contributor I

Once you download it goto the directory and change the permission using terminal

chmod 777 -R Simple

0 项奖励

1,004 次查看
Hitex
Contributor I

1st One is a x86 Executable

2nd is same ARM executable

with 4 buttons, Open,Play,Pause,Stop check if it works....

Hitesh said:



enaud said:

178-IMG034.jpg

0 项奖励

1,004 次查看
Hitex
Contributor I



enaud said:

181-IMG034.jpg

0 项奖励

1,004 次查看
enaud
Contributor III

184-IMG034.jpg

0 项奖励

1,004 次查看
enaud
Contributor III

with Gplay yes but on my app I no view and not hear nothing.

0 项奖励

1,004 次查看
Hitex
Contributor I
Hi, I faced the same problem , Code works fine on x86, however it dosent play video on I.MX53QSB. There is some problem with AVI and MP4. AVI file will not play..... with MP4 you will get only audio ..... Try with .wmv file you will get audio and video in frames atleast you will get some display, however still it is not upto the expectation
0 项奖励