View Full Version : Different framerates on video + subtitles


Akatsuker
24th May 2008, 20:55
Hey you guys.
I'm dealing with a DVD (non-licensed yet, Saint Seiya Elysion Hen) and I want to apply some subtitles .ass on it, after re-encoding it to an mkv. When I first did the procedure "Analyse", on meGUI, it told me that the video is partially film.

I did some tests and here's what I found:

- On some parts, the video seems to be pure progressive, 29.97fps; On avs, it plays right when I just comment the lines with all the tfm and tdecimate thing. The output, of course, is still 29.97.
- On the other parts, with this:

tfm(order=1).tdecimate(hybrid=1)

it plays right, but the output is 23.976.

How do I proceed? I mean, if I try to append them on avs, it will return an error. And I want to apply subtitles, so I need only ONE video stream.

I would appreciate your help. Thanks.

Akatsuker
25th May 2008, 19:42
I think a MKV, variable framerate, will solve it.
But I've got an error, when I just do the procedures described on http://avisynth.org/VariableFrameRateVideo

The error is:

Input error(Mode 5 and 6, all frames must have entries)

I've searched and found this thread (http://forum.doom9.org/archive/index.php/t-122768.html). So, i've put the Trim() before TFM, and the error persists. Here's my script for FIRST PASS:

DGDecode_mpeg2source("E:\Ippo\El\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)

Trim(0,44087)
crop( 4, 0, -2, -2)
TFM(mode=1,output="tfm.txt")
TDecimate(mode=4,output="stats.txt")


lanczos4resize(640,480)

Done it, I did exactly what is told on the page of avisynth for the SECOND SCRIPT, adding this:

TFM(mode=1)
TDecimate(mode=5,hybrid=2,dupthresh=1.0,input="stats.txt",tfmin="tfm.txt",mkvout="timecodes.txt")

And here's the script for SECOND PASS:

DGDecode_mpeg2source("E:\Ippo\El\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)

Trim(0,44087)
crop( 4, 0, -2, -2)
TFM(mode=1)
TDecimate(mode=5,hybrid=2,dupthresh=1.0,input="stats.txt",tfmin="tfm.txt",mkvout="timecodes.txt")

lanczos4resize(640,480)


Like I said, the error persists. Am I doing something wrong?

Thanks for help...

foxyshadis
26th May 2008, 00:32
Firstly, did you read the important disclaimer at the top of the page you linked to? The old wiki is completely out of date, although the procedures haven't changed that much.

Trim is entirely unnecessary. The all important step I think you missed: Did you remember to play the entire first script, from beginning to end? That's how the frame entries get into the ouput.

Akatsuker
26th May 2008, 00:52
foxyshadis, yes, I've seen the disclaimer... But I didn't tell anything about it 'cause it's the same.

http://avisynth.org/mediawiki/VFR#encoding_to_vfr_.28mkv.29

http://avisynth.org/VariableFrameRateVideo#create-vfr-mkv

About the trim and the playing all the video: yes, i've done it too, but it still keeps returning the same error.

The position of trims in my 2 scripts (1st and 2nd pass) is right?
btw, thanks for answering this thread... ^^