http://www.megaupload.com/?d=5UJ58HH3 (Version 11 is the latest version, please go to page 22 of this thread to see information about version 11: Here is the download link - http://babgvant.com/files/folders/misc/entry4003.aspx)
Above is a link to a version of MEncoder that can now read dvr-ms files natively. A really BIG thank you goes to John Donaghy for all the hours he spent looking through Hex dumps, reverse engineering the dvr-ms format. John put in a lot of time and deserves all the credit for making this happen.
We have this latest version working pretty well; however, I need to mention the demuxer options. First, you could use the standard MPlayer demuxer. However, we really struggled getting this thing debugged (we just couldn't get the AV to stay in sync). As a result, John approached some ffmpeg developers he knew and they added DVR-MS support to the ffmpeg demuxer. To use the ffmpeg demuxer in MPlayer/MEncoder you need to use the "-demuxer 35" switch. You could test both demuxer's, however, I highly recommend you use the ffmpeg demuxer.
My goal for this project is to get MEncoder working well with dvr-ms files, then compiling it as a dll and integrating it into Dtb. However, we could really use some help (this project is VERY time consuming). If you would like to help, below are some things we could really use help with.
1) First, please just try converting different dvr-ms samples you may have. We tested with our samples, however, there are so many variations that can happen (especially with HD shows), we could mostly use help just testing with a variety of shows to make sure we are reading the dvr-ms format correctly.
2) Setup ShowAnalyzer to output MPlayer files (EDL files) as well as the Dtb XML files. Then use the -edl switch when calling Mencoder to test the automatic skipping of commercials while encoding. This process should be more efficient than today's process. Today Dtb creates a new dvr-ms file without the commercials before encoding.
3) **this is resolved, see post below**Figure out the best command line options for encoding (I included the man page in the zip file). There are so many options we can't possible support all of them when we integrate this into Dtb. We really need to know what works best. Also, you will notice below that I'm using a different command line to encode wide screen shows. I'm sure there is a way to only use one command line for both aspect ratios; however, I haven't taken the time to figure it out. If someone spent the time to look into all of this, it would really help. Below are the two command lines I'm currently using.
4:3 aspect ratio shows:
MEncoder -demuxer 35 "D:\Recorded TV\%~n1.dvr-ms" -quiet -vf scale=320:240,pp=lb -ofps 29.97 -ovc xvid -xvidencopts fixed_quant=4 -oac mp3lame -lameopts abr:br=120 -o "D:\Xvid\%~n1.avi"
16:9 aspect ratio:
MEncoder -demuxer 35 "D:\Recorded TV\%~n1.dvr-ms" -quiet -vf scale=320:176,pp=lb -ofps 29.97 -ovc xvid -xvidencopts fixed_quant=4 -oac mp3lame -lameopts abr:br=120 -o "D:\Xvid\%~n1.avi"
4) If anyone has experience with AAC sound and H.264 video I would like to hear from you. MPlayer has the ability to encode with AAC/H.264 however I don't have any experience with this (and no way to test it) so I'm not sure if it's working. More than likely I didn't compile the AAC and H.264 libraries correctly (compiling Linux libraries in Windows is a pain). So, if someone can test AAC and H.264 please let me know. I'd like to work with you to make sure I have the libraries working correctly.
One final thing I wanted to mention. If you try to use this executable with Dtb, you will need to use the -quiet switch.
Thank you for any help you can provide.