Hi everybody!
I'm newbie in Qt and I'm trying to play a movie in Phonon on a embedded system.

This is my code:
Qt Code:
  1. //mainwindow.cpp
  2. #include "mainwindow.h"
  3. #include "ui_mainwindow.h"
  4. #include <Phonon>
  5.  
  6. Phonon::VideoPlayer *vP;
  7. Phonon::SeekSlider *sL;
  8.  
  9. MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
  10. {
  11. QStringList phonon_supportedFormats;
  12. foreach (QString phonon_video_fmt, Phonon::BackendCapabilities::availableMimeTypes())
  13. phonon_supportedFormats << phonon_video_fmt;
  14. qDebug() << "phonon_supportedFormats:"<<phonon_supportedFormats;
  15.  
  16. ui->setupUi(this);
  17. vP = new Phonon::VideoPlayer(Phonon::VideoCategory, ui->Video);
  18. vP->setParent(ui->Video);
  19. vP->load(Phonon::MediaSource("test256x144.avi"));
  20. vP->setGeometry(0,0,256,144);
  21. vP->setVolume(0.25);
  22.  
  23. sL = new Phonon::SeekSlider(this);
  24. sL->setGeometry(30,237,220,20);
  25. sL->setMediaObject(vP->mediaObject());
  26. }
  27.  
  28. MainWindow::~MainWindow()
  29. {
  30. delete ui;
  31. delete vP;
  32. delete sL;
  33. }
  34.  
  35. void MainWindow::changeEvent(QEvent *e)
  36. {
  37. QMainWindow::changeEvent(e);
  38. switch (e->type())
  39. {
  40. case QEvent::LanguageChange:
  41. ui->retranslateUi(this);
  42. break;
  43. default:
  44. break;
  45. }
  46. }
  47.  
  48. void MainWindow::on_verticalSlider_sliderMoved(int position)
  49. {
  50. vP->setVolume(position / 100.0);
  51. }
  52.  
  53. void MainWindow::on_Btt_Up_clicked()
  54. {
  55. ui->Video->move(ui->Video->x(),8);
  56. }
  57.  
  58. void MainWindow::on_Btt_Dw_clicked()
  59. {
  60. ui->Video->move(ui->Video->x(),48);
  61. }
  62.  
  63. void MainWindow::on_Btt_play_clicked()
  64. {
  65. if (ui->Btt_play->text() == "Play")
  66. {
  67. vP->play();
  68. ui->Btt_play->setText("Pause");
  69. }
  70. else
  71. {
  72. vP->pause();
  73. ui->Btt_play->setText("Play");
  74. }
  75. }
To copy to clipboard, switch view to plain text mode 
And this is my main class:
Qt Code:
  1. //main.cpp
  2. #include <QtGui/QApplication>
  3. #include "mainwindow.h"
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication a(argc, argv);
  8. a.setApplicationName("PhononTest");
  9.  
  10. MainWindow w;
  11. w.setWindowTitle("Simple Player");
  12. w.show();
  13. return a.exec();
  14. }
To copy to clipboard, switch view to plain text mode 
If I build it for x86 platform it works fine. But, if I compile it for ARMv5, it run with NO errors, but the window that contains the video loaded with "vP->load(Phonon::MediaSource("test256x144.avi"));" instruction stay blank also when I play it.
How to fix this issue?

NOTE 1: test256x144.avi is a mpeg movie, my qt embedded supports this codec, because "qDebug() << "phonon_supportedFormats:"<<phonon_supportedFormat s;" instruction returns:
Qt Code:
  1. phonon_supportedFormats: ("application/x-3gp", "application/x-bzip", "audio/x-alaw", "audio/x-au", "audio/x-it", "audio/x-m4a", "audio/x-mod", "audio/x-mulaw", "audio/x-nsf", "audio/x-s3m", "audio/x-stm", "audio/x-tta", "audio/x-ttafile", "audio/x-wav", "audio/x-xm", "multipart/x-mixed-replace", "text/x-cmml", "video/mpeg", "video/mpegts", "video/quicktime", "video/x-cdxa", "video/x-fli", "video/x-flv", "video/x-h264", "video/x-matroska", "video/x-msvideo", "video/x-mve", "video/x-nuv", "video/x-smoke", "video/x-vcd", "video/x-vmnc")
To copy to clipboard, switch view to plain text mode 

NOTE 2:I also played the movie with gstreamer (phonon use decodebin2 plugin to decode movies), and i can see it with no problem:
Qt Code:
  1. gst-launch-0.10 filesrc location=/mnt/mnt_gea/test256x144.avi ! decodebin2 ! ffmpegcolorspace ! 'video/x-raw-rgb,depth=16,bpp=16' ! fbdevsink device=/dev/fb0 sync=true
To copy to clipboard, switch view to plain text mode 
This proves that gstreamer under phonon works properly and i have the codec installed properly