Log in

View Full Version : .TS audio handling


Shido_Tatsuhiko
6th April 2009, 15:17
Hi :). I'm handling an unedited transport stream of an anime (MPEG-2 TS, 1440x1080, AAC 2.0ch VBR) which has commercials after the opening theme, at the middle of the episode and after the ending credits (but before the next episode preview). I created 4 D2V files (with DGIndex), but when demuxing the audio files, all 4 had different delay times, as in:

Segment 1: -325ms
Segment 2: -389ms
Segment 3: -32ms
Segment 4: -220ms

Video handling is not an issue because it's possible to join up those 4 segments in the AVS script, or I could demux the video of the files and then join the m2v files in DGIndex. My problem is that I've been looking for a tool that can fix the delays of the files and join them to create the complete audio track, and I haven't found one.

I also tried to trim the TS file using TSMuxer, but even though I set the times right, it always gives me a minute less than needed. Maybe there's a better muxer/editing GUI for TS files that I don't know of.

Perhaps someone with more expertise could help me ^_^.

Thanks in advance.

Varies
6th April 2009, 18:37
Just create 1 d2v file and trim in the script like that (use Megui AVS Cutter):
DGDecode_mpeg2source("D:\video\kyounogononi\Kyou no Go 12 (D-TX).d2v")
#
tdeintted = TDeint(mode=2,type=1,mtnmode=3,tryWeave=true,slow=2)
tfm(order=-1,clip2=tdeintted, pp=7).tdecimate(mode=1,hybrid=0,nt=1,denoise=true)
#
__film = last
__t0 = __film.trim(22, 2418)
__t1 = __film.trim(3858, 17811)
__t2 = __film.trim(19970, 38022)
__t0 ++ __t1 ++ __t2
#
crop( 8, 8, -6, -6)
#
BlackmanResize(1280,720,taps=16)
I like anime too ;)

Shido_Tatsuhiko
7th April 2009, 00:56
Thanks Varies ^^, AVS Cutter did the trick, and it was easy to work with.

But when using Audio Cutter, I load the cuts (.clt) file and name the output .aac, then queue the job, but when I try to run it, MeGUI says there's an error and it doesn't create the audio:

http://img24.imageshack.us/img24/2395/audiocutterproblem.jpg

Oh, I have BeSplit in the tools directory.

My script so far (just in case is needed):

MPEG2Source("Phantom HDTV 01 (D-TX 1080p MPEG-2 TS).d2v")
__film = last
__t0 = __film.trim(11, 6482)
__t1 = __film.trim(8282, 22186)
__t2 = __film.trim(24885, 46762)
__t3 = __film.trim(48562, 49759)

Inspector.Gadget
7th April 2009, 01:00
Edit: Nevermind.

Varies
8th April 2009, 06:32
^ ^
Ofcourse you must tweak megui option :)
http://s53.radikal.ru/i140/0904/cd/895347a9f261.png
and your script wants correction :D
I think, normal suit of functions is
Source
Deinderlace
Trim
crop
resize
sharp
denoise
color and bright correction

Shido_Tatsuhiko
8th April 2009, 07:59
Thank you, Varies ^_^. Small question, is the audio delay automatically fixed with audiocutter or is it still present?
As for the script, that's not the final script of course XD, it's my initial script with just the trims, just in case :P. I will IVTC and stuff, so don't worry ;).

Varies
8th April 2009, 11:01
Small question, is the audio delay automatically fixed with audiocutter or is it still present?
I think yes :D As usual i just cut audio and mux into mkv or mp4

Shido_Tatsuhiko
8th April 2009, 14:39
Ok, I'll tag it so that mkvmergeGUI will recognise its delay :). Thanks a lot!!! :D.