[mythtv-users] Question about commflagging percent complete

Joe Ripley vitaminjoe at gmail.com
Fri Apr 18 16:37:51 UTC 2008


On Wed, Apr 16, 2008 at 8:39 PM, Tom Dexter <digitalaudiorock at gmail.com> wrote:
> Does anyone happen to know...
>
>  When a recording is being commercial flagged while it's recording, is
>  the percent complete that's reported based on the current length of
>  the recording at that point in time, or is it based on the final
>  length according to the schedule?

That's a good question, and I was wondering that myself.  According to
the code, the percentage is calculated based on the number of frames
processed (i.e. current frame number / total frames).  This is for a
file that is already recorded, not a recording in progress.

For a recording in progress, the code seems to indicate that the start
time and stop time for a recording is used to calculate percentages.

So, when the commercial flagger says that it's at 30% for live
recording that's scheduled to run for 60 minutes, it means that it's
flagged up to the 18 minute mark so far (irregardless of what point
the recording itself is at).

Does this make sense?

-- 
Joe Ripley
vitaminjoe at gmail.com


More information about the mythtv-users mailing list