wrong playtime(dss files)

The place for "I can't figure out how to..." questions.

wrong playtime(dss files)

Postby sumit_mdalal » Thu Mar 04, 2010 11:25 pm

I tried to get the playtime of sum audio files with the help of basic demo and all the others were pretty accurate accept the dss files.The dss file I tested shows the playtime of 5:04 mins from getid3 and when i open it in Express Scribe player it plays for only 3 mins approx.
here is the dss file i tested
http://rapidshare.com/files/358915057/100128_DRGO_MSG_1020.dss.html
wat may be the reason? can any 1 help????
sumit_mdalal
User
 
Posts: 1
Joined: Thu Mar 04, 2010 12:21 pm

Re: wrong playtime(dss files)

Postby zye4822 » Mon Apr 19, 2010 9:40 am

Hi

I have the same problem with dss files, duration misreporting. The three files which I uploaded gave me:
48.56 - actual duration 29.03
11.47 - actual duration 7.07
7.00 - actual duration 4.20

Does anyone know of a fix for this please.

Cheers!

Zye ...
zye4822
User
 
Posts: 2
Joined: Mon Apr 19, 2010 9:16 am

Re: wrong playtime(dss files)

Postby James Heinrich » Tue Apr 20, 2010 4:54 am

I found the problem. All my previous test files were less than a minute long. I had assumed the "length" field in the header was in seconds, but it's actually hours-minutes-seconds (as far as I can tell, I don't have a test file longer than 1 hour). It's a simple 1-line fix, around line 43 (v1.x) or 51 (v2.x) in module.audio.dss.php:
Code: Select all
//$thisfile_dss['length']         =                         intval(substr($DSSheader,  62,   6)); // I thought time was in seconds, it's actually HHMMSS
$thisfile_dss['length']         = intval((substr($DSSheader,  62, 2) * 3600) + (substr($DSSheader,  64, 2) * 60) + substr($DSSheader,  66, 2));
James Heinrich
getID3() v1 developer
 
Posts: 702
Joined: Fri May 04, 2001 11:00 am
Location: Kingston, ON, Canada

Re: wrong playtime(dss files)

Postby zye4822 » Tue Apr 20, 2010 8:12 am

Hi James

Thanks alot for the fix. Works great. Also many thanks for your great and useful program. It has saved me hours of time.
Cheers!

Zye ...
zye4822
User
 
Posts: 2
Joined: Mon Apr 19, 2010 9:16 am


Return to Support 1.7.x

Who is online

Users browsing this forum: No registered users and 2 guests