Hacking Windows 7 Media Center

Using A USB Drive As Live TV Buffer

by Michael Healy @ 9:00 am on July 28th, 2009 in recording tv with 27 Comments and Permalink

Media Player Following up on our guides to increasing the length of your live TV buffer and using a RamDisk to store your buffer files, you might be interested in using a flash USB drive such as the Corsair Flash Voyager 16gb to store your buffer files. Advantages of using a USB drive to store the buffer include a speed increase in time-shifting you would get with a RamDisk but with a substantially lower investment than large amounts of system RAM or a Solid State Disk Drive.

Among one of the bigger advantages includes the simple fact that we no longer need special software to operate the new drive. Most USB drives come as plug-n-play devices. This means we can simply plug the device into an available USB port and be ready to go without even needing a basic format.

Using a thumb drive will also allow you to take advantage of ReadyDrive included in Windows7. The disadvantage of course is that a USB flash drive isn’t going to be quite as fast as using a RamDisk or Solid State Disk drive.

Once you’ve got your USB flash disk installed open up Windows Explorer and navigate to the default Recorded TV location. Unless you’ve changed your recording location in Windows 7 Media Center the default location can be found at C:\Users\Public\Recorded TV\. Inside this folder you’ll find a hidden folder named TempRec.

temprec

You’ll need to delete this hidden folder before continuing so we can create a symbolic link to our new flash drive location. Once you’ve deleted the TempRec folder open an elevated command prompt  by entering “cmd” into the start menu and pressing ctrl + shift + enter.

mklink

Next, change to your Recorded TV folder using “cd C:\Users\Recorded TV\”. Once inside your Recorded TV folder enter the following command to create our symbolic link, “mklink /d temprec D:\”. Replace D:\ with the drive letter of your USB flash drive.

Inside your Recorded TV folder you should now see a temprec folder that appears with a shortcut icon in the corner. This symbolic link should now  be sending all your live TV buffer files to your USB flash drive instead of the slower hard disk location.

That’s all there is to it! Enjoy your modest speed increase without the high cost of a RamDisk or Solid State Disk drive.

27 Comments


David
Comment #2319 from David [Reply]

Why use the symbolic link when you can just use the Record settings in WMC to move the record buffer to whatever drive letter you want.

Comment left July 28, 2009 at 7:28 pm with Permalink
@Reply #2320 from Michael Healy [Reply]

The settings don’t allow you to change the location of the buffer itself, only the directory of the stored recordings which contains the buffer files. Creating the symbolic link allows you to change the location of the buffer without changing the location of permanently stored recordings.

Comment left July 28, 2009 at 8:42 pm with Permalink

Shawn
@Reply #2321 from Shawn [Reply]

I found that when Media Center started again it just changed the registry setting back to the default TV Recording directory. A few other users found that problem when they tried to change it. (See the ramdisk creation article comments)

Comment left July 28, 2009 at 9:11 pm with Permalink
@Reply #2322 from Michael Healy [Reply]

Yeh, that’s why I changed it from the registry method to the symbolic link method. This method seems to work out for most everyone.

Comment left July 28, 2009 at 10:44 pm with Permalink

Anonymous
Comment #2323 from Anonymous [Reply]

What would be the minimum size of flash drive you would need for this to work ?

Comment left July 28, 2009 at 11:10 pm with Permalink

Terrik
Comment #2324 from Terrik [Reply]

What would be the minimum size flash drive you would need for this to work?

Comment left July 28, 2009 at 11:11 pm with Permalink

Scott
Comment #2346 from Scott [Reply]

This is an interesting concept. Would love to hear additional comments implementing it with the upcoming USB 3.0 “SuperSpeed” drives coming out soon…

Comment left July 29, 2009 at 8:30 pm with Permalink

edn4x4
Comment #2365 from edn4x4 [Reply]

Would this also work with an hdsd card (speed wise)?? My usb slots are full and i have a card reader that I can use.

Also is the live tv buffer in the same location as for recording tv? I usually record the news and timeshift at the same time it is recording.

Comment left July 30, 2009 at 12:23 pm with Permalink
@Reply #2368 from Michael Healy [Reply]

I believe if you timeshift a show you are recording it uses the recording file instead of the live TV buffer

Comment left July 30, 2009 at 2:46 pm with Permalink

TonyC
Comment #2402 from TonyC [Reply]

I have to ask…why. I know the read/write access will be a lot faster, but isn’t a standard SATA drive fast enough for Life TV (and buffering). Am I missing something? Does it make the GUI overlay faster? I get a little studder with the overlay.

Comment left July 31, 2009 at 12:30 pm with Permalink
@Reply #2419 from Michael Healy [Reply]

The speed increase is nice when fast forwarding, rewinding, and skipping back and forth through a show. It just provides a slightly smoother experience during time-shifting for those interested in the increased performance.

Comment left August 1, 2009 at 9:20 am with Permalink

Terrik
Comment #2517 from Terrik [Reply]

Would it not also save a lot of wear and tear on the hard drive because there is not as much writing to the hard drive?

Comment left August 5, 2009 at 11:50 am with Permalink
Comment #2519 from Johno [Reply]

when i try to do the mklink in command prompt it says ‘You do not have sufficient privilege to perform this operation’

Comment left August 5, 2009 at 12:07 pm with Permalink
Comment #2521 from Johno [Reply]

never mind i figured it out here.
Coming from XP MCE I wasn’t aware that i needed to run it as admin
http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

Comment left August 5, 2009 at 12:38 pm with Permalink
Comment #3089 from Siniša K [Reply]

Hello everyone!

I’ve set this up on my “8GB Corsair Voyager” and it seems to be working…

What makes me wonder is, but not that important…

Why, under My Computer, I can see free space change, but when I access it (USB drive) no files or folders are present (even though “Show hidden files and folders” option is enabled)?

Another thing is…

Since I already use Recorded TV Manager to move recorded files to dedicated folder/drive, can another symbolic link be created, one that would make WMC record TV to USB thumb drive (as well as buffer files), and then tell Recorded TV Manager to move those files to dedicated TV folder/drive?

Thanks! ;)

Comment left September 4, 2009 at 3:12 pm with Permalink
@Reply #3097 from Michael Healy [Reply]

Not sure why the temp files wouldnt appear in Explorer, they may be labeled as protected system files which are also hidden even after enabling hidden files and folders.

As long as you’ve got the space to record to the USB drive you could even just set the recording settings to the USB drive and then add the permanent location into the Recorded TV library management. Then of course have Recorded TV Manager move the files.

Comment left September 4, 2009 at 9:05 pm with Permalink
@Reply #3107 from Siniša K [Reply]

Thanks for the advice… ;)

I went on with it, but ran into one opsticle…

Trying to set USB drive as recording location returns following message:
“This folder can’t be included because it is on a removable device. <>”

I tried to change it via Start / Recorded TV (Right Click – Properties) / Library Tab / Include a Folder.

If I misinterpreted your advice, please advise, thank you. ;)

Comment left September 5, 2009 at 5:13 am with Permalink
@Reply #3110 from Michael Healy [Reply]

Hrm, I didn’t realize that Media Center would block you from setting a removable device as the recording location. In that case I would use a symbolic link instead. Set the recorded TV directory then use “mklink /d” followed by the original location and the destination.

Comment left September 5, 2009 at 8:07 am with Permalink

Mercanbobbo
Comment #3959 from Mercanbobbo [Reply]

I can’t delete the TemRec folder due to lack on privilege. Does anyone explain me how to gain privilege in order to delete the TempRec folder?

Comment left October 12, 2009 at 6:27 pm with Permalink

Ray
@Reply #4191 from Ray [Reply]

I’m having the same issue. I start up Explorer by Shift + Ctrl + Right Click + Run as Administrator, but it still tells me that I need permission from the Administrator to delete the folder.

Comment left October 23, 2009 at 9:31 pm with Permalink

Dave G
@Reply #4481 from Dave G [Reply]

Had the same issue with needing admin rights, set your pc to not run MCE at boot and reboot. With it not running you will be able to delete the hidden share.

Comment left November 2, 2009 at 8:58 am with Permalink
Comment #4894 from Sopur [Reply]

Hello!
I linked the temprec to an SSD – unfortunately, the HD with the recorded TV does not go to standby, even if it’s not used. Is this, because the “folder” appears to be on the HD? How could this be avoided?
Regards
Sopur

Comment left November 17, 2009 at 12:08 pm with Permalink

John
Comment #4999 from John [Reply]

Does it make any difference what format the USB memory stick is? Fat, FAT32, or NTSC? Would NTCS be a better bet for compatability, say for 8GB cards and larger?

Comment left November 21, 2009 at 6:39 am with Permalink

John
Comment #5004 from John [Reply]

Fantastic! Works perfect! Thanks to Michael for that one.

Love WMC, but hate the idea of burning a hole in my HDD!

Running 8GB Compact Flash card. Has used just over 4GB (so 8GB card needed). Decided to stick with FAT32, no problems so far.

Could increase / decrease the standard 40min buffer (see additional thred), but happy as it is.

Comment left November 21, 2009 at 1:31 pm with Permalink

John
Comment #5045 from John [Reply]

Just to let people know, if you change the recording default location within WMC, then with me, it also changes the ‘temprec’ file to the new destination (an external HDD in my case), but a new symbolic link placed in this folder will again send it back to your memory stick.

Using DVB in UK (not HD) uses just under 4GB, but still need 8GB to be big enough after format, unless you decrease the length of the TV buffer just a pinch so you can use 4GB.

Some people can’t delete temprec folder. This is because if you have accessed WMC or WMP then it will not grant you permission. Do a clean restart, then you will be able to delete without an issue.

Good luck!

Comment left November 23, 2009 at 10:12 am with Permalink

Brian
Comment #6080 from Brian [Reply]

Can this be done with a SD CARD instead of a USB thumb drive? I have a reader built in on my computer that doesn’t get used. It would be nice to stick a card in and forget about it.

Comment left December 28, 2009 at 12:12 pm with Permalink

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!