PDA

View Full Version : TS to MKV join/remux problems


Usa1955
18th October 2007, 19:39
I've a lot of movies in TS containers but require them in MKV. And with every movie I've a similar starting situation and a troublesome outcome :(

The movies a splitted over multiple TS files with h264,mpeg2,vc1 video and DTS/AC3 audio.

Since MkvMerge don't have Ts support yet these files need be present in elementary streams. So usually I merge these multiple Ts files to one Ts file using TsSplitter. If the audio isn't out of sync yet I demux the audio and video to elementary streams using TsRemux. If the audio isn't out of synch yet I merge them with MkvMerge.

The problem is sooner or later it always turns out of sync - with every movie I've tried and they were all perfectly synced before.

The alternate way is to use the (if still ok) merged Ts file and use GDsMux to create a Mkv. But with these movies I've usually a lot of AC3/DTS dropouts in the entire audio stream or the audio is totally silent. When I remux this file with MkvMerge these dropouts are usually gone but the audio is then out of sync (but usually only in the later parts).

This is all very troublesome to create one and another movies of about 20gigs to find out it's broken again.

Can someone help me with ideas, tools, settings on how to get multiple Ts files to one fine working Mkv? What am I doing wrong here?

thank you very much

Usa1955
20th October 2007, 10:11
Any tips or insight on this? :confused:

Thunderbolt8
20th October 2007, 20:46
gdsmux only and mkvmerge natively set video fps to 25 (for all video files? at least for h264). so in case your .ts files have all 23.976 fps you need to change that in mkvmerge manually in the fps field of the video stream or use a timecodes .txt file.
gdsmux can only output in 25 fps, so in case you used it first you'll need to run mkvmerge afterwards to change this.

I personally have only worked with tssplitter so far and not tsremux. in most cases this shoudlnt be necessary, if the sync is fine after joining them with tsplitter you can proceed to mux them to .mkv with gdsmux directly. no need to use tsremux. im not really familiar with this program, but somehow I try to avoid it when I can.

for me what works best is:

1. join the .ts files with tssplitter
2. mux .ts to .mkv using mkvmerge
3. use mkvextract to extract the video and audiostream
4. put video and audio stream in mkvmerge, change fps manually /use timecodes if needed and mux to a final .mkv

actually most of the times it should work to remux the .mkv file gotten from gdsmux directly with mkvmerge. but recently I had some files with gave me an error message "which should not happen" or something like that so I tried to extract both streams first from the gdsmux .mkv and put them manually into mkvmerge and then it suddenly worked.

considering vc-1: mux the video alone with gdsmux, at least this accounts for rebuilt HDDVD .evo files. so far I only had errors when additional audio was in it. demux the audio separately and add it later on with mkvmerge.