DGMPGDec is an MPEG decoder suite. It is used to decode MPEG1 or MPEG2 streams from such sources as DVD VOBs, captured transport streams, *.mpg/*.m2v/*.pva files, etc. Perhaps its most common use is in decoding VOBs from DVDs.
What Do I Need to Use It?
You need the DGMPGDec package and Avisynth. First get Avisynth 2.5 (or better) and install it:
Avisynth
Download latest install package from the homepage
DGMPGDec package
Homepage: http://neuron2.net/dgmpgdec/dgmpgdec.html
Version 1.5.8 is the latest full released version. Note that binaries are no longer provided due to potential MPEGLA licensing liabilities. You'll have to build it yourself, or find binaries elsewhere. One place where the binaries can be found is: http://hank315.nl/.
You are going to use DGIndex.exe and DGDecode.dll from the DGMPGDec package, so extract them from the ZIP file and put them together in a directory.
DVD VOB file
DVD video file is with extension .vob. You are going to demux the Video and Audio stream contain in the VOB file.
I will use the Dobly Digital opening .vob which exist in many DVD as an example of this exercise.
OK. Now What?
Fire up DGIndex. Using File/Open, open your VOB. You should see the video. Now select Audio/Output Method/Demux All Tracks. That will cause your audio to be saved in a file(s) when you save the project.
Click "File" > "Save Project and Demux Video"
My test vob detail:
DD_Opening.VOB
Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Default
Duration : 31s 465ms
Bit rate mode : Variable
Bit rate : 7 182 Kbps
Nominal bit rate : 8 000 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.693
Stream size : 26.9 MiB (93%)
Audio
ID : 128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 31s 584ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 1.45 MiB (5%)
DGIndex will generate a .m2v and .ac3.
DD_Opening.demuxed.m2v
Video
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Default
Duration : 31s 534ms
Bit rate mode : Variable
Bit rate : 6 911 Kbps
Nominal bit rate : 8 000 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.667
Stream size : 26.0 MiB (96%)
DD_Opening T80 3_2ch 384Kbps DELAY 0ms.ac3
Audio
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 31s 552ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 1.44 MiB (100%)
tsMuxeR
Homepage: http://www.smlabs.net/tsmuxer_en.html
SmartLabs tsMuxeR – the software utility to create TS and M2TS files for IP broadcasting as well as for viewing at hardware video players (i.e., Dune HD Ultra, Sony Playstation3 and others). tsMuxeR is a part of SmartCONTENT, content preparation solution.
SmartLabs tsMuxeR is a freeware.
Download tsMuxeR_1.10.6.zip, extract and run tsMuxerGUI.exe.
Add Video and Audio to tsMuxeR
* Rename DD_Opening.demuxed.m2v to DD_Opening.m2v, otherwise, tsMuxeR cannot recognize the video, maybe it interpret the extension as .demuxed instead of .m2v
Drag and drop DD_Opening.m2v and DD_Opening T80 3_2ch 384Kbps DELAY 0ms.ac3 to tsMuxeR.
Click "Start muxing" to start muxing.
The output TS detail:
DD_Opening.ts
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Default
Codec ID : 2
Duration : 31s 565ms
Bit rate mode : Variable
Bit rate : 7 058 Kbps
Nominal bit rate : 8 000 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.681
Stream size : 26.6 MiB (90%)
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 31s 552ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 1.44 MiB (5%)
Have fun! :)