First of all I've never encoded anything with VFR and never used timecodes. So I have a 1080i TV capture that I need to encode with VFR (25p & 50p). All of it will be deinterlaced with QTGMC but the middle part can be done with QTGMC.SelectEven(). Output will be x264 in mkv.
1. Can this be done in 1 script using the Trim filter or do I need to encode 3 different videos with 3 scripts and join them after?
2. How do I output a timecode.txt to attach in mkvmerge or do I need to know the timecodes and enter them manually?
An example script would be much appreciated to give me an idea what I'm doing since I'm new to timecodes and can't seem to find any posts about this.
+ Reply to Thread
Results 1 to 6 of 6
-
-
I have never dealt with timecodes either, but why not do the whole project as 50p? The duplicate frames for the 25p portion will only minimally add to the file size.
-
I would like to learn how to do VFR encodes. Also the show is about 90mins long and only 10mins from the middle needs to be 50fps. It will lose alot of quality if I do it all at 50fps since I want the output file to be less than 4GB(FAT32). Hopefully somebody can help me out here
-
Would something like this work?
X=DGDecode_mpeg2source("C:\test.d2v",cpu=0)
A=X.Trim(1132,1257)
A=X.QTGMC( Preset="faster" ).SelectEven()
B=X.Trim(1258,1508)
B=X.QTGMC( Preset="faster" )
C=X.Trim(1509,1634)
C=X.QTGMC( Preset="faster" ).SelectEven()
A ++ B ++ C #(<<---- Line8)
Getting an error when loading it into MeGui
AviSynth script error:
Splice: Video framerate doesn't match
(C:\test.avs, line 8)
EDIT : Got another question. I've tried running this script through MeGUI, StaxRip & RipBot and get the same error. I've never tried using x264 Command Line so will it work through the command line or will I get the same error?Last edited by Legiit; 28th Jun 2012 at 08:07.
-
Avisynth does not support VFR - all clips must have a unique frame rate throughout, so you cannot join sections with different rates.
Also, your script is logically incorrect:
A=X.Trim(1132,1257)
A=X.QTGMC( Preset="faster" ).SelectEven()
B=X.Trim(1258,1508)
B=X.QTGMC( Preset="faster" )
C=X.Trim(1509,1634)
C=X.QTGMC( Preset="faster" ).SelectEven()
A ++ B ++ C
To join the three sections at a CFR, use
Code:X=DGDecode_mpeg2source("C:\test.d2v",cpu=0) A=X.Trim(1132,1257) A=A.QTGMC( Preset="faster" ).SelectEven() B=X.Trim(1258,1508) B=B.QTGMC( Preset="faster" ) C=X.Trim(1509,1634) C=C.QTGMC( Preset="faster" ).SelectEven() A ++ B.AssumeFPS(A) ++ C
-
Thanks for the reply. So AviSynth doesn't support VFR and QTGMC can only be used with Avisynth I'm guessing right?
Actually I think I wrote the same script about an hour ago, just in a different order.
Code:X=MPEG2Source("C:\test.d2v",cpu=0) A=X.Trim(1132,1257).QTGMC(Preset="faster").SelectEven() B=X.Trim(1258,1508).QTGMC(Preset="faster").AssumeFPS(25) C=X.Trim(1509,1634).QTGMC(Preset="faster").SelectEven() A ++ B ++ C
Similar Threads
-
Should i use and avisynth script for Dv ?
By smartel in forum Newbie / General discussionsReplies: 0Last Post: 10th Mar 2012, 08:29 -
AviSynth - Add specific Chapters timecodes to your script
By imager in forum EditingReplies: 2Last Post: 26th Dec 2009, 07:25 -
Avisynth Script Help
By jamhat in forum Video ConversionReplies: 2Last Post: 29th Nov 2009, 06:13 -
Avisynth script
By daz2712 in forum Video ConversionReplies: 2Last Post: 19th Aug 2009, 11:08 -
Converting VFR to CFR (immortal topic), both avi_tc and AVIsynth fail.
By pyton357ru in forum Newbie / General discussionsReplies: 6Last Post: 17th Oct 2007, 04:08