VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Jun 2009
    Location
    Canada
    Search Comp PM
    Hi all,

    This thread is for an alternative to this one : https://forum.videohelp.com/threads/337935-Encoding-Xvid-in-50mbps

    Mainly what I need to do is this:

    1: Export the footage out of Vegas in an uncompressed form
    2: Import this in Vdub using an AVS script that will double it's framerate
    3: Export that out of Vdub in a uncompressed format
    4: Import that file back into Vegas

    For step 1 things are fine since Vegas allow for uncompressed exports.
    For step 2 that is where I am stuck, here's the script I usually use for such a conversion:

    Setmemorymax(1024)
    LoadPlugin("C:\Program Files (x86)\60fps\MeGUI\tools\avisynth_plugin\mt.dll")
    SetMTMode(2,0)
    LoadPlugin("C:\Program Files (x86)\60fps\MeGUI\tools\avisynth_plugin\mvtools2.d ll")
    AVISource("G:\test.avi", audio=false)
    #deinterlace
    #crop
    #denoise
    #resize
    super = MSuper(pel=2, hpad=0, vpad=0, rfilter=4)
    backward_1 = MAnalyse(super, isb=true, blksize=16, searchparam=3, plevel=0, search=3, badrange=(-24))
    forward_1 = MAnalyse(super, isb=false, blksize=16, searchparam=3, plevel=0, search=3, badrange=(-24))
    backward_2 = MRecalculate(super, backward_1, blksize=8, searchparam=1, search=3)
    forward_2 = MRecalculate(super, forward_1, blksize=8, searchparam=1, search=3)
    backward_3 = MRecalculate(super, backward_2, blksize=4, searchparam=0, search=3)
    forward_3 = MRecalculate(super, forward_2, blksize=4, searchparam=0, search=3)
    MFlowFps(super, backward_3, forward_3, num=FrameRateNumerator*2, den=FrameRateDenominator, ml=10000)
    ConvertToYV12()
    Even if I change the source to RAW instead of AVI Vdub won't open the file. If I leave the avi file as is Vudb will return an error message saying that:

    MSuper: clip must be YV12 or YUY2

    What can I do?

    Thanks!
    Quote Quote  
  2. ConvertToYV12() must come after AVISource()


    Another option: You can use debugmode frameserver out of vegas, so you don't need use a big intermediate file

    I would frameserve out RGB

    You could use AVFS to frameserve back in, but I would use an intermediate file
    Quote Quote  
  3. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by 24fps View Post
    LoadPlugin("C:\Program Files (x86)\60fps\MeGUI\tools\avisynth_plugin\mt.dll")
    SetMTMode(2,0)
    LoadPlugin("C:\Program Files (x86)\60fps\MeGUI\tools\avisynth_plugin\mvtools2.dll")
    AVISource("G:\test.avi", audio=false)
    ...
    The usual advice is to use SetMTMode(5, ...) for source filters (such as AviSource()) and then switch to mode 2 for the rest of the script. Otherwise, you may get random crashes.

    Also, there's no need to load mt.dll.
    That's only required if you are going to use the MT() function, which is quite different to SetMTMode.
    http://avisynth.org/mediawiki/MT
    Quote Quote  
  4. Member
    Join Date
    Jun 2009
    Location
    Canada
    Search Comp PM
    Well The frameserve alternative sure worked like a charm, and I thought that QT Animation gave big files!!! Those RGB ones sure are big, thank god I will only use this solution on 1-3 sec parts. Even if I frameserve in an uncompressed format there is still a bit of degradation, nothing Neat Video can't fix though.

    Gavino: Yes I do get random crashes. Keep in mind that I didn't write the script but was rather given to me. I can be technical but your gonna have to be more specific. For instance when you say : (5, ...) do you mean 5 and above?

    Where should I switch to 2 and why...what will that do?

    Thanks
    Quote Quote  
  5. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by 24fps View Post
    For instance when you say : (5, ...) do you mean 5 and above?
    Where should I switch to 2 and why...what will that do?
    I just meant start off with mode 5, ie use SetMTMode(5, 0) instead of SetMTMode(2, 0)
    (or, more generally, SetMTMode(5, x) instead of SetMTMode(2, x)).
    This makes the source filter run single-threaded, a good idea as generally they are not thread-safe.
    You then switch to mode 2 for the rest of the script to get full multi-threading for the filters.

    SetMTMode(5,0)
    AVISource("G:\test.avi", audio=false)
    SetMTMode(2,0)
    super = MSuper(pel=2, hpad=0, vpad=0, rfilter=4)
    ...
    Quote Quote  
  6. Member
    Join Date
    Jun 2009
    Location
    Canada
    Search Comp PM
    Don't know why but the frameserve option stop to work. All I get now is this message:

    Avisynth open failure:
    Avisource: Could not open video stream in any supported format
    (G:\60fpsfile.avs, line 5)

    Don't mind the "60fps" as it only doubles the frame rate and not put it in 60fps.

    Strange because that script has been working for ages, heck, it worked yesterday with my tests that pertain to this thread....

    Any ideas?

    Thanks

    ps, Works fine with a regular avi but not with an avi the has been rendered through debug mode
    Last edited by 24fps; 16th Aug 2011 at 06:48.
    Quote Quote  
  7. Member
    Join Date
    Jun 2009
    Location
    Canada
    Search Comp PM
    Turns out I was WAY OFF.

    The test I did yesterday was completely messed up, I am surprised it even worked. What I did was in Vegas in the render GUI I selected the AVI template and in that template I selected debug in the drop down codec list. It rendered a small avi file that I then frameserve through Vdub.

    Needless to say the debug window did not appear.

    What I needed to do is to select debug in the template, then the debug window appeared and I could see it frameserve while Vdub was doing it,s thing.

    Cheers !
    Quote Quote  
  8. Member
    Join Date
    Jun 2009
    Location
    Canada
    Search Comp PM
    One thing concerning Frameserving, which doesn't concern the topic at hand but for other files.

    Is it normal if the resulted encode is not the bitrate I inputed in Vdub?

    I've set Vdub to encode in 2-pass and for the second pass I entered 2.5mbps but what I got was 10mpbs? I've tried a single pass but this time it gave me a file at 7mbps?

    Any ideas?

    Thanks!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!