[mythtv] Retrieving the actual length of a recorded show

Kevin Kuphal kevin.kuphal at myrealbox.com
Sun Apr 25 10:20:33 EDT 2004


Not to sound stupid, but where did you get the keyframedistance and
framerate from?

> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org 
> [mailto:mythtv-dev-bounces at mythtv.org] On Behalf Of Wayne Hogue
> Sent: Sunday, April 25, 2004 9:06 AM
> To: Development of mythtv
> Subject: Re: [mythtv] Retrieving the actual length of a recorded show
> 
> 
> Wayne Hogue wrote:
> 
> > here is how I get the length:
> >
> > "select MAX(mark) from recordedmarkup where chanid='$channel' and
> > starttime
> > ='$syear$smonth$sday$shour$sminute$ssecond' and type='6'";
> >
> > this will give you the key frame count.
> >
> > minutes = ((keyframecount*keyframedistance)/framerate)*60)
> >
> make that
> 
> minutes = ((keyframecount*keyframedistance)/framerate)/60)
> 
> -Wayne
> 
> 




More information about the mythtv-dev mailing list