SageTV SoftwareDiscussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

The topic of how to move recordings, imported media files, change recording directories, move SageTV to a new PC, etc. gets asked fairly frequently and has outgrown its old single-post FAQ entry, so here is a thread to explain only those things.

This thread is closed for discussion, so if you have questions about any of the items here, please start a new thread for your topic, or join an existing one.

Exit SageTV -- this means stopping the service if you are using service mode; if not using service mode, just exit the SageTV application.

Make a backup copy of wiz.bin, if you haven't already done so.

Move the recorded file to another recording directory or video import directory.

Restart SageTV.

Check to see if the SageTV Recordings menu still lists the recording and it can be played.

NOTE: For simple file moving, the original recording directory's drive must still be visible to SageTV after moving the files. (Not the video recording directory itself; just the drive.) If the drive has been removed or cannot be accessed by SageTV, SageTV will not acknowledge that the files have been moved. It won't delete the files from their new location, but it also won't recognize where they are. If the drive is no longer accessible, see the Advanced Method, below.

For various reasons, there are situations where moving a file like this will result in SageTV losing track of the recording. If this happens, exit SageTV, restore your backup copy of wiz.bin and use the Advanced Method, below.

The Advanced Method (for SageTV version 6.3.9 and later)

(This method can also be used when moving imported media files, except for DVDs.)

When you start this advanced procedure you should be using a database for SageTV (wiz.bin) from BEFORE the paths of the files have changed.

Follow these steps:

If SageTV is running, exit it -- this means stopping the service if you are using service mode; if not using service mode, just exit the SageTV application.

Before you start SageTV with the files at their new paths; you MUST set the following property in the Sage.properties file:advanced_video_file_recovery=true

Move the recorded file(s) to another recording directory or video import directory.

Then just start SageTV and it will automatically repair all of the recorded file path information in your database.

Check the SageTV Recordings menu to make sure the recordings are still listed and play properly.

Once you have verified that you can access the files at the new locations in SageTV; exit SageTV and then edit the Sage.properties file back to:advanced_video_file_recovery=false
(This property should not be left as true once this process is complete.)

Restart SageTV.

The advanced method for moving a recording should work in most cases. If it doesn't, check the special considerations, below.

Special Considerations and Additional Notes

Matching files based on filename: advanced_video_file_recovery, for SageTV version 6.3.9 and later

This is the property used for the Advanced Method, above.

As of version 6.3.9, the new advanced_video_file_recovery property can be used when moving recordings or imported media, except for DVDs. When set to true, this property causes SageTV to try to match a newly found file in a recording or import directory with an existing entry in the database whose file no longer exists or is on an inaccessible drive. The match is done by comparing the exact filename, including extension but w/o the path, against existing recordings or imported file entries in the database. If a match is found, the file is associated with that entry. If no match is found, then an airing ID match can be tried for a recording file, or else the file will become a new import. This is the preferred method of moving recording files if simply moving the file doesn't work, because there should be no need to worry about whether airing IDs have changed or whether old paths are still accessible to SageTV.

Set this property back to false when you do not need to use it to prevent unnecessary overhead from trying to do matches.

If SageTV finds that a file for a database entry does not exist and no new files match it, then that file will be removed from the database and no new files can match using this process in the future. To reconnect a recording file after that, an airing ID match will need to be used.

For imported files: if there are multiple files with the same name, the files may not match the data that you intend, so the best thing to do is to try to use unique filenames.

Matching recordings based on Airing ID: repair_mismatched_media_filenames, for SageTV version 6.2 and later

Note: normally, the Advanced Method of moving files should work. If it doesn't work for some reason, or you are using a version from before that property was added, then you can try matching Airing IDs. Before moving the files, you should consider the following regarding those airing IDs:

All recordings have an ID number as part of the filename. When a file is found in a new location, SageTV uses this number to try to match the file to its detailed airing info in the database. There are a couple ways for the ID number on the filename to end up no longer matching the airing ID for that show in the database. When this happens, the existing recordings that have not been moved will still match up to their airing info, but the ID number on the filename may no longer match its airing ID, so if the file gets moved to a new location, SageTV may be unable to match it to its airing info. Version 6.2 now has a process that can repair this ID connection:

Shut down SageTV completely and make backup copies of your wiz.bin database and sage.properties settings.

Edit sage.properties and set this property:repair_mismatched_media_filenames=true

Restart SageTV, force an EPG update and let the EPG update process complete. Once it finishes, the filenames will be renamed, if needed, so the IDs on the files will match the airing IDs for those recordings in the database and that info will be saved in wiz.bin.

Edit sage.properties to reset this property:repair_mismatched_media_filenames=false
(This property should not be left as true once this process is complete.)

You should now be able to simply move the recordings to their new locations and restart SageTV.

Restoring Recordings based on Airing ID

Sometimes, you may have a recorded file that is no longer listed in SageTV's list of recordings. (Maybe the file has been moved before the Airing ID could be repaired, see above.) If the recorded show's details are still part of the wiz.bin database file you are using, then it may be possible to add the airing's ID to the filename and have SageTV recognize it.

Note: to find the Airing ID for a show, try using nielm's Webserver to look up the show details, where it lists the Airing ID.

To try using the Airing ID to restore a recording:

Exit SageTV.

Rename the video file, adding the Airing ID after the base filename, but before the .extension. Copy or move the file to a recording or import directory.

Moving imported media is similar to moving recordings, with the following considerations:

If there is no metadata associated with the media file, then it can be moved to any import directory w/o consideration of its metadata. Use the Simple Method to move the imported file.

If the media file contains internal metadata tags or has an accompanying .properties file with its metadata information, the file can be imported by SageTV from any location and its metadata can be regenerated as part of the import process. Use the Simple Method to move the imported file.

If the media file has custom metadata that can not be automatically regenerated as part of the import process, then care should be taken to preserve the link between the file and its metadata. Use the Advanced Method to move the imported file.

The Simple Method

If the media file has no metadata or its metadata can be regenerated automatically from its internal tags or <filename.ext>.properties metadata file, then the easiest way to move an imported media file is to:

Move the file to another import directory for its media type.

Use the Refresh Imported Media option in the imported media browsers or from the Setup menu.

The Advanced Method (for SageTV version 6.3.9 and later)

Some imported media files have custom metadata -- such as a saved downloaded media file from an online video/audio feed or files whose metadata has been changed by a customization. For these files, the same Advanced Method can be used as described for recordings, above, using the advanced_video_file_recovery property.

Notes:

Imported hard drive based DVDs are not included in this advanced method.

Imported files should have unique names -- if there are multiple files with the same name, the files may not match the data that you intend.

To change an existing Video Recording Directory using a "drive:\path" style name to one using the UNC "\\computer\path" style, or vice versa, w/o losing your recordings, do the following:

From the Main Menu, simply go to Setup -> Detailed Setup -> General -> Video Recording Directories and select Modify. Choose the directory you wish to change, then select "Change Directory Path - Specify". In the resulting dialog, enter the UNC path to the same directory that was previously named here.

Alternatively, you may wish to use a mapped network drive rather than UNC. In that case, map the network share directory to the same drive letter on the SageTV server PC and all SageTVClient computers. Then, instead of specifying the UNC path, change the existing video directory to your "Mapped_Drive:\path" instead. Note: Mapped drives will not be accessible from the SageTV service, so do not use them if you run SageTV using service mode.

To change back to "drive:\path" style, just change the UNC path or mapped drive letter path back to the local path.

Why would anyone bother using UNC paths or mapped drive letters? Some of the utilities being offered by other users require being able to access the video recording directory where a recording is stored as if it were a local directory when the utility is used on a client. So, if you specify the server's local directory "E:\Videos" as a video directory, the client will expect to see any files for the utility in its own local "E:\Videos" directory. By using UNC or mapped drives, this problem is resolved.

Note: While new recordings will use the new path, SageTV will still see existing recordings using their original video directory path instead of the new UNC path or mapped drive letter. In order to have SageTV see the existing recordings in a new location, see the next post...

Essentially, this is just an extended version of moving a recording file. When done, the recording directory path can be changed to a different path on the same drive or even to another hard drive and all the recordings will be referenced at the name of the new recording directory instead of their original locations.

To do this:

Create the new directory where you wish to store your recordings and add it as a Video Recording Directory in SageTV. It will be an empty directory at this point.

After all files have been moved successfully: if the original location is empty, you can remove it from the list of Video Directories and then delete it from the disk. Once the recordings are recognized by SageTV in the new location (check the Recording Details screen to see where SageTV believes a file is located), you can also remove the drive, if that is part of the reorganization.

This is essentially an extremely extended version of moving a recording file.

advanced_video_file_recovery method, for SageTV version 6.3.9 and later

Install and configure SageTV on the new computer.

Create the new locations to store recordings and add those Video Recording Directories to SageTV.

Exit SageTV completely on the new computer. (I don't mean just put it to sleep -- this means stopping the service if you are using service mode; if not using service mode, just exit the SageTV application.)

Copy all your existing recordings to the desired Video Recording Directory locations on the new computer. (If the old network recording path will be visible to the new PC, move the recordings on the old PC to a new location or simply rename the directory they are in.)

Copy wiz.bin from the old computer, replacing the one on the new computer. (Found in the SageTV directory.) Do NOT copy sage.properties from the old computer.

Before you start SageTV with the files at their new paths on the new computer; set the following property in the Sage.properties file:advanced_video_file_recovery=true

Restart SageTV on the new computer.

Check the SageTV Recordings menu to make sure the recordings are listed and play properly.

Once you have verified that you can access the files at the new locations in SageTV; you should exit SageTV and then edit the Sage.properties file back to:advanced_video_file_recovery=false
(This property should not be left as true once this process is complete.)

Restart SageTV.

Once you have confirmed that SageTV is working properly on the new computer, uninstall SageTV from the old computer. Do not delete your old configuration files until you have confirmed the new installation with all the old recordings is working correctly.

Older method, for SageTV versions prior to 6.3.9

Using the advanced_video_file_recovery property method, above, you should no longer need to worry about recreating the old paths from the old PC. However, if you are using a version prior to v6.3.9, that property will not be available, so you should try the following:

Important: Make a note of any drive letters used for Video Directory locations on the original computer.

On the old PC, if using SageTV v6.2 or later, use the repair_mismatched_media_filenames property, as described in this post. For versions prior to v6.2, ignore this step.

Note for UNC Video Directory paths: If you are getting rid of the old system completely, such that it will no longer be on the network, you must first change the video directories back to using a local drive letter style of naming. If SageTV does not have access to the file's original location, SageTV will not recognize the file in a new location. See the above questions of this thread and return to using local "drive:\path" style naming.

Install and configure SageTV on the new computer.

Create the new locations to store recordings and add those Video Recording Directories to SageTV.

Exit SageTV completely on the new computer. (I don't mean just put it to sleep -- this means stopping the service if you are using service mode; if not using service mode, just exit the SageTV application.)

Make sure the make_all_mediafiles_local property is set to true in the new PC's sage.properties file.

Copy all your existing recordings to the desired Video Recording Directory locations on the new computer. (If the old network recording path will be visible to the new PC, move the recordings on the old PC to a new location or simply rename the directory they are in.)

Copy wiz.bin from the old computer, replacing the one on the new computer. (Found in the SageTV directory.) Do NOT copy sage.properties from the old computer.

Important: Check the list of drive letters from the old computer. (The list you made in step 1.) Make sure those drive letters are available on the new computer. Note that those drives don't need any video recording directories; they simply need to exist. If they do not exist, just map a drive letter to some other drive. If it is a CD drive, put some data CD in the drive so that the letter will refer to an actual disk. When SageTV restarts, if it cannot access the drive or UNC path where a file was originally located, it will not recognize the file in its new location.

Restart SageTV on the new computer.

Check the SageTV Recordings menu to make sure the recordings are listed and play properly.

Restart SageTV.

Once you have confirmed that SageTV is working properly on the new computer, uninstall SageTV from the old computer. Do not delete your old configuration files until you have confirmed the new installation with all the old recordings is working correctly.

After a hard drive crash or some event that causes a drive to be no longer accessible by SageTV, SageTV may still list the recordings that were on that drive. These phantom recordings can be removed by letting SageTV pretend to see the drive at another location, or by simply using the 'delete' command on the recordings.

As noted in the above posts and some FAQs, SageTV must be able to see a recording's original location in order to determine that it is no longer there. If the drive letter no longer exists, then you could add a new drive and assign it the missing drive letter (or temporarily reassign some drive to that letter). When SageTV restarts, it should then note that the recordings are no longer on that disk and remove them from the list of recordings. If there isn't another drive to add, map a path to that drive letter (remember: service mode cannot access mapped drive letters). If the old recording directory used a UNC path, recreate the UNC path at another location. Once SageTV sees the empty drive and clears the old recordings, you can remove the temporary path.

If it turns out to be too much trouble to create the missing recording directory path, simply use the Delete command to get rid of entries whose files you know are no longer around. Be careful not to delete any real recordings, of course!

Another option: use the advanced_video_file_recovery property from this FAQ -- it should dump recordings for files that it can no longer see when using that property.