in

andy vt's tools & blog

Flexibility isn't free

This Blog

Syndication

andy vt's blog

I have a mpeg, now what?

Yesterday we discussed how to use DTB to make a file into a mpeg, today let's answer Galt's question.  This is a much easier process because we've already done the real work, and now it's really just extending the process with a few actions to turn it into a file that MC will see as a TV file.

DTB can't convert files to DVR-MS natively, but todvrms can.  DTB includes two actions for shelling command line applications, RunExternal and RunExternalPlus.  Either one will work for our purpose, but to make it easier lets use RunExternal.  Also, for completeness let's assume that the source file contains metadata (or in the case of Sage files, we can fake it), and we want to copy the metadata from the source file into our newly created DVR-MS file.

Select the profile we created yesterday in the settings tool and click "New Profile From".  Give it a good name and description, then add RunExternal, ChangeContextValue, and MigrateMetadata by clicking "Add". 

Configure ChangeContextValue to use the InputFile to create an new context value called DVRMSFile using FindRegex = "([^\\]+)\.(\w|-)+\z" (notice this is a little different than yesterday, I changed it a bit to work with extension that have a - in them.  If the file you want to work with has a - in it, for completness you'll want to change the first ChangeContextValue too) and ReplaceRegex = "$1.dvr-ms" (without the quotes).


MigrateMetadata to copy the metadata from InputFile to DVRMSFile (you will need to type this in).


And RunExternal to execute todvrms.exe (if it's in the install dir you don't need the complete path) passing %OutputFile% and %DVRMSFile% as arguments.

Then change the order of the actions at the end of the profile to be ChangeContextValue -> RunExternal -> MigrateMetadata.


No download this time, that would be too easy :)

Comments

 

galt said:

Wow, thanks man. It looks like I can seriously consider picking up the HD PVR (or two?) and Sage TV now that you've shown how I can re-wrap the output files back into DVR-MS for use in MC and the 360 extender. Finally it looks like I can jump into Comcast's digital package and happily drop the ugly analog TV that I've had to live with.

Right? I hate to ask for confirmation and more advice when you've already done so much to accommodate my inquiries but before I start to fund the transition I'd like to make sure I'm not heading down the wrong path.

I've seen references that the HD PVR still requires some serious hardware to encode the files, I have what was almost decent rig 2 years ago (2.13ghz core 2 duo, 2 gig ram, ATI Radeon X1300 Pro, win xp)... is it likely that a dual HD PVR tuner situation is possible on my machine without turning it into a turtle? Would an upgraded graphics card help or should I consider a dedicated TV box?

If it's not obvious, I'm in over my head with some of this but hanging on tight...

August 8, 2008 10:40 PM
 

babgvant said:

The HD PVR requires almost nothing to encode the files (it's all done in the box), playing them back is a completely different story.  If the application you're playing them back with supports HW decode (EVR is required in Vista) a modern video card is really all you need.

Transcoding all happens in software, so you should be fine handling one file at a time with your PC.  I don't know about two, certainly not in real time.

My HTPC is an AMD 4200X2, playback works fine in Sage even in software (they don't use EVR yet).  I've done some messing with converting the file while playing back and as long as the process doing the transcoding is set a lower priority I haven't been able to tell that it was happening.

August 8, 2008 11:02 PM
 

galt said:

Ok, think I got it. Thanks again Andy.

August 8, 2008 11:29 PM
@2008 andy vt
Powered by Community Server (Non-Commercial Edition), by Telligent Systems