![]() |
|
|||
|
Re: New HTPC
Regarding fragmentation on NTFS drives, I recall reading three things that cause problems. First, NTFS intentionally places gaps between files for expansion. Second, I think it begins writing in the first available cluster, which may be those tiny expansion gaps, or deleted *.dat files. Third, almost all defraggers also leave these gaps.
Now, take all this with a grain of salt, as I'm too lazy to document it and some or all may no longer apply to XP or Vista. Snapstream may also be doing something proprietary to work around this, since 4.3 introduced a "New disk allocation method to reduce disk fragmentation."
__________________
BTV 4.8.2 | Community Web Admin | PVR-150, Theater 550 PCIe | X1600 Pro w/ Cat 9.3 | RCA to SDTV | Athlon 64 X2 4200+ | ECS nForce4-A939 | 1GB Dual Channel PC3200 | WinXPsp3 | .NET 3.5 | Hauppauge silver remote |
|
||||
|
Re: New HTPC
Almost there. Tonight was a very busy recording night. And I must say I'm pretty pleased with my unusual set-up. Tonight I recorded 6 Digital HD, and 2 analog in three hours of time.
I just checked (1/2 hour after the last show finished) My quest to keep fragmentation down seems to work well. After all that recording here are the stats. Op. System Drive C: 2 % fragmentation Scratch drive (swap file temp etc) Drive D: 0 % Recording Drive E: 0 % Storage drive F: 0 % Storage drive G: 48 % All the shows recorded just happened to all be moved to their proper folders on the G: drive. The system is lightning fast. The comment about SS changing something recently to reduce fragmentation was something I also remember seeing. But I have to say that I've tested this and doing a one hour recording with BTV to a brand new formatted empty drive results in the drive being heavily fragmented. But then I'm also seeing a lot of fragmentation when I use the BTV "copy" function of showsqueeze to move the file from one drive to another. More testing needed there. Now the last problem. Getting SnapStream's Smart chapter to work AFTER the files have been moved. Unfortunately the "custom Postprocessing" occurs first. The precedence is: 1. Custom Post processing 2. Smart Chapter Generation 3. Show squeeze. Since I'm using Show Squeeze to sort and distribute (copy / delete) the files to their ultimate storage drives .. I need to have that done first. The "custom post processing" that I am doing is deleting all the *.dat files, which after the shows are moved keeps the recording drive empty and fragment free. The "copy" parameter used in ShowSqueeze is VERY useful and I think a powerful tool that is only limited by the way SS has set the order of post processing, Smart chapter gen. and Showsqueeze. It does allow you to take any recording and set it to always be moved to it's own different hard drive and folder. And that frees up the recording drive when it becomes time to watch the shows while the recording drive is busy. I have to keep Smart Chapters turned off because it naturally occurs before showsqueeze, which then keeps the load on the recording drive. The system would be "perfect" if I could change the order like this: 1. ShowSqueeze 2. Custom post processing 3. Smart Chapter gen. I wonder if there might be something in an xml file or other parameter I might be able to use to change the order?
__________________
Rich A BTV Beta Tester. 4.x.x XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote. Last edited by Rich A; 04-13-2009 at 10:01 PM. |
|
||||
|
Re: New HTPC
One question I have is why does the BTV showsqueeze "copy" function result in a severely fragmented file?
I ran some tests yesterday trying to figure this out. I did a test record of a one hour digital show (about 5 GB) I had a completely blank freshly formatted hard drive (250 GB) and I set BTV' ShowSqueeze to "copy" the file to that new hard drive. The result was the file as written to the new drive was very badly fragmented. Huh? So I re-formatted the storage drive ... nice clean and empty. Then did a simple DOS file copy of the recorded BTV drive from it's original hard drive to the new freshly formatted 2nd drive. The result .. NO fragmentation. The old fashion manual file "copy" command just writes the file to the empty drive in one long uninterrupted sequential writing. Trying to do the same thing with the BTV "copy" puts the file all over the disk. What's up with that? I think the ShowSqueeze file "copy" is not doing a system based "copy" per se. I could understand a file being written and getting fragmented if the drive had multiple other files and the free space was somewhat fragmented to begin with. But why does the BTV process not write sequentially when there was no fragmentation or files at all on the destination drive?
__________________
Rich A BTV Beta Tester. 4.x.x XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote. |
|
||||
|
Re: New HTPC
hey rich,
i know this is a little off topic but i wanted to know about your separate drive you use as a swap file. i have been looking around on the web and found people saying a whole bunch of different things. some people say that you should have 2.5X the amount of ram as your page file and others say thats a bad idea. some people also say it should be on a usb stick or CF drive....i just wanted to know what you know about this, since you sure do look (and sound) wise!
__________________
BTV Server 50" 1080i Monitor AMD Phenom II X4 920 Mobo: Gigabyte MA770-UD3 4 GB DDR2 @ 1066mhz Shows WD 250GB x2 RAID 0, OS WD 250GB NVidia 9800 GTX OC HVR 1600, PVR 500, HVR 2250 X 2 3 QAM, 4 Analogue, 1 Digital STB HD PVR (Pace DVR Box) Harmony 550 - Firefly Mini Slingbox XP (SP3) Media Server Cooler Master CM Stacker AMD 64 X2 5200 8GB DDR2 Nvidia 9800 GTX HVR 1800 10TB Storage WIN 7 |
|
|||
|
Re: New HTPC
Quote:
Requirements: Here Rich, time to open a ticket with SS. Blaze, the page file is generally important if you're low on memory. Otherwise there's not much of a reason to have a large Page file. It used to be 1.5 times your memory, but again unless you're running out of memory much at all, going larger is just a waste.
__________________
BTV Server : 4.9.2 Gigabyte eg45m-ds2h e8400, EVGA 9500, 8gb, Win 2k3 Ent w/mxd Raid 0/1 2x500, Raid 1 2x1.5T, 2xHDHR, Gyration rem, crappy 51" Rear Proj BTV Server : 4.9.2 Intel D945PVS, 3.0ghz XPMCE, MCE 500, HVR1600, 2gb, 2x500gb, EVGA 7600gt, Antec 430 TPT PSU, Firefly, SVid to AOC 32" LCD BTV Link : 4.9.2 Gigabyte P35c-DS3R e6750, ATI 3850, 2gb BTV Link : 4.9.2 Gigabyte P4 2.93ghz Cele, ATI 800, 1gb BTV Link : 4.9.2 Gigabyte 73PVM-S2H e4500, On Board 7100 w/HDMI, 2gb Love Gigabyte! |
|
|||
|
Re: New HTPC
Quote:
__________________
BTV 4.8.2 | Community Web Admin | PVR-150, Theater 550 PCIe | X1600 Pro w/ Cat 9.3 | RCA to SDTV | Athlon 64 X2 4200+ | ECS nForce4-A939 | 1GB Dual Channel PC3200 | WinXPsp3 | .NET 3.5 | Hauppauge silver remote |
|
||||
|
Re: New HTPC
+1 for O&O for great visual picture of the data on the drive.
In Windoze, the best way to defrag a file is to use explorer to copy it to another location that has contiguous free space. No matter how many fragments there are, windows will read them in the correct order and write them sequentially to the new location. Even if you select multiple files at the same time, windoze moves them one at a time so the result is the same as if you move them one at a time. Rich is recording several shows at once and moving them as soon as they are finished. One would expect that BTV would move the shows one at a time like windows does, and produce fragment free copies on his storage drive. But maybe BTV somehow moves all of the shows at the same time resulting in fragmented files just like when recording multiple shows. IIRC, showsqueeze can utilize multiple cores (ie do 2, 3 or 4, simultaneously - depending on # of cores) so using showsqueeze in copy mode probably utilizes all the cores and copies them simultaneously rather than sequentially. The other thing that is an issue is "How fragmented is fragmented". There is file fragmentation, free space fragmentation, folder fragmentation and disk fragmentation and getting a handle on what each means is difficult. All of the various disk software gives you a number like % fragmented, but what does it really mean? I'm pretty sure that O&O defines a file broken into 2 or more fragments as fragmented. I recently copied a system image (15 GB) to a 0% (according to 0&0) fragmented drive. The result was that the image was split into 3 chunks and when I ran a report, O&O showed the drive as 40% fragmented because a single large file was split into 3 pieces. Even if it were in 3000 pieces, each piece would be 5 MB (the size of an MP3 file). So What? Even if BTV HD recordings files have 10,000 fragments there willnot be a performance issue. BB Edit attach screen shot
__________________
HTPC#1 AMD 4850e, GAMA78G ATI 4670(lite gaming), Antec NSK2480, Motorola HD STB, PVR 150, Firefly - firewire tuning, VGA to 42" Samsung Plasma HTPC#2 AMD BE2350-45W, Asus M2AVM-HDMI mobo - onboard x1250, VGA to 27" LCD, Firefly FAMILY ROOM Motorola 6416 HD PVR, Linkplayer2 network media player, both by component to 42" LG Plasma Last edited by Bigbird999; 04-15-2009 at 10:58 AM. |
|
||||
|
Re: New HTPC
Quote:
Using a windows "copy" or "move" results in a continuously intact file at the destination. Using BTV's Showsqueeze "copy" feature results in each 5 GB file being fragmented into 4 to 6 parts. And that is even when the file is being copied to a freshly formatted drive with NO fragmentation. I don't have a clue about those "expansion gaps" Never heard of that. Besides, why would those "expansion gaps" only affect BTV files and not a normal windows "copy or move" command? The drive of interest is the "Unsorted Shows E" drive. That drive is almost always zero percent fragmented any time I check it. Yes I can (and have) examined the fragmented files and drive sectors etc. in detail. The below drive info was as of 4:15 PM The second drive info was as of 11:15 PM on the same day after a few shows had finished at 11:00 PM.
__________________
Rich A BTV Beta Tester. 4.x.x XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote. Last edited by Rich A; 04-15-2009 at 09:33 PM. |
|
||||
|
Re: New HTPC
Quote:
The fragmented files in my case are large. 5 GB on average. So if just one is fragmented into 6 fragments that over-all space being used would be a higher percentage as opposed to say a dozen 1 mb fragmented files. As far as Smartchapter and ShowSqueeze are concerned both seem to be able to use multiple processors. I only have a dual core, but during my testing, I sat down and watched a one hour HD show. During that time two other shows finished recording and within a few seconds they were copied to their final destination. And because smartchapters are disabled (otherwize they run before the show is moved which defeats all the advantages for moving the shows out of the recording drive) I paused my viewing and started a smart chapter generation on two 1080 digital hd shows. Normally a one hour digital show takes my new pc about 50 minutes to fully generate the chapter points. Using dual cores at the same time smartchapter finished both in 70 minutes. Now I'm curious to see what the quad core will do. I'm now positive that anyone can improve performance by using one drive dedicated for capture only and then moving the shows to another physical drive when done. Last night while watching a recorded show, smart skip was doing two other shows that were already moved. Oh and I had 2 other shows being recorded too. I just can't tell you how much better playback is. The recording drive is always empty Nothing other than recording goes on the recording drive When all recordings are finished they are immediately moved off the recording drive. There are only two issues. When BTV is writing a show to the disc, it is always fragmented in 4 to 6 parts. I have to do smartchapters manually after the shows were moved. I cannot change the preferred order of the post process stuff so that smartchapters is done last. Other than that, just the way it is now .. it's working wonderfully. Oh and the old HTPC was averaging 240 watts .. that would be at the UPS AC input which ran the PC, external drive box, and various other cable amps etc. The new setup is now at 180 watts. Yay, I've already convinced my wife that with all the money I'm saving I should buy a better projector! Or maybe more hard drives?
__________________
Rich A BTV Beta Tester. 4.x.x XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote. Last edited by Rich A; 04-16-2009 at 06:44 PM. |
|
||||
|
Re: New HTPC
Lots of great info here, thanks, Rich. I've enabled 1 smartchapter process in the past to run while other recordings were going on, and we always get some skipping on the Link system while watching something else. I think I'll try your method and see how it works.
Try using comskip instead of smartchapters. You can add it to your batch file where you want it, and it works very well. I get better results with it than I do with smartchapters. It's very easy to test manually if you want to. The settings take just a couple of tweaks for BTV, then drag the recording onto the .exe and it will run.
__________________
SERVER BTV 4.9.2, Phenom 9500, Biostar 790GX M/B, 2GB DDR2, 3.0TB, XP Pro SP2, Catalyst 9.3, ATI Remote Wonder, 2x HDHR, 2x HD-PVR HTPC BTV 4.9.2, Athlon X2 5050e, Asus 780G M/B, 2GB DDR2, XP Pro SP2, ATI HD2600XT, Catalyst 8.5, MCE remotes LINK1 BTV 4.9.2, Celeron 430 @ 2.0GHz, MSI G31 M/B, 2GB DDR2, XP Pro SP3, ATI HD2400XT, Catalyst 8.5, Firefly remote LINK2 BTV 4.9.2, Acer Aspire Revo AR1600, 1GB DDR2, XP Pro SP3, MCE remotes |
|
||||
|
Re: New HTPC
How does it work? Does it scan the folder(s) for new shows to work on?
__________________
Rich A BTV Beta Tester. 4.x.x XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote. |
|
||||
|
Re: New HTPC
No, comskip is a command line program that scans the file you tell it to and produces the chapter file. There is a gui interface but in this context it's best to run it from your batch file. There's a huge thread on Commercial Detection with a lot of batch file examples but here is my simple one that simply deletes unneeded files and runs comskip. This is the post processing batch file.
@ECHO OFF You could put your file copy in there too, although you would have to do some trickery to figure out which folder to put it in. One downside is that a command window will pop up on the server while this is running, but there are a couple of ways to fix that. I downloaded a free batch file compiler and compiled this into a .exe file which solved the popup problem. Edit: This post has the changes you need to make to the comskip settings file. I use these for all my recordings and it works well.
__________________
SERVER BTV 4.9.2, Phenom 9500, Biostar 790GX M/B, 2GB DDR2, 3.0TB, XP Pro SP2, Catalyst 9.3, ATI Remote Wonder, 2x HDHR, 2x HD-PVR HTPC BTV 4.9.2, Athlon X2 5050e, Asus 780G M/B, 2GB DDR2, XP Pro SP2, ATI HD2600XT, Catalyst 8.5, MCE remotes LINK1 BTV 4.9.2, Celeron 430 @ 2.0GHz, MSI G31 M/B, 2GB DDR2, XP Pro SP3, ATI HD2400XT, Catalyst 8.5, Firefly remote LINK2 BTV 4.9.2, Acer Aspire Revo AR1600, 1GB DDR2, XP Pro SP3, MCE remotes Last edited by Zogg; 04-17-2009 at 07:47 AM. |
|
||||
|
Re: New HTPC
Thanks Z ... But I don't think this will work in my setup. If I understand the script, you are chapterizing (my new word ha ha) the BTV show in a specific folder.
And my shows are spread over multiple drives and folders. I think it's the same problem as you alluded to about moving the files with a script. There is no way to determine which file gets moved to which drive and folder. The BTV ShowSqueeze Copy Option does this just fine. Remember my setup results in a clean zero fragmented recording drive. I don't want to do any thing to the recorded drive except move the files to their proper end destination. If I have Comskip do it's thing while the show resides on the main recording drive, then I'm kinda negating the whole purpose of moving the show. And BTV's SmartChapter always worked very well for me, so I might as well use that .. which ends up with the whole thing working like it used to. Besides, the BTV SmartChapter generation is "multi-core" aware. And IF I could make it work (after moving the file) I could run multiple SC processes at the same time.
__________________
Rich A BTV Beta Tester. 4.x.x XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote. |
|
||||
|
Re: New HTPC
Yeah, that's why I said you'd have to do some batch file trickery to get the recording into your category folder.
But you've mentioned 2 problems, ShowSqueeze copy not giving you a defragmented file, and then having to manually do the SmartChaptering, so to fully automate this then you might have to resort to a complex batch file. If so then comskip is a good bet because it's free, works well, and can be called from a batch file. Just something to think about. For me, I don't categorize the recordings, we just pull them up by series name in the viewscape. So I think I can record to a temporary drive, then when done have the custom post processing script move the file to the storage drive and then kick off comskip. The main reason I'm using comskip is that it works well on the HDPVR recordings, unlike SmartChapters, but I think it's more accurate on .TP and .MPG files as well. Whatever you do, I'm glad you got the new box working well. Cheers!
__________________
SERVER BTV 4.9.2, Phenom 9500, Biostar 790GX M/B, 2GB DDR2, 3.0TB, XP Pro SP2, Catalyst 9.3, ATI Remote Wonder, 2x HDHR, 2x HD-PVR HTPC BTV 4.9.2, Athlon X2 5050e, Asus 780G M/B, 2GB DDR2, XP Pro SP2, ATI HD2600XT, Catalyst 8.5, MCE remotes LINK1 BTV 4.9.2, Celeron 430 @ 2.0GHz, MSI G31 M/B, 2GB DDR2, XP Pro SP3, ATI HD2400XT, Catalyst 8.5, Firefly remote LINK2 BTV 4.9.2, Acer Aspire Revo AR1600, 1GB DDR2, XP Pro SP3, MCE remotes |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| your new HTPC... | blaze818 | Home Theater PC Discussion | 30 | 04-10-2009 07:30 AM |
| Hd, Htpc, Btv...help | DReborn | Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum | 10 | 07-25-2005 03:27 PM |
| My new HTPC | chasw98 | SnapStream Discussion | 4 | 02-27-2005 10:52 PM |
| Want to get into HTPC with BTV | grandpa | Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum | 3 | 12-12-2004 10:31 AM |
| HTPC News guide on building an HTPC for under $1000 | jmcclain | SnapStream Discussion | 0 | 03-15-2004 10:15 AM |