Log in

View Full Version : Recombine FilmShrink's m2DecPak with DGMPGDec?


berrinam
24th February 2006, 22:58
I've been looking around for OSS tools which allow dvds to be loaded into AviSynth without first ripping them. The best solution I have found so far is FilmShrink's m2DecPak. According to the author, this is based on an early version of DGMPGDec, with a few small modifications so that it can read from its 'VirtualFileMap' format. Since development of FilmShrink has just about stopped, and DGMPGDec is undoubtedly more advanced decoding-wise than m2DecPak, I'm wondering if anyone is interested in adding these modifications back into DGMPGDec, so that DGMPGDec can support direct input from a DVD.

As I see it so far, the modifications really only involve changing DGDecode.dll to support the VirtualFileMap format, which allows that file to specify where in the file the relevant stream is and also getting DGIndex to output Cell Index, Audio Index, Subpicture Index, VobSub subpicture raw data (? = index of track). So, for DVDs, the process would be:
DGIndex the entire VTS set which creates those files
Run some program like m2Rebuild, which parses the IFO file and the indexed files that DGIndex created, to create new index files relevant to the specified stream
Load these new index files into AviSynth via DGDecode

If anyone is interested, the m2DecPak SDK and source can be gotten from http://filmshrink.sourceforge.net/dl.html