VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or try DVDFab and copy, convert or make Blu-rays and DVDs! :)
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. 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.
    Quote Quote  
  2. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  3. Originally Posted by txporter View Post
    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
    Quote Quote  
  4. 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 09:07.
    Quote Quote  
  5. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by Legiit View Post
    Splice: Video framerate doesn't match
    (C:\test.avs, line 8)
    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
    Those 3 X's should be replaced by A, B and C respectively.

    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
    You would then have to encode the clip as VFR, but someone else will need to advise you on how to do that.
    Quote Quote  
  6. Originally Posted by Gavino View Post
    Originally Posted by Legiit View Post
    Splice: Video framerate doesn't match
    (C:\test.avs, line 8)
    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
    Those 3 X's should be replaced by A, B and C respectively.

    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
    You would then have to encode the clip as VFR, but someone else will need to advise you on how to do that.
    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
    Also I figured out how to use --tcfile-in for switching from 25 to 50fps but it gets harder if I want to change the fps more than once as I entered the timecodes manually. If there are any guides to VFR encoding or manual creation of timecodes, I would really appreciate any links or any help from someone experienced. Thanks
    Quote Quote  



Similar Threads