NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 164 165 166 167 168 … 1231 Next »
How To Eliminate Stutter in Recorded Programs

 
  • 0 Vote(s) - 0 Average
How To Eliminate Stutter in Recorded Programs
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#1
2009-02-25, 09:54 PM (This post was last modified: 2009-02-25, 10:54 PM by LewE.)
First, My Setup: I have a Dell 2.8GHz PC with 1.25GB of RAM running Windows XP with current Service Packs. It has a 500GB disk attached via USB2.0 for storing programs recorded by GBPVR. I have Hauppauge 150 and 350 cards to encode the programs and use a Media MVP and a Popcornhour to view programs on televisions in other rooms. I am running GBPVR version 1.3.11. I have GBPVR set up to automatically run Comskip on each program right after it is recorded.

I use this setup because it does all the encoding and decoding via hardware with little demand on the PC. I use the PC as my everyday PC for all my computing (email, browser, word processor, spreadsheet, Turbo Delphi compiler, etc).

The Problem: Most times (maybe 95% of the time), the setup works flawlessly and I can be working on my computer while it is recording two programs simultaneously and, even while it is running Comskip, there are no ill effects.

Every once in a while, however, the computer will be doing something that keeps it busy for a few seconds (on the order of 3-10 seconds) with a flurry of disk activity. When this happens the recorded program files have skips when played back. Comskip reports them as Audio PTS Jumps of several hundred to over a thousand frames.

My Take on This: I assume that while the computer is busy, it is falling behind the data stream from the Hauppauge cards and that is why it has the discontinuities in the recorded files.

Possible Solutions: I came up with several potential solutions.

[LIST= 1]
[*]Is it possible to set the priority of writing the data stream to the disk higher so it is not interrupted by other spurts of computer activity?


[*]Can a buffer be used/enlarged so the files are not butchered because the writes to disk are held up?


[*]Would a Network Attached Storage disk rather than one that goes through the PC via the USB port solve this problem? If so, what changes in the configuration would have to be made?

Further Thoughts: I thought about this more and realized that the data path from the capture card to the disk has to go through the PC so I don't think moving to NAS would have any effect on this problem. I got it confused with the MVP and PCH which might be able to bypass the PC if the recorded programs were on a NAS.[/LIST]
pcostanza
Offline

Posting Freak

Posts: 3,778
Threads: 270
Joined: Oct 2004
#2
2009-02-25, 10:03 PM
More ram might be a good idea but I suggest frequent defrags which I can personally vouch for as very helpful.


Paul


Custom ASUS Maximus X Hero, 16 GB Memory-ASUS GeForce 1050 Ti, H115i Pro AIO, 850W PS, CM H500P case, Corsair Vengeance RGB Ram, Samsung 970 EVO, HDHomerun Prime & Extend  Tuners- running Windows 10 (and other goodies)
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#3
2009-02-25, 10:21 PM
pcostanza Wrote:More ram might be a good idea but I suggest frequent defrags which I can personally vouch for as very helpful.
Every night I defrag the disk using PerfectDisk's "Files Only" defrag. This defrags the files but does not pack the disk files so they are contiguous. Actually, I have brought up the question of defragging recorded programs in the past in these forums and the majority of the responses were that it was not necessary to do frequently.

Every so often I do a complete defrag which packs the files and eliminates holes.

Note also, that the only data stored on this disk is the recorded programs plus the files created by Comskip. Because of that and the nightly defragging I do, when I delete a recording it frees up a contiguous block of anywhere between 800MB (for a 30 minute program) to 3.5GB (for a 2 hour movie). There doesn't seem to be a problem finding where to write new file segments most of the time; only during the flurries of activity
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2009-02-26, 05:56 AM
if it's a sata drive i'd go with esata....some enclosures even come with the bracket needed to add it...ends up being same speed/behavior as internal drive...but externally..Smile

otherwise setting windows to use more mem for caching instead of programs might help...
or turning on write caching...just be carefull how you unplug it...
it usually gives big performance increase, tho riskier if you disconnect it during recording...

for a recording drive i'd say it's a must, along with keeping drive's power on a battery backup.

oh, also may need the $Mft defragmented.....leaving files fragmented causes extra entries in mft tables...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#5
2009-02-26, 10:27 AM
pBS Wrote:if it's a sata drive i'd go with esata....some enclosures even come with the bracket needed to add it...ends up being same speed/behavior as internal drive...but externally..Smile
I don't think it's a speed problem because it can keep up normally.

I will keep esata drives in mind when adding/replacing drives in the future.

Quote:otherwise setting windows to use more mem for caching instead of programs might help...
or turning on write caching...just be carefull how you unplug it...
it usually gives big performance increase, tho riskier if you disconnect it during recording...

for a recording drive i'd say it's a must, along with keeping drive's power on a battery backup.
Bingo! I checked the drive's properties in the Hardware Manager and found that it was at the default for USB drives, i.e. to disable write caching. I enabled write caching. I'm guessing that this will take care of my problem.

I had been thinking along this line with my original post but your response pushed me to find exactly what my situation was. I had originally assumed that disk caching was used for writing to disks but had not checked to verify it was being used.

Although the drive is connected via USB, I do not ever disconnect it. I have it and another USB drive (used solely for storing digital camera pictures and videos and for storing Internet file downloads) "Permanently" connected. They are USB devices because they were easy to add, take up no space inside the system unit, and make the files more portable when I upgrade to another computer in the future.

Quote:oh, also may need the $Mft defragmented.....leaving files fragmented causes extra entries in mft tables...
The $MFT is not a problem. In addition to the defrag of the GBPVR disk each night, I also do a defrag of the C: System drive each night.
pgoelz
Offline

Member

Posts: 57
Threads: 14
Joined: Dec 2008
#6
2009-02-26, 01:31 PM
It's a bit of a long shot but check to see if you have Java Quick Start enabled. It prefetches Java files on your system and keeps them in the cache for quicker startup. But it does it by reading a LOT of (all?) Java files on your system and it does it fairly frequently. On my system, it caused periodic HD access storms just like you are describing. Drove me nuts until I figured out what it was and disabled it. You can stop the service, or I think you can turn it off in the Java control panel.

A pretty stupid "feature" if you ask me.

After I turned it off, the only HD activity I see is when I do something or when GBPVR is recording. And during recording, the HD activity is very regular with no periodic access storms.

Paul
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#7
2009-02-26, 04:10 PM
pgoelz Wrote:It's a bit of a long shot but check to see if you have Java Quick Start enabled. It prefetches Java files on your system and keeps them in the cache for quicker startup. But it does it by reading a LOT of (all?) Java files on your system and it does it fairly frequently. On my system, it caused periodic HD access storms just like you are describing. Drove me nuts until I figured out what it was and disabled it. You can stop the service, or I think you can turn it off in the Java control panel.
No. It wasn't enabled on my computer. I had long ago taken care of that.

I will, however, review all of the services that are started up on my machine. That's probably a good periodic maintenance thing to do anyways.
pgoelz
Offline

Member

Posts: 57
Threads: 14
Joined: Dec 2008
#8
2009-02-26, 05:01 PM
I occasionally open Task Manager, sort on CPU cycles and then just watch it for a while. On my laptop, things are pretty stable and quiet. But on my GF's laptop, they aren't. Her biggest offender is her HP wireless printer driver, which periodically (like every 15 seconds) consumes about 25% of the CPU for a second or so, even when the printer is idle. Right up there with Java Quickstart in my book.... except I can turn Quickstart off. It makes her laptop totally unusable for watching GBPVR recordings over wireless (which works fine on my laptop).

Paul
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#9
2009-02-27, 06:27 PM
yea, the write cache is off by default for removable drives...
always something to check when adding new usb drives...only really good for full time hard drives, leave disabled for thumb drives and mem cards...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#10
2009-02-28, 03:01 AM
Success! Since I set the (USB) drive I use to store GBPVR-recorded programs to use write caching, I have eliminated the Audio PTS Jumps that Comskip finds. I used to be happy if a program only had Audio PTS Jumps of fewer than 90 frames at a time.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  file types of recorded TV paul1 3 3,670 2012-09-30, 05:20 PM
Last Post: sub
  Can't watch recorded TV programs. robert2011 3 2,293 2011-03-31, 11:20 AM
Last Post: robert2011
  Recorded Playback Scrambled/Distorted BTJustice 8 4,117 2011-03-31, 05:12 AM
Last Post: BTJustice
  No Data In the Recorded File zb1 5 2,223 2010-08-24, 01:08 AM
Last Post: zb1
  GB-PVR No Longer Recording Scheduled Programs peinkc 4 2,062 2010-08-15, 02:14 PM
Last Post: peinkc
  Path to file being recorded. brianj 5 2,272 2010-08-08, 10:58 PM
Last Post: brianj
  Guide update registers multiple conflicting programs keith_leitch 0 1,320 2010-07-09, 09:48 PM
Last Post: keith_leitch
  Recorded TV will not play :( Dave_M 11 3,910 2010-06-02, 05:13 PM
Last Post: Dave_M
  Is there a simple way to get a snapshot of live tv or from a recorded show? hexibot43 12 3,514 2010-04-25, 01:50 PM
Last Post: HarryH3
  Analog recording settings and recorded output edgesitter 3 2,156 2010-04-08, 04:11 AM
Last Post: Ninianne

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

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

Linear Mode
Threaded Mode