Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: How is the length of a recording calculated



----Original Message-----
Sameer Khosla wrote:
> 
> Hi, I don't know if this question has come up or not, or even if the PAL
> users experience (since I am guessing this issue only affects NTSC users),
> but I am wondering how the length of a recorded file is recorded.
> 
> The reason I ask is that with the NTSC sources that I record, the reported
> time for the recording is *always* longer.
> 
> For example, if I set a timer to record from 8pm to 9pm, it does.  However
> it reports the length of the recording to be something like 1:10:35.
> 
> It's is not always predictable, sometimes on an hour long recording it
will
> show as 7 minutes longer, and sometimes 15 minutes longer, and sometimes
2.5
> minutes longer.
> 
> But it is always longer.  My thoughts (which could be wrong, this is just
a
> guess) is that could this possibly have something to do with calculating
the
> length based on number of frames (where the fps is different for PAL and
> NTSC).
> 
> Is there any easy way to fix this?

VDR/recording.h:

#define FRAMESPERSEC 25

Set this to 30 (which I believe is the frame rate of NTSC).

Klaus



Actually, I'm not sure, but I believe the framerate for NTSC is actually
29.7 (going from memory, will check).  I am sure that it isn't a whole
number.  Is that constant an integer or float? 

sk.





Home | Main Index | Thread Index