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:
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: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()
MSuper: clip must be YV12 or YUY2
What can I do?
Thanks!
+ Reply to Thread
Results 1 to 8 of 8
-
-
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 -
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 -
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 -
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)
... -
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 modeLast edited by 24fps; 16th Aug 2011 at 06:48.
-
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 ! -
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!
Similar Threads
-
Frame rate conversion help
By Og in forum Video ConversionReplies: 20Last Post: 8th Nov 2011, 09:56 -
Frame Rate Conversion
By roberto188 in forum Video ConversionReplies: 17Last Post: 5th Mar 2011, 10:11 -
Frame rate conversion for NTSC to PAL conversion?
By Trellis in forum EditingReplies: 33Last Post: 27th Jul 2010, 09:55 -
Frame rate conversion
By Alexstarfire in forum Video ConversionReplies: 35Last Post: 22nd Aug 2007, 13:34 -
Frame rate conversion by changing frame count
By asmaa in forum Video ConversionReplies: 2Last Post: 1st Aug 2007, 10:15