Results 1 to 3 of 3

Thread: Play video file with Phonon and GStreamer show black screen

  1. #1
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Unhappy Play video file with Phonon and GStreamer show black screen

    hi,
    I have the following code:

    //setup media object
    media = new Phonon::MediaObject();
    media->setCurrentSource(Phonon::MediaSource(QString("tes t.avi")));

    //setup player
    videoPlayer = new Phonon::VideoPlayer(Phonon::VideoCategory);
    videoPlayer->setFixedSize(QSize(640,480));
    videoPlayer->move(100,30);
    videoPlayer->show();
    connect(videoPlayer, SIGNAL(finished()), videoPlayer, SLOT(deleteLater()));
    videoPlayer->play(media->currentSource());

    The result is black screen and video file does not play. No error is printed.
    What Gstreamer must has to play video files?
    Someone see any problem with my code? please help me.

    Regards,
    Simbad

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Play video file with Phonon and GStreamer show black screen

    There's a space in the filename. It should not be test.avi?

  3. #3
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Play video file with Phonon and GStreamer show black screen

    Yes I know is just an error from copy. thanks
    Do you know about the black screen?

Similar Threads

  1. Phonon - how to loop a video file
    By Mrdata in forum Newbie
    Replies: 6
    Last Post: 24th July 2015, 19:31
  2. Phonon, MinGW, GStreamer
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2012, 02:23
  3. Blank screen when playing video with Phonon
    By rbp in forum Qt Programming
    Replies: 1
    Last Post: 5th February 2010, 13:29
  4. Performance problems playing video with Phonon and GStreamer on QT Embedded.
    By MarcosRodriguez in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 14:57
  5. Can we use Phonon without GStreamer?
    By learning_qt in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2008, 14:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.