Results 1 to 3 of 3

Thread: Phonon Windows TotalTime glitch

  1. #1
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Phonon Windows TotalTime glitch

    I am doing a cross platform music jukebox app. While playing a music file, I display the current running time, and the total running time of the track in this format:
    mm:ss [mm:ss]
    This is updated every second using the media object's tick signal. I use the TotalTime() function of the media aobject to get the running time of the music track. In Linux, this works fine, but in Windows this returns the wrong amount. This is OS independent, as it happens on the XP development machine, as well as the Win7 deployment machine. There doesn't seem to be any particular pattern to how much it is wrong by, but it is always wrong, and it is always much greater than the actual running time of the track. I did a Google search on this but came up empty. This isn't exactly a show stopper, but it is an annoyance. Sound familiar?

  2. #2
    Join Date
    Sep 2010
    Posts
    145
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon Windows TotalTime glitch

    Yes, I've seen this many times and it appears to be from tracks encoded with a variable bitrate. If any given implementation uses the bitrate to extrapolate the total running time, and does not account for VBR, then this is bound to happen. In other words, looks like a codec problem to me.

  3. The following user says thank you to Timoteo for this useful post:

    skepticalgeek (13th October 2010)

  4. #3
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Phonon Windows TotalTime glitch

    Sounds about right. I ripped all my CDs using Exact Audio Copy on VBR settings. Any workarounds?

Similar Threads

  1. Phonon windows?
    By sdink87 in forum Newbie
    Replies: 1
    Last Post: 18th November 2009, 19:12
  2. phonon Windows 7
    By Sachtech in forum Qt Programming
    Replies: 0
    Last Post: 9th November 2009, 06:06
  3. icon glitch in QListView
    By trhaynes in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2009, 19:48
  4. Phonon on Windows
    By Lele in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2008, 20:28

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.