Results 1 to 6 of 6

Thread: Phonon videoplayer doesn't play some files

  1. #1
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Phonon videoplayer doesn't play some files

    Hello!
    I'm creating a videoplayer using phonon. If I call Phonon::BackendCapabilities::availableMimeTypes() it says it can play avi, mp4, mpeg and some more file types.
    I can play all the videos on Windows Media Player but I can only play mpeg-files, and some avi-files in my phonon videoplayer. If I start a file that my player can't play, a black square is displayed and no audio is played.
    I am only running the application from Qt Creator, I haven't tried installing it on another computer yet.

    Do you have any ideas? I need all the help I can get!

    Best regards
    Erik

  2. #2
    Join Date
    Oct 2007
    Location
    Lake Forest, CA, USA
    Posts
    132
    Thanks
    10
    Thanked 27 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Phonon videoplayer doesn't play some files

    It's Phonon backend specific. Actually AVI, MP4 is just containers, not codecs. We use libVLC backend to play all formats VLC player supports. You can choose another option.
    Oleg Shparber

  3. #3
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Phonon videoplayer doesn't play some files

    Thanks!
    But how do I change backend? Do I have to connect the backend to my Phonon::VideoPlayer?

    Erik

  4. #4
    Join Date
    Oct 2007
    Location
    Lake Forest, CA, USA
    Posts
    132
    Thanks
    10
    Thanked 27 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Phonon videoplayer doesn't play some files

    Due to some stupidness (or maybe it's a missed feature) in Phonon it loads the first available backend, so just make sure you have the only one need in phonon_backend folder.
    Last edited by Oleg; 8th December 2011 at 19:01.
    Oleg Shparber

  5. #5
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Phonon videoplayer doesn't play some files

    Hi!
    I can't get this to work. I have built my application and move it to a different folder containing the following files:
    myvideoplayer.exe
    libgcc_s_dw2-1.dll
    mingwm20.dll
    phonon4.dll
    QtCore4.dll
    QtGui4.dll
    QtOpdenGL.dll
    phonon_backend
    My application doesn't seem to use the backend. It makes no difference what file i put in my phonon_backend folder. I have tried phonon_ds9d4.dll, phonon_vlc.dll and no file at all. My application can play the same files no matter what file is in the phonon_backend folder. Should I replace the phonon_backend before I build the application?

  6. #6
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Phonon videoplayer doesn't play some files

    Can anyone help me?

    As I discribed above I have built my application and moved it to a folder on my desktop. In that folder i have the files listed above and the phonon_backend folder.
    Can I just replace the files in the phonon_backend folder with phonon_vlc.dll?
    Or should I replace the files in the phonon_backend folder in my c:/program files/qt/.../phonon_backend before I build the application?

    I am greatful for all the help I can get!

Similar Threads

  1. Phonon::VideoPlayer
    By dano_labrosse in forum Newbie
    Replies: 6
    Last Post: 1st February 2012, 06:33
  2. Problem in phonon videoplayer
    By vinayaka in forum Newbie
    Replies: 1
    Last Post: 20th January 2012, 11:55
  3. How to set a background in a Phonon VideoPlayer ?
    By slimIT in forum Qt Programming
    Replies: 1
    Last Post: 24th October 2010, 21:54
  4. Replies: 6
    Last Post: 23rd December 2009, 10:45
  5. phonon VideoPlayer seek
    By rbp in forum Qt Programming
    Replies: 4
    Last Post: 31st October 2008, 04:53

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.