PDA

View Full Version : How I remux DVB TS into Matroska


mikeathome
22nd April 2008, 16:48
Hi,
this is to share my way of muxing DVB HD captured streams into Matroska container.
Two methods to be shared, AVC video and MPEG-2 video + AC3 audio

Why MKV, well I use a MACmini which does not have any HW accelaration, so, I'd search for the least CPU loading container. I found MKV maybe it.

Tools required:
TSRemux 0.0.2.0
DGAVC 1.00a22
eac3to v2.42 (test updated)
MKVMerge from MKVToolnix 2.0.0 (Apr 14 build)
MPC (MediaPlayer Classic), in options audio you will find the opportunity to adjust an audio delay temporarly, good to find a permant setting, don't forget to reset to '0'!)
DGDecode 1.4...

1) AVC HD + AC3
- capture into a transport stream(.ts)
- remux using TSRemux
* w/o any adjustments, run it thru to clean it up (at least my captures don't play on MPC and can not be opened by neither DGAVC nor TSMuxer nor eac3to)
- use e.g. MPC to figure out trim points
- use TSRemux to apply the trim
* if you specify just a few secs to be remuxed that can be fairly fast and you get perfect cut points, write them down and apply them on the whole stream
* start with Trim Beginning: click the Trim End Hour up until the full length is shown
* input the desired Trim Beginning (from MPC check), reduce Trim End by ~10secs
* that way you end up muxing only 10secs trimmed at the beginning - FAST! - search for best cut point
* do the same for Trim End: click the Trim Beginning Hour up until full length is shown
* input the desired Trim End (from MPC check), reduce Trim Beginning by ~10secs
* that way you end up muxing only 10secs trimmed at the end - FAST! - search for best cut point
* enter the found cut points in Trim Beginning and Trim End and remux
- extract AC3 audio with DGAVC (I didn't had success with eac3to v2.42 because of stream errors)
- Delaycut (silence out the stream errors)
- eac3to capture.ts 1: h264stream.mkv
- OPTIONAL: get Chapters from DVD using ChapterXtractor, get SubPictures from DVD using SubRip (OCR into .srt)
* both the chapters and subpicture usually need adjustments
* I used a x-cel sheet (selfmade, PM me) for the chapters and Subtitle Workshop 4.x for the subs successfully on a couple of builds
- mkvmerge with MKVToolnix
* import the .mkv from eac3to and the AC3 from Delaycut use the audio delay eac3to reported while re-muxing the video
* use a timecode file on the video# timecode format v1
assume 59.94* I am to un-educated to know why you need it BUT you need it, check it out
* you can easy add chapters by using the built-in chapter editor in mkvmerger application (XML), create a 5min template and store for future use

2) MPEG-2 HD + AC3
- capture into a transport stream(.ts) or MPEG, doesn't really matter
- DGDecode to demux a&v, trim can be easily done with DGDecode
- Delaycut (silence out the stream errors)
- OPTIONAL: get Chapters from DVD using ChapterXtractor, get SubPictures from DVD using SubRip (OCR into .srt)
* both the chapters and subpicture usually need adjustments
* I used a x-cel sheet (selfmade, PM me) for the chapters and Subtitle Workshop 4.x for the subs successfully on a couple of builds
- mkvmerge with MKVToolnix
* import a&v from DGDecode and Delaycut
* the audio will be usually in sync, no timecode file required, if not use MPC to find the delay and apply in a second run
* you can easy add chapters by using the built-in chapter editor in mkvmerger application (XML), create a 5min template and store for future use

mike