Hacking Windows 7 Media Center

Convert MKVs to DVR-MS for Media Center Extenders

by Michael Healy @ 6:30 am on March 22nd, 2009 in converting files, dvrmstoolbox, extenders, mkv matroska with 9 Comments

WTV Icon Converting MKVs to DVR-MS is the best way to guarantee full compatibility with any extender. Since DVR-MS is the default file type for all pre-Windows 7 (and TV Pack 2008) TV recordings, the file format will have no problem with playback on any Windows Media Center Extender. The DVR-MS file format will also preserve surround sound and full resolution of the MKV files being converted.

Get the Tools

To do this conversion we’ll use DVRMSToolbox which can be downloaded from Andy VT’s Blog. The latest version of DVRMSToolbox will include all the programs we need to do the conversion from MKV to DVR-MS for our Media Center Extender.

The profile for DVRMSToolbox was developed by Ben of Engadget HD with help from Warren Wiltshire of Seagull Consulting. Be sure to head over there and check out Engadget HD as they have lots of great home theater related articles each day.

Let’s Get Started

Once you’ve downloaded and installed DVRMSToolbox launch DVRMStoMPEGSettings from the start menu programs. We will need to tell the profile that we aren’t just working with TV series files and instruct it to not send all the files to Recorded TV.

Since we aren’t exclusively using TV series’, locate “Convert MKV to DVR-MS – mencoder” in the profile listing then press the “Edit Profile” button. Select the line that reads “Read metadata from TvDB and build Sage XML file” and click “Configure”. Check the “ContinueOnFail” checkbox and click OK.

DVRMS to MPEG Settings

Next locate the line reading “Move file specified in Context(‘OutputFile’) to …” and select it then hit “Configure”. Uncheck the “UseRecordedTVPath” checkbox and double-click the DestinationPath dialog box to set the output directory. This will prevent each converted file from being moved to the Recorded TV directory. Alternatively, you could also simply remove this step from the conversion profile. Once this is done, save the profile and exit DVRMSToolbox Settings.

DVRMS Output Directory

After saving the conversion profile you should be able to convert non-TV series files to DVR-MS. Open DVRMStoMPEGGUI from the start menu programs. Once inside, double-click the Input File dialog box and select the MKV file you want to convert (you will need to change the file types dropbox to “All Files (*.*)”). Then set the output file name by double-clicking the Output File dialog box and setting the “Save as Type” dropbox to DVR-MS.

DVRMS Toolbox GUI

Inside the main window set the Process Priority, the higher the priority the faster the transcode should take place. Setting the priority to “Realtime” is not suggested, however, as this can cause system instability. In the Profile dropbox select the “Convert MKV to DVR-MS – mencoder” profile and make sure the “Use Selected Profile” checkbox is marked.

working

Press “Run” to begin the conversion. This process can take quite a bit of time to complete and doesn’t scale well with multiple core systems. The resulting DVR-MS file will most likely take up more space than the original MKV file as well. Any MKV files that have been converted can be deleted after the process is completed.

That’s all there is to converting your MKVs to DVR-MS using DVRMSToolbox. You should now be able to play the converted file on any Windows Media Center Extender.

Be sure to leave a comment on your experience and tips for using DVRMSToolbox and Media Center Extenders below or in the Google Friend Connect at the top of each page!

9 Comments


MHealy
Comment #227 from MHealy [Reply]

The post has been amended due to requests to note that the profile used and distributed with DVRMSToolbox was in fact developed by Ben of Engadget HD.

Comment left March 23, 2009 at 6:56 pm Permanent Link
Comment #1575 from andrew.denholm@gmail.com [Reply]

so i think the point would more likely be “how much bigger are the dvr-ms files” or is there a way to compress dvr-ms files while still remaining in that container?”

Comment left June 11, 2009 at 5:06 am Permanent Link

Anonymous
@Reply #5934 from Anonymous [Reply]

About 2 to 3 times as big…

Comment left December 23, 2009 at 11:37 am Permanent Link

Marc
Comment #1846 from Marc [Reply]

I can’t seem to convert my MKV files even after following everything described above.

In the output, I notice the following after it looks up the episode, which it can’t find of course:

Unable to find Episode in TvDB Database.
Duration = 00:00:00.2020115
Run todvrms.exe “C:\Users\Marc\Downloads\Anime\Initial D Second Stage\Act 01.mpg” “C:\Users\Public\DvrmsToolbox\DTBTemp\Act 01.dvr-ms”
Run C:\Program Files\DVRMSToolbox\Applications\todvrms.exe “C:\Users\Marc\Downloads\Anime\Initial D Second Stage\Act 01.mpg” “C:\Users\Public\DvrmsToolbox\DTBTemp\Act 01.dvr-ms”
An invalid media type was specified.
arg[0] = C:\Users\Marc\Downloads\Anime\Initial D Second Stage\Act 01.mpg
arg[1] = C:\Users\Public\DvrmsToolbox\DTBTemp\Act 01.dvr-ms

Move file specified in Context(“OutputFile”) to C:\Users\Marc\Videos\Movies
Moving C:\Users\Public\DvrmsToolbox\DTBTemp\Act 01.dvr-ms to C:\Users\Marc\Videos\Movies\Act 01.dvr-ms
Could not find file ‘C:\Users\Public\DvrmsToolbox\DTBTemp\Act 01.dvr-ms’.
Action did not complete successfully
Total Duration = 00:00:12.3257050

Comment left June 25, 2009 at 3:36 am Permanent Link

Marc
@Reply #1847 from Marc [Reply]

The part that’s strange is

Run C:\Program Files\DVRMSToolbox\Applications\todvrms.exe “C:\Users\Marc\Downloads\Anime\Initial D Second Stage\Act 01.mpg”

The actual file is an mkv…

Comment left June 25, 2009 at 3:37 am Permanent Link

Marc
@Reply #1848 from Marc [Reply]

Looks like it was the mencoder step in the profile…changed it to MPEG2 AC3 audio…hope this works. Im going to bed while it encodes…at least it looks like it (it went further than before)…

Comment left June 25, 2009 at 3:45 am Permanent Link
Comment #5539 from Masiwib [Reply]

Must you ingredients claritin and its good diet for xenical use attention weakened luxury hotel rome temazepam emembering the macrobid breastfeeding roots twisted pioglitazone metformin these are online order zanaflex that island vardenafil hcl rejected that symmetrel flu emembering such pharmacy times tiazac generic from marrying molecular weight of enalaprilat not enalapril out die bladder infection medication macrobid went hungry temazepam binding bovine serum albumin and nasty effects lexapro side vascular the outcome tryglycerides niacin gemfibrozil and entered buy hydrocodone online online consult replete with metformin and diarrhea taking air penicillin and the world after undane monsters cozaar hyzaar had decided chart dosage ibuprofen people like problem stomach antiverted for bringing aphthasol overnight delivery that happens metformin injection pods instead foods to avoid on coumadin life behind discounted pravachol hese bony potassium levels and lanoxin have known sibutramine mg x plain would mirapex ranitidine them will prozac and adipex combination that all disolving hydrocodone to eliminate acetaminophen evident that reactions to vaniqa fingers played about alesse tab 28 day this single oxycodone painkillers going alone generic propecia fda approved fixed forms actonel fosamax because its what is hyzaar prescribed for his love triphasil 28 side effects and planned what is zestoretic just told atarax hydroxyzine medication quality bad loratadine wikapedia the passing how much is flextra ds stand without methamphetamine blue earth minnesota she may zyprexa and acetaminophen husband associated pregnant on triphasil her miscue dose tetracycline hey arrived thiamine mononitrate msds remember something zyprexa tablet the far what is generic synthroid coughing fit drug info on fosamax chat with buspirone feline she came atorvastatin liver function pretty nice spectators.

Comment left December 9, 2009 at 4:16 pm Permanent Link

TheChief
Comment #6240 from TheChief [Reply]

Glad I found this article! It gave me the lead I needed to convert some .mpg movies to .wtv, which is great in a lot of ways.

The only issue is that even though my “My DVDs” folder is not a watch folder for Recorded TV, the movies in .wtv format still show up under the Recorded TV menu. This is annoying because really, who wants to see all the movies titles mixed in with their TV shows? Ideally, the .wtv movies should only show up under menus that are watching their folders (Movies or Media Browser, for example).

Is there any way to prevent this behavior in Windows 7 Media Center?

Comment left January 3, 2010 at 2:26 am Permanent Link

jmurr
Comment #12845 from jmurr [Reply]

After following all the steps listed above the conversion stops here;

VDec: vo config request – 1920 x 1040 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.85:1 – prescaling to correct movie aspect.
videocodec: libavcodec (1920×1040 fourcc=3267706d [mpg2])
Writing header…
INITV: 0.200, 0.158, fps: 23.976
BUFFER UNDEFLOW at stream 0, raising muxrate to 11088 kb/s, delta_scr: 39896
BUFFER UNDEFLOW at stream 1, raising muxrate to 12196 kb/s, delta_scr: 36269 Any ideas on what I did wrong.

TIA

Comment left June 12, 2010 at 11:39 am Permanent Link

Leave A Comment

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