NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 237 238 239 240 241 433 Next »
timing.info too short, timeline inaccurate

timing.info too short, timeline inaccurate
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,529
Threads: 964
Joined: May 2006
#21
2013-10-23, 04:43 PM
If your system clock was drifting you should expect the recording would be cut short too.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#22
2013-10-23, 05:14 PM
mvallevand Wrote:If your system clock was drifting you should expect the recording would be cut short too.
exactly.

All windows systems seem to have some time drift problems, but it isn't really noticeable on a desktop PC since windows syncs the time each week. On the HTPC box though if I drifted out 30 seconds after a week, that'd mean the beginning of shows would be cut off. I finally solved the problem by scheduling a "w32time /resync" command every 5 minutes in the task scheduler. At most my time drifts a second or two before it's brought back to perfect sync.

UNLESS.... is the time source that NPVR uses to write the timing.info connected to the system time which I am syncing to an external time source, or is it an internal time counter unaffected by time sync?
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,994
Threads: 770
Joined: Nov 2003
#23
2013-10-23, 05:22 PM
johnsonx42 Wrote:UNLESS.... is the time source that NPVR uses to write the timing.info connected to the system time which I am syncing to an external time source, or is it an internal time counter unaffected by time sync?
To be honest, I'm not sure. It depends how it works behind the scenes.

I'm using a Windows API that returns the uptime of the machine milliseconds. Initially I was using GetTickCount(), but the most recent patch switch to timeGetTime()
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#24
2013-10-23, 05:23 PM
johnsonx42 Wrote:UNLESS.... is the time source that NPVR uses to write the timing.info connected to the system time which I am syncing to an external time source, or is it an internal time counter unaffected by time sync?

I'm just guessing, but these methods usually just give you the time in milliseconds since 1970, so it probably is linked to the system clock.

Iain
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#25
2013-10-23, 05:32 PM
johnsonx42 Wrote:UNLESS.... is the time source that NPVR uses to write the timing.info connected to the system time which I am syncing to an external time source, or is it an internal time counter unaffected by time sync?
I think this has to be it. I turned off my timesync task and ran a 30 minute recording. The timeline shows 29:29, pretty much exactly what it should. However if I run writeTime against the recording, the resulting timeline is longer, 30:03.

So this means whatever clock source NPVR uses to write the Timing.Info is slow by about 5-6 seconds per 30 minutes. If I force the time to sync, then the recordings have the right length because NPVR itself is governed by the clock that I'm syncing, but the written Timing.Info is short. If I let the time drift, then the system clock and Timing.Info will agree, but the recording itself will actually be longer.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#26
2013-10-23, 05:47 PM
sub Wrote:I'm using a Windows API that returns the uptime of the machine milliseconds. Initially I was using GetTickCount(), but the most recent patch switch to timeGetTime()
It makes sense that GetTickCount() would use an internal counter not affected by timesync, but you'd think timeGetTime() would be slaved to the system clock. However it seems pretty clear from my tests that clock drift is causing my problem. My 'new' system must have a pretty bad clock generator. I wonder if it's the hardware itself, or something in the BIOS?
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,994
Threads: 770
Joined: Nov 2003
#27
2013-10-23, 06:41 PM
johnsonx42 Wrote:It makes sense that GetTickCount() would use an internal counter not affected by timesync, but you'd think timeGetTime() would be slaved to the system clock.
They both return the system up-time in milliseconds though, so "timeGetTime" name might be a bit deceptive.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#28
2013-10-23, 08:16 PM
sub Wrote:They both return the system up-time in milliseconds though, so "timeGetTime" name might be a bit deceptive.
do you have a call available that would return the system time in ms that you could use?
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,529
Threads: 964
Joined: May 2006
#29
2013-10-23, 08:20 PM
Windows timers etc all depend on a reliable RTC, you should fix your motherboard, and not go for a hack. I suspect that it will impact decoders skipping etc too.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#30
2013-10-23, 08:37 PM
I may indeed need to replace my mainboard ultimately (I doubt there's anything to fix), but it doesn't seem like using system time to generate the timing.info should be any different in net effect than using the uptime (so neither method in NPVR is more a hack than the other... it just so happens one of them would work better with my hack of forcing time sync every 5 minutes). I agree that having the clock running slow may have other odd effects, but so far this is the only one. Everything else about this system runs just perfectly.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Add Series/Episode Info to Recording Metadata andrewj 2 1,407 2023-11-20, 03:42 PM
Last Post: sub
  Channel and EPG info Brucek2839 1 1,547 2019-10-30, 06:16 AM
Last Post: sub
  Missing Guide Info jcole998 17 4,769 2019-06-14, 08:16 PM
Last Post: Rich A
  IPTV - recordings cut short vibez 8 3,123 2019-03-18, 10:51 PM
Last Post: vibez
  Info in 'Details' is different than 'Bulk Map' Legacy14 9 2,835 2018-04-20, 06:38 PM
Last Post: Legacy14
  Windows Exception dialog when overlay drawn (Info, Volume, etc) Wakalaka 3 1,776 2018-03-25, 05:58 PM
Last Post: Wakalaka
  Recent recording shows wrong length in timeline WayneD 15 5,500 2018-01-30, 12:18 PM
Last Post: Bobins
  No Timeline During Playback GWCowling323 1 1,352 2017-11-28, 04:21 PM
Last Post: sub
  No Episode info for certain channels shaboobala 8 2,913 2017-11-18, 12:48 AM
Last Post: TeleFragger
  Season and Episode Info ottoguy 2 1,874 2017-02-18, 09:36 PM
Last Post: scJohn

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode