[Qt-interest] Issues with large movie files and MediaObject created with IODevice

Darryl Hunter darryl.hunter at codersoft.com.au
Wed Dec 16 07:49:58 CET 2009


Hi all,

 

I'm having problems using phonon to play large files.

 

Using the mediaPlayer example (in demos/mediaplayer), I added a QFile
instance in the header file, and modified MediaPlayer::setFile to say:

m_file.setFileName (fileName);

m_MediaObject.setCurrentSource (Phonon::MediaSource (&file));

 

(instead of m_MediaObject.setCurrentSource (Phonon::MediaSource
(fileName));)

 

Because m_file is a class variable, it won't go out of scope.

 

All files open, but when I use the slider to jump around to different
positions in the file, the player hangs.  However, with the original source
code (where the fileName is passed in to the MediaSource), everything works
as expected.

 

I have experienced problems with the DivX Decoder Filter (video) with the
MPEG Layer-3 Decoder (audio), 821 meg, 2 hours 24 minutes of footage, and
same combination with 716 meg, 1 hour 33 minutes of footage.  I have had
success with the MPEG Video Decoder (video) and MPEG Audio Decoder (Audio),
714 meg, 1 hour 9 minutes of footage.

 

Visual Studio 2005, Qt 4.4.3 (also tested with 4.5.2), Windows XP.

 

Has anybody else experienced similar issues?  Any suggestions?

 

Thanks.

 

Darryl

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091216/8c3b9f4c/attachment.html 


More information about the Qt-interest-old mailing list