Log in

View Full Version : Chapter/Subtitle Timecode rewrite for Different FPS?


lordreign
11th July 2008, 15:37
Hey guys, I'm not really a newbie to this but honestly I don't know where else to post this question (maybe in the subtitles subforum but I am more concerned about the chapters. Subtitles I can hardcode into the video and allow them to be slowed down in the script below if necessary).

Basically I'm ripping some PAL dvd's to mkv/mp4 and a few of them I can definately notice the higher pitch audio in places so I'm using a simple script like below to slow down the video to 24fps, apply whatever video processing, then resample the audio to 48khz. (I'm using 24fps rather than 23.976 because SSRC doesn't seem to like to resample from the frequency generated when slowing to 23.976).

video = DGDecode_mpeg2source("VTS_01_1.d2v",info=3)
audio = NicAC3Source("VTS_01_1.ac3")
Audiodub(video,audio)
ColorMatrix(hints=true)
#deinterlace
crop( 2, 2, -2, -2)
LanczosResize(624,352) # Lanczos (Sharp)
DeGrainMedian(mode=3)

AssumeFPS(24,true)
SSRC(48000)

The only downside to this is the out of sync chapters and subtitles that come as a result of the slowing process (obviously the subtitles and chapters appear earlier than expected). So I basically wanna know if there is any tool that can automatically edit the timecodes of chapter files (say a DVD Decypter generated OGG file) or subtitles files to a different fps? Or would I have to go through and multiply each one by a factor of 0.96? (24fps/25fps)

Cheers, Andrew.

manono
11th July 2008, 17:46
Hi-

Subs can be slowed pretty easily. You didn't say what format the subs are in, but IDX/SUB can be slowed more-or-less instantly using the Cutter utility that comes included in the VobSub package. It can easily change framerates.

As for chapters, although I suppose an Excel spreadsheet could be developed for it, I also would like to know the same thing; an easy way to change the chapters. I do it for DVD conversions and take the frame number chapters that PGCDemux gives you (the same as IFOEdit format from DVDDecrypter, I think) and multiple them all by hand. Converting frame numbers, though, is a heck of a lot easier than changing times. But isn't it 25/24, since you're slowing or lengthening the movie when you go from 25fps to 24fps?

And, personally, I slow the audio outside of the AviSynth script and encoder. BeSweet, for example, does a good job of lengthening the audio. But then I'm encoding for MPEG-2, and the encoder doesn't handle audio.

lordreign
12th July 2008, 12:17
Cheers for the advice. You are right about the 25/24, I had it the wrong way round. Didn't know about the VobSub thing, I'll definately give that a look into. As far as chapters go I suppose there's not too many so they could be done by hand, I could try write some quick and dirty app with visual studio or something, I'll see if I can find the motivation haha.