Sections:
Introduction:
Many modern TVs now include an extra frames feature, usually either 120Hz or 240Hz. This just means they take the source video, which is usually between 24-30FPS, and add new, interpolated frames between the original frames that make the motion look much more smooth.
High framerate (HFR at 48fps) was used in The Hobbit and will be used in upcoming films like the Avatar sequels, so why not watch all your movies at higher framerates?
A lot of people don’t realize this, but 99% of TVs made before this feature was introduced are actually capable of displaying 50FPS and 60FPS, and of course most LCD monitors display 60FPS as well.
This tutorial will allow you to convert videos of any framerate to higher framerates; 25FPS becomes 50FPS and 24/30FPS becomes 60FPS by default, or you can specify whichever framerate you want.
This script offers greater quality than any televisions I have seen.
I’m sure many people will want to see how well this script works, so here’s a comparison:
Original File
Converted File
Note: This can now be done in realtime using Universal Media Server!
Purpose:
This post provides instructions on how to easily convert any video to 60FPS, which allows you to take advantage of this feature of modern TVs on your computer monitor or TV without actually buying anything.
Step 1:
The files needed for this step are found in this zip folder (~3MB).
Run and install the file AviSynth.exe.
It is an early version of AviSynth 2.6 that is more stable and faster for multithreading than 2.5 releases.
Download and install MeGUI, run it, let it update all the things it wants to and import all of the presets.
Optional Tip: If you want MeGUI to update to the very latest stuff (at your own risk) you can push ctrl+s, go to the Extra Configuration tab, and in the Auto Update section select “Use development update server”
Close MeGUI and extract the files in the tools folder from our zip file into your MeGUI tools folder, which for most people will be either C:\Program Files (x86)\MeGUI\tools\ or C:\Program Files\MeGUI\tools\.
Step 2:
Download and install MKVToolnix.
When that is installed, run MKVMerge (Start Menu -> All Programs -> MKVToolnix -> mkvmerge GUI).
You will also need codecs installed. If you don’t already have them I recommend K-Lite Mega Codec Pack. If you install K-Lite, make sure to select “Profile 9: Lots of Stuff” during installation.
Step 3:
Start MeGUI again. You should be left with a window that looks similar to this:
Step 4:
Push ctrl+r, or go to Tools -> AVS Script Creator.
Now you should see something like this:
Step 5:
Click the Config button next to Avisynth profile.
It should look like this:
Step 6:
Click the New button down the bottom and type 60FPS in the name box, so it should look like this:
Step 7:
Now for the script that will do the actual 60FPS conversion.
Just copy and paste the following code into the text input area.
Cores=4
SetMemoryMax(512)
SetMTMode(3,Cores)
PluginPath = "C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\"
LoadPlugin(PluginPath+"svpflow1.dll")
LoadPlugin(PluginPath+"svpflow2.dll")
Import(PluginPath+"InterFrame2.avsi")
<input>.ConvertToYV12()
SetMTMode(2)
<deinterlace>
<crop>
<denoise>
<resize>
InterFrame(Cores=Cores)
Important note #1: Make sure the path on the third line is correct.
For example, if you are running 32-bit Windows, you will need to modify the path to “Program Files” instead.
Important note #2: You should change the number “4” in the script (on line 1) to your number of CPU cores. If you don’t know how many cores your CPU has just Google your CPU and you should be able to find the specs somewhere, or 4 should be fine anyway.
Important note #3: If you have a video card, you can improve quality by adding “GPU=true” to the script. However, it may make encoding time slower, so take that into account.
So InterFrame(Cores=Cores) would turn into InterFrame(Cores=Cores, GPU=true)
If you do this, you may also need to go into your MeGUI tools folder (usually C:\Program Files (x86)\MeGUI\tools\x264) and rename the file opencl.dll to opencl.dll.bak. This will let MeGUI use the version of opencl.dll that your video card drivers have installed, instead of the generic one from MeGUI.
Important note #4: This script always outputs either 50FPS or 59.94FPS (60FPS) for compatibility reasons. If you want to always double the framerate instead, so that for example 23.976FPS turns into 47.952FPS (48FPS), you can use the “FrameDouble” parameter.
So InterFrame(Cores=Cores) would turn into InterFrame(Cores=Cores, FrameDouble=true)
So now your window should look similar to this (with different text):
Step 8:
Click the Extra Setup tab and make sure “Prefer DSS2 over DirectShowSource” is checked.
Optional tip #1: You might also want to choose your preferred resizer. For aspect-ratio changes (like from 720×576 to 720×480) a neutral filter like Spline36 will be nice. For actual resizing (like from 1920×1080 to 1280×720) a sharp filter like Spline64 will be best. I usually just leave it on Spline36. Make sure to untick the checkbox on the option after you change the default resizer, otherwise it will always be used by default which is often unnecessary.
Optional tip #2: I recommend changing the “MOD value used for resizing” to mod4. This gives the best balance between compatibility (a lot of devices like PS3 don’t have good mod2 support) and aspect ratio accuracy (the higher the MOD value, the more likely the aspect ratio is to be skewed more heavily).
Now it should look something like this:
Then just click the Update button then the OK button
Step 9:
Now we’re back to the AviSynth script creator window and now that we have our 60FPS AviSynth template made and selected, it’s time to choose which video we want. Just click the … button next to Video Input up the top of the window and find your video, then click Open.
A window will pop up with buttons, click the option on the right, usually either “DirectShowSource” or “AviSource”.
A window will pop up to show you the video, you can just close that.
Now you should see something like this:
Step 10:
Click the Save button. The video preview window might pop up again, you can close it again.
Step 11:
Now is the time when you need to choose the quality of the video and audio.
If you don’t know what to do here, something quick and easy is to just use CRF, which means you let the codec decide on the bitrates itself. So you can click the “Config” button next to the “Encoder settings” dropdown when you have a x264 option selected, then just enter a number between 16-20 in the “Quality” input box. 16 means your video will be almost exactly the same quality as the source, while 20 will look good too while taking up less space. Personally I use 16 for everything because why not? 🙂
So when you have your quality, click Queue in the Video encoding section.
Step 12:
Now your video is ready for conversion.
Now just go to the Queue tab and click Start down the bottom, then wait for it to finish.
Step 13:
The final step is to add your audio and/or subtitles from the original file to the converted file. This process uses muxing, not conversion, so there is no quality loss.
For this we will use the program we installed earlier, MKVMerge.
So run that and drag the converted file into that program, then do the same with the original file. If you can’t drag them on, you can use the add button instead.
Now you have several items in the Tracks, chapters and tags section. You just need to untick the ones you don’t want. Usually you will want to leave them all selected except for the original video track, as I’ve done in the following example:
Finally, set the Output filename down the bottom of the window and click Start muxing.
When that is done, you have your final video!
Final Thoughts:
This might seem like a long process, but actually it is only long once. Since we have now made templates, the process for the videos from now on will be much faster; instead of entering the script each time, now you can just make sure your 60FPS AviSynth script is selected.
This file can now be played just like any other video. I personally watch videos on my TV which is linked up to my computer using the awesome, free program called Universal Media Server, and that handles these 60FPS videos perfectly with no configuration.
Any comments are appreciated. If you can think of an improvement to the script, or to the process, or if you just found it useful and want to say thanks, please do leave a comment. I would love to know that it’s being used.
If you want to donate to help me with server costs and time spent keeping this article updated, you can do so here with my thanks 🙂
FAQ:
- How can I fix random crashing of vfw4x264.exe?
This probably means you are encoding a file using an input mode other than DSS2, which can happen if the clip is .m2ts or .dga (blu-ray) or another uncommon format.
You can fix it by changing the 2 in the second line of the script to either 3, 4, 5 or just removing that line (try them in that order, since the options get progressively slower) - The option “Prefer DSS2 over DirectShowSource” is disabled. or
I get an error like “can’t load avss.dll”.
This means your computer is missing Haali Media Splitter. You can download it here or as part of a K-Lite Mega Codec Pack and the error should go away after you install it. If you install K-Lite, make sure to select “Profile 9: Lots of Stuff” during installation. - The file stops encoding after 99%.
This usually indicates a codec configuration issue. Try installing/reinstalling K-Lite Mega Codec Pack, and make sure to let it select its preferred defaults (not “quick upgrade”) - Can I customize the output framerate to make it 48FPS, 75FPS, 120FPS, or anything else?
Yes, you can choose any framerate you want. It is best to choose a framerate that is divisible in some way with the original video, but even that is your choice. You just need to add the options “NewNum” and “NewDen”, like this:
InterFrame(Cores=Cores, NewNum=48000, NewDen=1001)
NewNum stands for “New Numerator” and NewDen stands for “New Denominator”. In general, with NTSC material the NewDen should be 1001 and the NewNum should be 1000x your desired framerate (so for 48FPS you want 48000 and 1001) while for PAL content you might just want something like NewNum=75,NewDen=1 to output 75FPS content. - The output seems choppy, can I make it smoother?
Yes, by default we output a video that sacrifices a little smoothness in order to reduce errors, but different people’s eyes pick up on different things so it can all be a matter of taste. You can try the Smooth tuning, like this:
InterFrame(Cores=Cores, Tuning="Smooth")
Also, using GPU mode produces more accurate results and therefore should appear smoother, though it can be slightly slower overall. You can try it like this:
InterFrame(Cores=Cores, GPU=true)
Or try both options at once like this:
InterFrame(Cores=Cores, Tuning="Smooth", GPU=true)
- Why isn’t the GPU being used much in GPU mode?
Only some things are done with the GPU in GPU mode, it’s still mostly done by CPU but helped by GPU. - Why is the video still the original framerate after running it through MKVMerge?
You probably selected the wrong tracks in MKVMerge so you’re getting the original video track instead of the new one; make sure you untick the original video stream before muxing. - Why does MeGUI give an error “SVSmoothFPS: unable to load library given in ‘compose’ […svpflow2.dll]
Try re-installing or updating your video card drivers, and if that doesn’t work then maybe your video card doesn’t support OpenCL so remove GPU=true from your script. - Why am I getting the error “SVSmoothFps: unable to load library given in ‘compose'” when I try to run the encoding process, but not when I preview?
Go into your MeGUI tools folder (usually C:\Program Files (x86)\MeGUI\tools\x264) and rename the file opencl.dll to opencl.dll.bak. This will let MeGUI use the version of opencl.dll that your video card drivers have installed, instead of the generic one from MeGUI. - Why am I getting the error “Error message for your reference: Can not read the video stream”?
MeGUI can’t read from folders or files with certain characters, so try moving the video to a different folder and/or renaming the file.
Thanks:
Widezu69 for providing the original AviSynth script that I used as a base.
Fizick for MVTools, the library that does all the work, and SVP for the modifications to MVTools that make it even better for our purposes.
Everyone on various forums for their feedback, this is really a community effort.
Changelog:
21/05/2015:
- Updated InterFrame to 2.8.2, which improves speed
16/03/2015:
- Corrected and improved the instructions and FAQ
05/03/2015:
- Updated InterFrame to 2.8.0, which improves speed and lowers memory usage
- Updated conversion script
24/02/2015:
- Updated the instructions and FAQ
27/09/2014:
- Updated InterFrame to 2.6.0
- Added a tip about using framedoubling mode
- Updated most images to reflect the minor changes to MeGUI
- Minor improvements to instructions
22/07/2014:
- Added more items to the FAQ
10/07/2014:
- Added more items to the FAQ
- Shortened the changelog to only the latest 3 changes by default
20/05/2014:
- Updated instructions
- Added more tips
- Added to and updated the FAQ
- Updated the link to MKVToolnix to always point to the latest version
July 15, 2011 at 8:28 pm
Reinstalling K-Lite didn’t help (didn’t install the 7.28 update this time, just K-Lite Mega pack v7.20), still getting the same error. Besides, my computer plays MP4s just fine (with VLC, GOM and even Windows Media Player), only MeGUI seems to have a problem.
Instead of the smiley in my previous comment there should be “… line 8”. Perhaps that’s where the problem lies?
Line 8 in the avs file is:
dss2(“[filename].mp4”, fps=23.976).AssumeFPS(24000,1001).ConvertToYV12()
Is that correct?
July 15, 2011 at 9:14 pm
@888: You could try muxing the file into mkv using MKVMerge and see if MeGUI will load that
July 16, 2011 at 10:30 pm
@subjunk: installed it and added the line. still a no go.
The error is:
Avi Synth script error:
MsmoothFps: unable yo init flowlib.
(blahblahblah\interframe.avsi, line 135)
(same as above, line 50)
(then the .avs file, line 13)
July 16, 2011 at 11:01 pm
@pCho: Your original post said “it works fine when I don’t add gpu=true”, so does that mean it used to work and now it doesn’t?
The error probably means the file libflowsse.dll is missing from the folder you’re pointing it at.
July 20, 2011 at 1:31 pm
@subjunk what I mean was that the conversion process works fine if i don’t have GPU acceleration. When I add that line to the script (GPU=true) the error comes up and the conversion fails.
July 23, 2011 at 3:08 pm
SubJunk this is waaaaay off topic but have you heard of a way to make a sample clip of a video kind of like MPC creates thumbnail sheets with Save Thumbnails?
Thanks for everything! I’m still encoding like crazy
July 24, 2011 at 5:30 am
i checked i have 2 cores, 2 threads. is that 2 per core or 2 threads overall? sorry i’m new at this.
July 24, 2011 at 11:30 am
@john: Yes, that’s 2 threads overall 🙂
@Casshern: Well you can use MeGUI to create samples of videos. Push ctrl+d in the main window to open the cutting part.
July 26, 2011 at 2:19 pm
Oh yeah! I wonder if there’s a way to script that out? Like take the length of the video and divide it by ten, then take 10 second samples from 10 spots in the movie. hmmmmm
July 27, 2011 at 10:12 am
@Cass: open AVS by notepad, type in at the end
SelectRangeEvery (xxxx, yyy).
Ex: SelectRangeEvery (5000, 300). The script will tell the coder to take out arbitrary 300 frames from every consecutive 5000 frames and encode those 300 frames only (for instance, if the movie has 150k frames, you will have 30 sections of “300 frames”).
AVisynth can do more work than we can imagine :)). Hope that it will help 😀
August 5, 2011 at 4:22 pm
@Binh that is awesome! Thanks I’ll play with it! the script i mean haha!
August 6, 2011 at 4:05 am
I have a couple of questions:
1) In Step 1, it says “Close MeGUI and extract the tools folder over the top of your MeGUI tools folder, which for most people will be C:\Program Files\MeGUI\tools\”. The tools folder to be extracted are the tools folder that is included in the zip file that contains the Avisynth_110525.exe, right? Also, should I overwrite the tools folder that is in my MeGUI folder with this one? I don’t quite get what it means to extract it “over the top” of your MeGUI tools folder.
2) How come I can’t check the “Prefer DSS2 over DirectShowSource”? It is faded out. What should I do?
August 6, 2011 at 8:44 am
@Chaz: Hi 🙂
1) Yes, overwrite them with the tools folder from the zip file from this guide.
2) Please see the FAQ section 🙂
August 6, 2011 at 3:41 pm
@SubJunk: Hi and thank you for the prompt reply.
1) Just to clarify, I checked the tools folder that is located inside MeGUI and it has alot more folders in it (22 folders) than the tools folder that I should overwrite it with (the avisynth one). The tools folder that I will overwrite it with just contains 1 folder inside named “avisynth_plugin”. Should I still overwrite this on the entire tools folder of MeGUI even if I would lose all previous folders and would just have 1 folder instead? Or should I just overwrite the avisynth_plugin folder that is inside the tools folder of the avisynth.zip onto the avisynth_plugin folder that is included in the MeGUI tools folder?
2) But I aready have the K-Lite codec pack installed and it is the only codec installed in my PC. The K-Lite codec pack I have installed is an older version. It is K-Lite_Codec_Pack_544_Mega. Should I uninstall this? Which K-Lite codec pack should I install?
August 6, 2011 at 9:20 pm
@Chaz: 1) If you are on Windows, which is what this guide is for, just copy and paste the tools folder from the zip folder onto the MeGUI one and confirm whatever prompts pop up. It won’t delete any existing files or folders.
2) You should always use the newest version of a codec pack and it is best to uninstall before installing. The best process is to uninstall the old version, restart the computer, install the new one, restart the computer.
Hope that helps 🙂
August 7, 2011 at 12:42 am
I’m having a few problems that you might be able to help me with.
First off, I’ve done several encodes, but I can never get the quality to match the original, I think it has something to do with the fact that the source files are terrible themselves, and when it takes out the blur in them it leaves sharp junk everywhere. Some parts are ok, some parts it’s a real noticeable difference, but never does it match the original.
Secondly, half of the time, after muxing with mkvmerge the final video ends up about 22 hours long, and if you navigate the first 10% of the tracking bar you can find the movie, anywhere else on the bar it just stops it. It only happens after muxing the audio into it though, the sources are AVI if that makes any difference.
Lastly, I cannot open MKV files. When I hit save (in the script creation window thing), it redirects me to the main window and gives me the following.
“AviSynth script error:
Can’t open .mkv: 80004005
(.avs, line 8)
I’m using the quality script.
August 7, 2011 at 3:24 am
@SubJunk: Thanks alot man! I’m a complete noob in regards to this converting thing and I’m trying this because I like the effect that a converted 60fps does. I did everything you said and looks like I finally got it to work. But I think I’m doing something wrong. Because when I tried to convert a couple of movies, there wasn’t any change at all from the original. What do you think am I doing wrong? Could it be the code I’m using?
Setmemorymax(1024)
SetMTMode(2,7)
LoadPlugin(“C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\”+”mvtools2.dll”)
LoadPlugin(“C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\”+”RemoveGrainSSE3.dll”)
Import(“C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\”+”InterFrame.avsi”)
InterFrame()
ConvertToYV12()
A few additional information: I used Spline64. The aspect-ratio of the videos I tried to convert were both 640×480. I sincerely apologize for being a complete noob.
August 8, 2011 at 12:10 am
@Subjunk: You could just disregard my post above. I uninstalled and reinstalled everything and copied the script as is and I finally got it to work. Thank you very much for your time and for your help. And sorry for the stupid questions.
I do have another question though. I am looking for the “realism” effect that a converted 60fps gives. What I mean is, when you’re watching the movie, it gives the viewer the feeling that the movie was shot right in front of you. Or the feeling that you were there in the room during the time it was being shot. I hope I’m making sense. This was the effect I was going for because this was the experience I had with the previous 60fps videos I’ve seen. But with the few videos I tried this script with, the 60fps effect ranges from unnoticeable to slightly noticeable. What changes would you advise me to make in the settings, script, etc. to achieve this effect much better?
August 8, 2011 at 11:16 am
@Ghosthree3: Make sure you have K-Lite Codec Pack installed and use MPC-HC to play files 🙂
August 8, 2011 at 11:21 am
@Chaz: We’re all noobs at first, it’s no problem 🙂
You can edit the second-to-last line in InterFrame.avsi to make it more smooth, which I guess is the effect you’re describing.
Change the part that says “algo=Algo” to “algo=23” and save it.
August 8, 2011 at 12:10 pm
@SubJunk: I do have the K-Lite Pack installed, I installed the mega pack, then the 64bit pack. I haven’t tested the videos with MPC, but I like WMP, so fixing the track bar time would be good.
August 9, 2011 at 4:39 am
@SubJunk: Wow you got it man! This was the effect I was describing! The silky real life smoothness! Thank you very much!
I have to ask though, can the script/settings still be tweaked to make it even more smoother? Or is this the maximum smoothness that I can get? If it can still be tweaked, could you advise me on what changes I could make?
August 9, 2011 at 9:38 am
@Ghosthree3: I have had problems with 64-bit pack so I recommend uninstalling that. If it’s still not working as you want after that, I recommend using a support forum to find help, like doom9. I think it would happen with any script, not just mine, so it’s more of a general bug 🙂
@Chaz: Cool 🙂 Yes, you can also put Tuning=”Smooth” into the line. Things like that are described in the help file which is at http://www.spirton.com/uploads/InterFrame/InterFrame.html
August 9, 2011 at 1:06 pm
@Subjunk, uninstalled 64bit pack, still same error on mkv open.
August 10, 2011 at 1:02 am
I’ve fixed the total time issue, if I use AVI-Mux instead of mkvmerge, all good. Quality I’ve narrowed down to terrible input qualities. But I still can’t open mkv’s, getting this error when opening avs script on main window:
AviSynth script error:
Can’t open :80004005
(, line 8)
Here’s the avs script:
Setmemorymax(1024)
SetMTMode(2,14)
PluginPath = “C:\Users\\Downloads\Encode Stuff\MeGUI\tools\avisynth_plugin\”
LoadPlugin(PluginPath+”mvtools2.dll”)
LoadPlugin(PluginPath+”RemoveGrainSSE3.dll”)
Import(PluginPath+”InterFrame.avsi”)
LoadPlugin(“C:\Program Files (x86)\K-Lite Codec Pack\Filters\Haali\avss.dll”)
dss2(“C:\Users\\Downloads\Tests\X-Men Origins – Wolverine.mkv”, fps=23.976).AssumeFPS(24000,1001).ConvertToYV12()
#deinterlace
#crop
#denoise
#resize
InterFrame(FlowPath=PluginPath, GPU=true)
August 10, 2011 at 1:04 am
God damnit, triple post, but the website cut out half my post…
Repost of above:
——————————————————————————————————————
I’ve fixed the total time issue, if I use AVI-Mux instead of mkvmerge, all good. Quality I’ve narrowed down to terrible input qualities. But I still can’t open mkv’s, getting this error when opening avs script on main window:
AviSynth script error:
Can’t open {mkv file}:80004005
({avs file}, line 8 )
Here’s the avs script:
Setmemorymax(1024)
SetMTMode(2,14)
PluginPath = “C:\Users\{me}\Downloads\Encode Stuff\MeGUI\tools\avisynth_plugin\”
LoadPlugin(PluginPath+”mvtools2.dll”)
LoadPlugin(PluginPath+”RemoveGrainSSE3.dll”)
Import(PluginPath+”InterFrame.avsi”)
LoadPlugin(“C:\Program Files (x86)\K-Lite Codec Pack\Filters\Haali\avss.dll”)
dss2(“C:\Users\{me}\Downloads\Tests\X-Men Origins – Wolverine.mkv”, fps=23.976).AssumeFPS(24000,1001).ConvertToYV12()
#deinterlace
#crop
#denoise
#resize
InterFrame(FlowPath=PluginPath, GPU=true)
August 10, 2011 at 1:54 am
Wow, lots of posts, but new info that might help. Installed the latest version of Matroska Splitter, and now it gives the error code 8007000e instead of 80004005, 8007000e apparently means ‘not enough storage’ or ‘out of resources’ or something. I’m not sure what this means since there’s plenty of HD space, and I have 6GB of ram.
August 10, 2011 at 1:59 am
God damnit..last post before a reply or I’m going to break the post system. Anyway, I changed the line, SetMemorymax(1024) to 2048, and that fixed the resource error, it’s back to the old error now.
August 16, 2011 at 3:23 am
Hi,
I’ve used your scripts and tips since last winter and all I got was great results, Thanks!!!
Now I have a special need and I’m kinda stuck. I’ve streamlined the process and only use an AVS script that I load in Vdub. I have one for AVI’s, MP4 and WMV, but now I need one for RAW files. You see I export an uncompressed avi file out of Vegas and then what I would do is simply open it in Vdub through a script, thus allowing me to double it’s frame rate and re-export it in an uncompressed form again. My regulare AVI script is as follows:
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.dll”)
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()
I tried to change AviSource to RawSource to no vail. Also, for raw files does it need to be “.yuv” files or can it simply be uncompressed avi?
Thanks
August 16, 2011 at 3:24 am
***sorry if this is a repost, I didn’t see it get posted***
Hi,
I’ve used your scripts and tips since last winter and all I got was great results, Thanks!!!
Now I have a special need and I’m kinda stuck. I’ve streamlined the process and only use an AVS script that I load in Vdub. I have one for AVI’s, MP4 and WMV, but now I need one for RAW files. You see I export an uncompressed avi file out of Vegas and then what I would do is simply open it in Vdub through a script, thus allowing me to double it’s frame rate and re-export it in an uncompressed form again. My regulare AVI script is as follows:
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.dll”)
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()
I tried to change AviSource to RawSource to no vail. Also, for raw files does it need to be “.yuv” files or can it simply be uncompressed avi?
Thanks
August 16, 2011 at 8:49 am
So, first of all:
Thanks for this amazing script. I’ve been using that Animation=”Smooth” thing you suggested and noticed that I get some artifacts during fast movements/between foreground and background. I guess this is why the default is “Film”? I’m using the exact same script that can be seen in the tut, added Animation=”Smooth” though.
Setmemorymax(1024)
SetMTMode(2,7)
PluginPath = “C:\Program Files\MegUI\tools\avisynth_plugin\”
LoadPlugin(PluginPath+”mvtools2.dll”)
LoadPlugin(PluginPath+”RemoveGrainSSE3.dll”)
Import(PluginPath+”InterFrame.avsi”)
.ConvertToYV12()
InterFrame(FlowPath=PluginPath, GPU=true, Tuning=”Smooth”)
August 16, 2011 at 10:36 am
@Phil: That’s outside the scope of this guide, I recommend starting a thread on doom9 and someone will help you 🙂
@Phobo: I’m glad you like the script 🙂 Like you said, that’s why the film tuning is default 🙂
August 17, 2011 at 9:17 am
Hi folks,
How can I add ffdshow’s sharpen filter to the conversion?
Thanks
August 17, 2011 at 10:06 am
@John: Sorry, I don’t know. I recommend asking on doom9 🙂
September 3, 2011 at 9:58 pm
Hi,
first of all thanks for this great tutorial. But I have some problems:
1- when I extract MEgui, it has an exe and installs itself right in the same folder as the one including the downloaded MEgui so it does not install at a location such as C:/prog files/…etc.
2- But the second and the most important point I did not understand was which folder to be copied to which folder? Because the MEgui is installed right where I extract the files, there is no second tools folder.
Or are you talking about the tools folder of the AviSynth program to be copied ? So I request you to clarify which folder to be copied where?And I get an error stating that there is a problem with line 4 although I checked its spelling hundreds of times.
by the way I am using a high end pc with win7 64.
I donated to many mobile application developers so far so I will be quite happy to donate again if this program really works for me. thanks anyway.
September 4, 2011 at 10:54 am
@emin: Hi 🙂
1) Try downloading this installer for MeGUI http://sourceforge.net/projects/megui/files/megui-stable/0.3.5/MeGUI_0.3.5_x86_Installer_OfflinePackage.exe/download and that will put the files in their default locations.
2) You copy the tools folder from Files-20110722.zip on top of the one created by the MeGUI installation.
September 7, 2011 at 12:03 am
Thanks, Subjunk. I will give these a try and get back to you.
September 10, 2011 at 2:16 pm
When I put the video in and click save I get an error number 0x7e plugin is unable to load
September 11, 2011 at 9:46 pm
Thanks for this post. Everything was fine until it encodered my video. The process window came up and after few seconds, as it showed just over 25 frames of my 18k frame in total, a error window came up said something like this: Error runtime, and it concerned with x264.exe. Any body had caught my problem? Please tell me how to solve this problem.
September 12, 2011 at 9:27 am
@Dino: I’m about to release an update that will hopefully fix that error
September 24, 2011 at 1:53 am
Thanks for this post!!
I use your guide to create slow motion footage!!! here are the steps:
1.- I was working with mp4 format.
2.- I follow your guide from step 1 to 12. I started with “sample.mp4 30 fps” and ended with “sample.mp4 60 fps”
3.- import “sample.mp4 60 fps” in vegas pro 10 and slow it down to 50%.
4.- then i render it to 30 fps.
So the final video was twice long and half seep = Slow motion!!!
Thanks again!!!
September 24, 2011 at 10:04 am
@xtm301: Great! Also, you can skip the Vegas step by adding this to the bottom of the AviSynth script in Step 7:
AssumeFPS(30000,1001)
September 26, 2011 at 10:50 am
help error : http://i.imgur.com/Xlu4o.jpg
September 26, 2011 at 12:21 pm
@kii: It probably means the PluginPath on line 3 is wrong
September 26, 2011 at 5:20 pm
@SubJunk: thanks, i forgot to copy some .dll
September 27, 2011 at 8:27 am
After having followed every step to the dot, m getting stuck at step 9 where I’m suppose to load the MKV of my choosing. I keep on getting error saying “can’t load avisynthwrapper.dll…try a different player to see if mkv works…get yv12 codec.” I got all the codecs suggested on In the tutorial. Please help…I NEED 60FPS. Thanks
September 27, 2011 at 10:04 am
@60FPS FTW: I haven’t seen that error before. I suggest searching http://forum.doom9.org/ for a solution. Hope that helps
September 27, 2011 at 2:07 pm
I keep getting a timeout error when selecting the video then MeGui shuts down. I looked around for a solution and found the programs used conflict with the 64-bit version of Win7/Vista.
September 27, 2011 at 2:09 pm
@Dr. Strangelove: That’s not true because I use 64-bit Windows 7 🙂
September 27, 2011 at 2:29 pm
OK, cool. Can you provide a fix for this problem? When I go to select the video I want to convert, a bunch of Haali codec windows pop up on my system tray/taskbar (bottom right), the program gives a timeout error and shuts down. I’m pulling my hair out!!! Help me before I go bald, please!!!!