Results 1 to 1 of 1

Thread: Phonon video player stops playing after some time.

  1. #1
    Join Date
    Dec 2010
    Posts
    44
    Thanks
    9
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Phonon video player stops playing after some time.

    Hi,

    I have a small phonon application which tries to play videos in an infinite loop. I basically have connected the finished signal() to the play() slot. I use a simple logic to change the videos. I also have a timer for 5 sec which helps me change the video every 5 secs. What I expect is that the application plays the videos forever changing the video every 5 secs.

    But, The app stops playing the videos after about an hour or so. When I check it memory usage, every time the video changes its memory increases by 7-10mb and never decreases. By the time the app stops playing videos it was occupying about 2.4G!! The app itself never crashes though.

    On Ubuntu 10.04 LTS I can see this memory behavior in the System Monitor and using top. Also at the end I see the following message in the terminal "mmap() failed: Cannot allocate memory".

    On Ubuntu 12.04 LTS I dont see the memory being taken up but eventually the app stops playing the videos.

    The behavior is the same with or without the Timer. Without the timer each video plays for its full duration and hence it takes longer for the app to reach the same state.

    For me this looks like a bug or a memory leak some where either in Phonon or in the backend gstreamer. Can anyone confirm that?

    I have attached all the source code.
    ( I am new to the new File Upload manager. Strangely it does not allow me to upload .pro files and .rar files. what should I do if I have a question in .pro files ?)

    Also, to avoid this i am currently trying to build phonon with gstreamer1.0 which hopefully will not have the same bug. Please do suggest any resources for building phonon with gstreamer1.0.

    Sky.

    [ATTACH]8362[/ATTAAttachment 8368CH]Attachment 8363Attachment 8364Attachment 8365Attachment 8366
    Attached Files Attached Files
    Last edited by sky; 26th October 2012 at 14:15. Reason: The File Upload Manager is not displaying the file name PhononPlayer.h correctly.

Similar Threads

  1. Phonon video player
    By sangee in forum Qt Programming
    Replies: 0
    Last Post: 18th October 2012, 08:15
  2. Phonon stops playing after a while
    By alenn.masic in forum Qt Programming
    Replies: 3
    Last Post: 6th September 2012, 21:01
  3. Replies: 4
    Last Post: 28th December 2010, 05:13
  4. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 07:15
  5. Phonon video not playing
    By SidGBF in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2008, 16:30

Tags for this Thread

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.