Edit DVR-MS Metadata
I was asked earlier this week if I knew of any tools that would let one easily edit the metadata associated with a DVR-MS file. Specifically, the person wanted to edit the title and description of a recorded show. There may very well be such a tool out there, but I'd never seen one, so I threw one together:
This tool is a pretty simple wrapper around the code from my Fun with DVR-MS article, specifically the DvrmsMetadataEditor class. It loads the metadata into a DataGrid, let's you edit existing metadata or add new metadata (doesn't let you delete right now), and then saves any additions or modifications back to the target file. Kind of handy, so I've made it available for download. I hope you find it useful. Of course, if it ends up destroying your DVR-MS files, blowing up your computer, or something bad like that, I take no responsibility. :)
-Steve
Comments
Anonymous
May 31, 2005
The comment has been removedAnonymous
May 31, 2005
The comment has been removedAnonymous
June 17, 2005
Tried using your program on a few files to change the Title Name field. This doesn't seem to work. The name is changed in the wrapper, but for some reason MCE still shows the old title...do I have to do something in MCE to refresh the file wrappers on recorded TV?Anonymous
June 17, 2005
Tim Moore reports a possible solution to your problem at http://thegreenbutton.com/community/shwmessage.aspx?forumid=26&messageid=109007, though I haven't tried this to see if it works. It has nothing to do with the metadata being stored correctly in the DVR-MS file... what the editor shows is what's there. Whether MCE uses a cached version of the data from somewhere else is a different story.Anonymous
July 08, 2005
Is there anyway I can change protected DVR-MS files that WMC has created so they can be burned to DVD through SONIC?Anonymous
July 14, 2005
I don't believe so.Anonymous
July 21, 2005
The download URL for the metadata editor does not work. Is it no longer available for download?Anonymous
July 21, 2005
Hmmm, I didn't take it down, and I'm able to access it now. It's possible there was a blip in network connectivity to the server or something like that. Try again, and please let me know if you're still having trouble.Anonymous
July 21, 2005
Looks like winisp.net was down for a while. It is up now and my download worked. Stephen, I am a Windows internals programmer (working on both usermode and kernelmode stuff), have done a lot of reverse engineering and poking under the hood. So I really appreciated your using SetWindowsHookEx when the existing MCE framework did not give you enough control (just something that I would have done - that or intercepted some API :) ). I also appreciated the abundance of comments in the code (if only all other MSDN samples were so well documented :( ). I am itching to mess around with my new Media Center and create add-ins to solve everyday problems I have. Your article and sample code was a GREAT starting point. Thanks for that.
By the way, I am looking for a programmatic way to control the IR emitter that my MCE PC uses to control my Dish Network satellite receiver (I want to be able to emit more than just Channel Up- Down and numbers). This is probably outside the scope of the MCE framework itself and I might have to write code to talk to the IR emitter myself. Or maybe MCE does have something for this. I know, I can read the MSDN Media Center SDK reference, but if can you point me in the right direction that would be hugely helpful.Anonymous
July 25, 2005
Glad you've found the articles useful! I've never tried to do what you're doing with the IR emitter, so unfortunately I don't have an answer for you. I'd suggest posting your question on one of the Media Center forums at www.thegreenbutton.com; hopefully someone there can help you out more. Best of luck, StephenAnonymous
September 24, 2005
Hello,
Let me start buy stating that I think this is a great program. I only have one problem with it. When I have the finished product and copy it to a DVD, it will not play on a stand alone player. When I try to convert it to an avi so it will. It will not let me. I don't care about the container, I just want it to play on the player. Is there anything you can do to help, maybe some coding. Thanks in advance.Anonymous
October 04, 2005
I have a dvr-ms related question I haven't been able to find an answer to. Is it possible to insert "chapter" markers into dvr-ms files? What I have in mind is something like the chapters you can set up when you're burning a DVD.
Would I use something like the SetMarker method in the WM API? Does the DVR-MS API have a similar call (if so, what)? Finally, would MCE honor those chapter marks and allow me to navigate around using them?
Thanks, PhredAnonymous
October 07, 2005
While there may be a way to set and access chapter-like markers, I've never tried, and I don't know of any way you could get MCE to make use of them even if you could. My suggestion to you would be to check out my position changer add-in, which lets you jump around in a DVR-MS file while viewing it by entering time codes on the remote control's number pad; it also lets you set bookmarks in videos so that you can later jump to them.
http://msdn.microsoft.com/library/en-us/dnxpmce/html/positionchangeraddin.aspAnonymous
November 08, 2005
Nice util!
Why is it that Media Center does not show program detail from a wmv file containing all the medata copied from a dvr-ms file.
dvr-ms metadata looks great in Media Center. Movies for example.
Am I not copying all the data to my WMV?Anonymous
November 11, 2005
I have a file that I recorded using media center. The "Is_Protected" and "Is_Trusted" fields are both FALSE. The "WM/WMRVContentProtected" is FALSE and "WM/WMRVContentProtectedPercent" is 0. I still cannot view this in WMP10. It plays just fine in Media Center. It is acting like a protected file but it isn't protected. Any thoughts? I have a screenshot of the DVR-MS Metadata if that would be helpful.Anonymous
November 11, 2005
Also, when I mouse over the file, amongst other things like type, title, duration, it displays Protected: No. Again, any thoughts would be helpful, or am I missing something when trying to detect protected vs. non-protected dvr-ms files.Anonymous
December 21, 2005
hi you can find a very good site to edit dvr ms files here:
http://powercompress.reviewsdotcom.comAnonymous
January 17, 2006
I don't have any problem in editing the DVR-MS files with your very handy utility, but when I go to burn them to a DVD Media Center gets to about 1% complete and then doesn't go any further. Any ideas?Anonymous
January 17, 2006
Glad you like the editing utility. If I remember correctly, this was a known issue with Sonic's DVD burning solution, but I unfortunately don't know if Sonic has resolved the problem in any fashion or published a workaround. You might be able to find more information over on thegreenbutton.com. Good luck.Anonymous
January 20, 2006
Does anyone know of an application that allows you to edit the commercials (or anything else for that matter) out of dvr-ms files?Anonymous
January 20, 2006
Several tools are available. I wrote a DVR-MS editor which you can download from my article at http://msdn.microsoft.com/library/en-us/dnxpmce/html/dvr-ms.asp. Scroll to the bottom of the article for a discussion of the tool's implementation, in the section titled "Editing DVR-MS Files". The source is available, too, if you want to tweak it.Anonymous
February 20, 2006
Dear Stephen,
I like the articles that you wrote on DVR-MS-files a lot and it inspires me to have some more fun. I wonder, do you have the source-code of the EditDvrmsMetadata.exe available, so I can use it for further exploration? Thanks in advance.
JuliusAnonymous
February 20, 2006
EditDvrmsMetadata is just a simple wrapper around around the DvrmsMetadata class, which is available with the article source code. The app simply retrieves all of the metadata and dumps it into a grid; when you go to save it back, it just retrieves the changed rows and again uses DvrmsMetadata to write back the changed values to the DVR-MS file.Anonymous
March 30, 2006
Very useful. At last I can see the metadata on non Media Center PC's.Anonymous
April 03, 2006
Nice app, great for what it does. What I was looking for was a little app or script to dump the Metadata for all my dvr-ms files into a CSV so I can import them into excel.
I didn't see an "extract" only in the code and I am not dev enough to try.
Any suggestions?Anonymous
April 04, 2006
The comment has been removedAnonymous
April 04, 2006
The comment has been removedAnonymous
April 04, 2006
I compiled it into a tool I've called DumpDvrmsMetadata and posted it to http://toub.members.winisp.net/code/DumpDvrmsMetadata.zip. Standard disclaimers apply: this is completely untested and unsupported, and if it blows up your computer, it's not my fault. Etc. The tool accepts the path to the dvr-ms file as the first argument, and it writes the metadata to stdout.
As far as getting a compiler, you should download Visual C# 2005 Express Edition: http://msdn.microsoft.com/vstudio/express/Anonymous
April 04, 2006
:-) Thank you, I downloaded both VP & C# with the SQL SP1 and a few of the web tools. Past time I sharpened the blade ... pun intended.
I will test the little app and give feedback.
Thanks again,
ChadAnonymous
May 01, 2006
The comment has been removedAnonymous
May 08, 2006
Does anyone know if you can copy a TV show off of a DVR receiver somehow and then convert it to an MP$ or windows media player file that you could load on your PC?Anonymous
May 29, 2006
The comment has been removedAnonymous
June 22, 2006
Can anyone give me some pointers as to how to use this to rename dvr-ms files based on the metadata - ie, i want the filename to be <title>:<subtitle>:<genre>.dvr-ms but I'm struggling with C# at the moment and am unable to extract the necessary info from a file to then rename.Anonymous
July 07, 2006
The comment has been removedAnonymous
July 07, 2006
The tool does accomplish its purpose, which is simply to allow the retrieval and modification of the metadata in the DVR-MS file. I've never tried getting MCE to report the modified data, as that was never my goal for the tool, though it might be possible, and others might have been successful in getting it to work for that purpose.
Recordings.xml on my machine is in C:Documents and SettingsAll UsersApplication DataMicrosofteHomeRecordings.
Hope that helps.Anonymous
July 18, 2006
All very interesting. I have a Sony PC running Media Centre 2004 with Sony's Click-to-DVD software. I can load any size recording, edit out commercials, break the program into multi-parts if it's huge and won't fit nicely on one DVD, burn the DVD, and watch it through just about any DVD player. Now we have a new HP Media Centre 2005 computer which came with the Sonic software. The remote control CD/DVD creator will, with a couple of clicks, directly move a DVR-MS file onto a DVD (no editing). But the Sonic MYDVD software pre-installed on this computer doesn't work at all and HP has no solution. Sonic won't take support calls on pre-installed software and their website doesn't really allow for determining whether they have a viable solution. However, comments on multiple forum sites say not. I'm going to investigate whether the Sony Click-to-DVD software is available for installation on the HP computer. Otherwise, I'll have to see if I can find a way to use tool listed on this blog. 15gb files are what I'm working with.Anonymous
July 21, 2006
The comment has been removedAnonymous
July 21, 2006
Cool. Thanks for putting those tools together.Anonymous
October 19, 2006
Neat tool. Has anyone figured out which data needs to be edited to get the various recordings of a show to all appear in the same "sort by title " heading? Or I am I mistaken in the assumption that the correction can be made in the Metadata?Anonymous
December 06, 2006
Hi, I need your help. Is there any way I can capture single frames from dvr-ms files and save them as jpg or bmp images? ThanksAnonymous
December 06, 2006
I'm assuming you mean programmatically? Sure. There are multiple ways this can be done. The easiest I've found is using WPF, with code similar to that at http://thewpfblog.com/?p=30 used to extract whatever frame you want from the video. You can then use WPF's support for saving images to save it out to whatever format you desire.Anonymous
December 11, 2006
What if you want the little picture icon that is associated with a DVR-MS file? I have a dvr-ms file that I edited then I saved it with what I thought was all the metadata but the icon is not there. Is there a tool that will copy the icon from one dvr-ms file to another?Anonymous
December 17, 2006
I wrote a tool that will do it, but I haven't found the time yet to clean it up. As soon as I do, hopefully soon, I'll post it.Anonymous
January 12, 2007
Has anyone figured out which data needs to be edited to get the various recordings of a show to all appear in the same "sort by title " heading? Or I am I mistaken in the assumption that the correction can be made in the Metadata? i.e like when a series is recorded?Anonymous
January 31, 2007
I believe the Metadata field that controls the way titles are grouped in Media Center is "WM/WMRVRequestID". Also, if you make a change to the Metadata title or other fields and those changes are not shown in Media Center, try changing field "WM/WMRVScheduleItemID". These fields are used in the file called "Recordings.xml" to save information about your recordings. This is also the file where your series settings are stored.Anonymous
February 11, 2007
I'm trying to find the MetaDataEdit.exe file in Windows Media Format SDK 9.5. However the current version seems to be 9.00.00.2980 and doesn't include the MetaDataEdit.exe needed. How do I find 9.5?Anonymous
April 05, 2007
PingBack from http://unmedia.unblog.fr/2007/04/05/manipuler-les-fichiers-dvr-ms-de-windows-media-center/Anonymous
April 14, 2007
Hey Stephen, I was wondering if I can ask you a few questions regarding metadata in dvr-ms files. I am working on deleting commercials out of dvr-ms files so I can keep them on my computer and save space. What I notice when i use a program called dvrcut is it loses the metadata tags. And without this it causes a lot of trouble since I can't in any detail what I recorded for the episode. Would you know how I could pass the data to dvrcut (i have the source it's also available on the internet) so it would be included when the dvr-ms file is cut and reattached with the frames adjusted to remove the commercials? Thank you for your help, CharlesAnonymous
April 14, 2007
Charles, sure. You can just use the DvrmsMetadataEditor class to read the metadata from the first file and write it to the second. If you look in the sample code from the Fun with DVR-MS article, you'll see that several of the apps do this; for example, the DvrmsEditor app that splices together pieces from other DVR-MS files takes the metadata from the first file and writes it onto the output file after it's been created.Anonymous
April 14, 2007
Thank you. I will check in to this now. However, I am not affluent in programming as I once was. Thank you, CharlesAnonymous
April 30, 2007
Is there a listing anywhere of all of the metadata tags, possible values of each and what the tags do? I'm having a real hard time finding any information about the individual tags. I ran across a list once but I can't seem to find it again. Thanks JimAnonymous
April 30, 2007
http://msdn2.microsoft.com/aa384495.aspxAnonymous
May 13, 2007
Stephen, One thing that I noticed is missing from media center is the ability to sort recorded TV shows by the original air date. It seems like it would be possible to do this with the metadata by setting the recorded date to the original air date. Have you heard of anything that's been created to do this? If not, do you take suggestions for future projects? ;-)Anonymous
May 13, 2007
To do that as a simple console app you run every now and then (easily scheduled through Task Scheduler to run periodically) should be very straightforward. You just loop through every .dvr-ms file and copy its WM/MediaOriginalBroadcastDateTime attribute (if it has one) to its WM/WMRVEncodeTime attribute. The only tricky part is that WMRVEncodeTime is a QWORD representing the equivalent FILETIME, so you'll need to convert from a string format like "2004-02-12T00:00:00Z" to a FILETIME value like 633086190017940000. Another option is to build in MCML an app that displays all recorded shows within MCE in order by their original recording date. That would be a bit more work, but you could make a very nice app out of it, and it wouldn't require any file modifications to the .dvr-ms files. -StephenAnonymous
June 08, 2007
Have you had a chance to post the program for inserting the icon into a dvr-ms?Anonymous
June 12, 2007
Is there anyway I can edit the duration field? Some DVR-MS files output by VideoReDo have incorrect durations and I'd like to be able to change these. I'm currently playing around with a hex editor but is there an easier way?Anonymous
June 12, 2007
Is there anyway I can edit the duration field? Some DVR-MS files output by VideoReDo have incorrect durations and I'd like to be able to change these. I'm currently playing around with a hex editor but is there an easier way?Anonymous
August 17, 2007
Hi Stephen, the link to your fun article in MSDN is not working anymore. Can post a current link please. Thanks, ThomasAnonymous
August 17, 2007
The article was unfortunately accidentally taken down. I've been trying to get it back up, and I'll post when it's available again.Anonymous
September 22, 2007
The article is now on my blog at: http://blogs.msdn.com/toub/archive/2007/09/22/fun-with-dvr-ms.aspxAnonymous
December 06, 2007
where can I get it? I don't see any download link.Anonymous
January 04, 2008
PingBack from http://actors.247blogging.info/?p=4362Anonymous
January 10, 2008
The comment has been removedAnonymous
January 27, 2008
Stephen, I tried out your program and it seemed to work well, but now the "balloon" that pops up when you mouse over a dvr-ms file no longer shows all the information it used to. Just the file type and size. Is there some default setting somewhere that defines what is displayed? Thanks. -KarlAnonymous
January 28, 2008
PingBack from http://onlydarksets.wordpress.com/2008/01/29/adjustmetadata/Anonymous
January 29, 2008
Is it possible to add parental control values to dvr-ms (that are unrated)? I have tried editing WM/ParentalRating but I am unsure if this is the correct entry to use or what values are acceptable. (have tried PG-14, PG-MA), but vista media center still plays the files (despite it being configured not to play anything over TV-G without a pin)Anonymous
February 05, 2008
PingBack from http://mymce.wordpress.com/2007/01/26/how-to-rename-a-manual-recording/Anonymous
February 27, 2008
The app looks pretty straightforward. Any idea how to get an image (like a dvd cover) to show up in the Media Center?Anonymous
February 28, 2008
Can the application be enhanced? Specifically, can it be modified so that the columns are dropdown comboxes, allowing text entry, but also offering suggested values? Would it also be possible to have it be able to import a dvdid.xml file?Anonymous
March 02, 2008
The comment has been removedAnonymous
April 16, 2008
PingBack from http://halle.dishtvnews.com/convertcopyprotecteddvrmsfiles.htmlAnonymous
May 23, 2008
PingBack from http://bjdraw.com/2008/05/23/skipping-commercials-with-dvrmstools-cablecard-edition/Anonymous
June 13, 2008
One thing to pay attention to, Vista users, is the file's permission settings. Make sure that all users have full rights to the file (Right click/Properties/Security/...)Anonymous
August 10, 2008
Any change it would be possible to use the new format .wtv files with this utility? At the moment it doesn't recognize the files. kind regards, .NicoAnonymous
October 06, 2008
http://www.dvr-msconverter.com can help you converte DVR-ms to avi, mpeg, wmv, mp4, mpg, etc.Anonymous
November 10, 2008
Now that Vista can deal quite easy with Metadata, no software is needed to change any properties of DVR-MS files, just right click on it, choose properties and go to the Details tab, there you will find a very big list of things you can change, i.e. Title, Subtitle, Episode Name, Artits, Year, TV Network, Channel Number, Station call Sign, Program Description, Rerun, HDTV content, directors, producers, writers, parental rating and on ...Anonymous
January 18, 2009
PingBack from http://www.keyongtech.com/2820227-managing-my-recordingsAnonymous
April 13, 2009
DVR MS Converter is good for me to slove the problemAnonymous
April 13, 2009
DVR MS Converter is good for me to slove the problemAnonymous
May 28, 2009
Is it possible to add metadata fields, for example season number and episode number? I assume the type would still be a stringAnonymous
November 21, 2009
Hi there, Not sure if anyone is still monitoring this forum, but I am simply trying to get a different name to appear for my files in VMC - at the moment they are all there as "Manual Recording". I have tried editing any field that looks like it could be title using your utility and/or the file properties in Vista but to no avail. Any ideas? Thanks RohanAnonymous
April 18, 2011
[b][url=www.movie-mac.com/.../how-to-import-tod-to-imovie-on-mac.html]Mac TOD to iMovie Converter[/url][/b] is perfect solution for you to import TOD to iMovie on Mac. It provides you a simple way to convert TOD to iMovie. Beside, with this TOD to iMovie Converter, converting TOD to other video formats like MP4, WMV, AVI, FLV etc is also allowed. With TOD to iMovie Converter, [b][url=www.movie-mac.com/.../how-to-import-tod-to-imovie-on-mac.html]import TOD to iMovie[/url][/b] is not a difficult problem any more.Anonymous
November 22, 2015
Is this tool still around? I can't seem to find an active link.