Log in

View Full Version : InterFrame 2.8.2 - Framedoubling/60FPS/HFR conversion script


Pages : 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Shah Jahan
12th October 2011, 09:04
By default it's Medium and you can change it to whatever you like by specifying "Preset"
Will this work?

Setmemorymax(4096)
SetMTMode(2,7)
PluginPath = "C:\Program Files (x86)\AviSynth 2.5\plugins\"
LoadPlugin(PluginPath+"mvtools2.dll")
LoadPlugin(PluginPath+"RemoveGrainSSE3.dll")
Import(PluginPath+"InterFrame.avsi")
<input>.ConvertToYV12()
<deinterlace>
<crop>
<denoise>
<resize>
InterFrame(FlowPath=PluginPath, GPU=true, Preset="Placebo")


Or do I have to change something, or remove the inverted commas?


I'm not sure what you mean. The script is always the same whether realtime or not. Please see the documentation, it is linked to from the first post and is in the download.
OK, I got it now. Mea Culpa!


I guess weeks.
Damn! Can't wait that long. Will start encoding.

SubJunk
12th October 2011, 22:44
Will this work?

Setmemorymax(4096)
SetMTMode(2,7)
PluginPath = "C:\Program Files (x86)\AviSynth 2.5\plugins\"
LoadPlugin(PluginPath+"mvtools2.dll")
LoadPlugin(PluginPath+"RemoveGrainSSE3.dll")
Import(PluginPath+"InterFrame.avsi")
<input>.ConvertToYV12()
<deinterlace>
<crop>
<denoise>
<resize>
InterFrame(FlowPath=PluginPath, GPU=true, Preset="Placebo")


Or do I have to change something, or remove the inverted commas?SetMemoryMax should usually be at about 800 or 600 for maximum stability, the rest looks ok. Remember though that Placebo makes it much slower for not much quality gain, you were warned :)

Shah Jahan
15th October 2011, 07:53
SetMemoryMax should usually be at about 800 or 600 for maximum stability, the rest looks ok. Remember though that Placebo makes it much slower for not much quality gain, you were warned :)
For some reason if I use any value below 4096 then it crashes after encoding for a few minutes. I kept the Task Manager opened and saw that the RAM usage kept on increasing and at around 2048 it crashed (2048 was my previous limit) and hence I thought about increasing it to 4096 and never had a crash after that.

And yes, it really is very VERY slow on placebo but I'm alright with it. I just wish I had Intel i7 2600K

Gser
15th October 2011, 14:03
Is there a reason why this script uses eedi2 instead of eedi3 or nnedi3?

magnetite
15th October 2011, 15:21
Hey SubJunk,

I know this script supports GPU acceleration, but would that also mean it supports SLI? That would give a nice speed boost.

Bloax
15th October 2011, 18:23
Talking about speed, setting "pel" to 1 in the MSuper call gives a hefty speed boost.
It's fine by me to keep it on 2 for the Medium/Placebo, but for Fast and below, it could be considered. (I can't see the difference anyway.)

SubJunk
16th October 2011, 00:03
For some reason if I use any value below 4096 then it crashes after encoding for a few minutes.Ah that's interesting, I have the opposite; it crashes if I set it higher than 800. It's funny how different this program is for different hardware :)

Is there a reason why this script uses eedi2 instead of eedi3 or nnedi3?I did comparisons of all of them and found eedi2 was better more of the time than the others :)

I know this script supports GPU acceleration, but would that also mean it supports SLI? That would give a nice speed boost.I haven't tried it but I think it would use both GPUs if they were in SLI configuration :)

Talking about speed, setting "pel" to 1 in the MSuper call gives a hefty speed boost.
It's fine by me to keep it on 2 for the Medium/Placebo, but for Fast and below, it could be considered. (I can't see the difference anyway.)Yeah, it does increase speed but quality suffers :)

THX-UltraII
31st October 2011, 16:12
I m new to InterFrame 1.12.1. I have some question about it:

Is it a real-time script that can be used while watching a movie?
How do I know if my projector (JVC RS25) supports 60FPS?

Gser
31st October 2011, 20:13
How do I know if my projector (JVC RS25) supports 60FPS?
I don't think there is a projector in the world that doesn't support it.

SubJunk
31st October 2011, 20:45
I m new to InterFrame 1.12.1. I have some question about it:Welcome :)
Is it a real-time script that can be used while watching a movie?It can be, yes. You just have to select a preset that works with your CPU.
How do I know if my projector (JVC RS25) supports 60FPS?Like Gser said, if it doesn't support it that would be weird.

THX-UltraII
31st October 2011, 21:36
thxz for the quick reply guys. I just checked and my RS25 projector supports 60fps.

I don t know how to begin with this :stupid:
Do I have to download and install something?

My setup:
hardware:
Core2Quad Q6600@3,2Ghz
4gb DDR3 1333
MSI GTX460 Cyclone 1gb ddr5 OC overclocked @880mhz
1000watt power supply
JVC RS25 Dila projector 1920x1080@60Hz max.

software:
NVIDIA 285.62
MPC-HC 1.5.3.3757
madVR v0.77 as video renderer
LAV Filters 0.37 with CUVID (hardware decoding) enabled

SubJunk
2nd November 2011, 06:13
For a user who doesn't know how to begin, I recommend using SVP (http://www.svp-team.com/wiki/Main_Page).

THX-UltraII
2nd November 2011, 08:53
Thanks for your reply. I ve done a lot of reading last night about SVP and I have some last questions before I m going to experiment with it because of madVR I m using:

Do I just need to choose the NVIDIA profile 1080p60 and will it work ok with madVR than?

I ask this because madVR needs to get a PRECISE feed of the correct refresh rate. With this I mean:
With my current setup (posted later in this reply) I feed madVR with a custom made res/refresh rate made in the NVIDIA control panel of 23,976Hz. I do this because the standard 23Hz profile of the NVIDIA control panel is actually 23,971 so you get so called dropped frames in MPC-HC/madVR because the deviation between 23,971 and the actual 23,976 it needs to be.

What my question really is if I will get problems with dropped frames with SVP and running MPC-HC/madVR?

My setup:
Hardware:
Intel Core2Quad Q9450
4 GB DDR3 running @1333Mhz
MSI Cyclone 460GTX 1gb ddr5 oc edition overclocked running@880Mhz
1000Watt Power Supply

Software:
W7 X64 (disabled all services running in background that I don t need)
no Anti-Virus, Spyware and Firewall running in the background
MSI afterburner and Eventghost always running in background which takes some CPU but really not much
NVIDIA 285.58 WHQL driver
MPC-HC 1.5.3.3757 X86
madVR v0.77 as video output renderer
LAV video decoder 0.37

SubJunk
2nd November 2011, 09:19
Try it and find out :)

Sp00kyFox
2nd November 2011, 15:01
hmm. I don't get it. I was interested in the whole concept of framerate doubling so I found this script.
But no matter what I do I always get the msmoothfps-error:

MsmoothFps: unable to load library given in svp_flow_lib

My avisynth script in ffdshow so far:

interframe(gpu=false, flowpath="C:\path\Dependencies")

I don't get it. The error seems to be related with unsupported gpus and the "libflowgpu.dll". But my gpu is unsupported anyway (ati hd radeon 4870) so it should use the "libflowsse.dll".
Maybe my cpu is outdated? (amd athlon 64 x2 4400+).
I also tried to specifically link the dll with:

svp_flow_lib = "C:\path\Dependencies\libflowsse.dll"
interframe(gpu=false, flowpath="C:\path\Dependencies")

Didn't help either. Any suggestions how to solve the problem?

naoan
2nd November 2011, 16:50
try :

interframe(gpu=false, flowpath="C:\path\Dependencies\")

also have you put fft3w on system32 (or syswow64 if you have 64 bit windows) ?

Sp00kyFox
2nd November 2011, 16:56
try :
interframe(gpu=false, flowpath="C:\path\Dependencies\")
that's exactly what I did. See my last post.


also have you put fft3w on system32 (or syswow64 if you have 64 bit windows) ?
yip already done (wxp-se3 32bit)

edit:
oh you mean with an additional backslash, well let's try

edit2:
seems to work now, well kinda. it completely freezes on the first displayed frame even with the ultra fast preset.
cpu is working on 100%. well my system is maybe too old for realtime fps doubling, but thx anyway.

SubJunk
2nd November 2011, 22:33
InterFrame 1.12.2 is released which increases speed by up to 15%

Portioli
3rd November 2011, 15:11
for phenom ii x4 955 what is the best setting in SetMTMode(x,x) ?

and one more question, how i can set it for 50fps for PAL?

and one more question, "Prefer DSS2 over DirectShowSource" is always grey and i cannot check this box

SubJunk
4th November 2011, 00:51
for phenom ii x4 955 what is the best setting in SetMTMode(x,x) ?For a CPU that has 4 threads, the best is (2,3).

and one more question, how i can set it for 50fps for PAL?This is explained in the documentation (http://www.spirton.com/uploads/InterFrame/InterFrame.html).

and one more question, "Prefer DSS2 over DirectShowSource" is always grey and i cannot check this boxThis is explained in the FAQ section of the guide (http://www.spirton.com/convert-videos-to-60fps/#FAQ).

THX-UltraII
4th November 2011, 14:07
Hi SubJunk,

As you might have read in my postings I m pretty new with PC frame interpolation and unfortunately I m a little noobish too as it comes to PC. Well, I ll try to explain you what I want and maybe you can tell me if it s possible:

After doing a lot of reading and questions on the SVP forum I finally tried (the lastest) version of SVP last night. I choose the Core2Quad profile because I have a Core2Quad :) and changed one of the settings in SVP from 'x2' to display refresh rate (which I put on 60Hz in my case because that s the max of my digital projector). I got a CPU load of 70%. I played a movie and it runned 'fine'. With this I mean that I only had problems with frame drops reported by madVR (but that s for later; first things first). I did however noticed artifacts which bothered me a lot (especially around the contours of people who move). So I switched to 'expert' view in the SVP manager which gave me a lot of options to fine tune. Changing one of the options (don t remember what option it was) from 'normal' to 'complex' helped some but also raised my CPU a bit. After this I tried to change more of the settings in the expert view to a higher quality setting but soon the max of my CPU was reached. I now know for sure that my CPU is just not capable of handling ALL the highest settings in SVP. I m not going to invest in a new systeem (i7 970) only for SVP so what I want to try is CONVERT my movies with the help of you guide. But I already have some questions about it before I start trying this:

1.
Is your guide compatible with full Blu-Ray rips in BDMV folder structure, .m2ts Blu-Ray remuxes, .mkv 1080p content (BR rips that are decoded to save space) and .mov HD trailers?

2.
Is it possible with you guide to convert a movie with the highest possible settings that are in theory possible with SVP in real-time?
(btw. cannot imagine there s a PC out there that can handle ALL the highest settings in SVP in real-time for 1080p content)

my hardware:
Core2Quad Q9450
4gb DDR3 1333
MSI GTX460 Cyclone 1gb ddr5 OC overclocked @880mhz
1000watt power supply
JVC RS25 Dila projector 1920x1080@60Hz max.

my software:
NVIDIA 285.62
MPC-HC 1.5.3.3757
madVR v0.77 as video renderer
LAV Filters 0.38 with CUVID (hardware decoding) enabled

SubJunk
4th November 2011, 23:00
Is your guide compatible with full Blu-Ray rips in BDMV folder structure, .m2ts Blu-Ray remuxes, .mkv 1080p content (BR rips that are decoded to save space) and .mov HD trailers?The guide is compatible with any video that plays on your computer. As long as your computer knows how to decode it (meaning you have the codecs installed and set up properly) then the method used in my guide can use them.

Is it possible with you guide to convert a movie with the highest possible settings that are in theory possible with SVP in real-time?The default settings in InterFrame are the best quality I know of. SVP does not offer any more or less quality than InterFrame, we share knowledge and files so we improve eachother's products.

(btw. cannot imagine there s a PC out there that can handle ALL the highest settings in SVP in real-time for 1080p content)Well the "highest" settings in SVP will often make the quality worse, because SVP does not sort its settings in order of worst to best, they are just options to choose. But yes, many PCs are capable of running the highest quality settings (the default tuning in InterFrame) on 1080p in realtime.

THX-UltraII
5th November 2011, 12:30
Ok, thanks SubJunk.

So I started last night with your guide but I immediately have some questions already @step 1 :o

- with the updates process of MeGUI I get a notification that 'neroaacence' is outdated and that I have to dl this from the site from Nero and unpack it to the correct path.
Is this step need for the coversion I m going to do?

- I don t know what to do exactly with the step '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\.'

EDIT:
I think I found what the pupose it of the tools folder. I just copied and pasted the 'tools' folder that was located in the folder 'Files-20111103' I just downloaded and pasted this into my folder 'C:\Program Files (x86)\MeGUI\tools' (I did overwrite the previous 'avisynth_plugin' folder).

After this I went on with your guide in the hope I don t need the nero thing to download.

Ok, everything went well untill step 7 where I have some question about:

- I own a Q9450 with 4 threads so I filled in 2,7 at SetMTMode correct?

- I own a fairly good video card, the MSI GTX460 GDDR5 oc edition overclocked@900Mhz. I read that I can increase the speed of the conversion by adding a line to the script. But I see that it will take slight picture quality so when I want the highest possible quality I just don t fill in this line even though a have a good video card correct? (never thought that a videocard could help with a conversion process btw)

step 8:
the checkbox 'prefer DSS2 over DirectShowSource' is greyed out and not selectable.


And if I already own LAV filters and all my video content runs good with this atm, can I skip the codec package download?


Enough questions for now I think :D. I ll wait for further instructions before I move on now.

SubJunk
5th November 2011, 21:11
Hi THX-UltraII, I don't think this is the right place to discuss this so please ask further questions about the guide by commenting on the guide. I'll answer this lot of questions here for convenience, though :)

I own a Q9450 with 4 threads so I filled in 2,7 at SetMTMode correct?Yes

when I want the highest possible quality I just don t fill in this line even though a have a good video card correct?The quality loss is almost unnoticeable, in fact I don't think anyone could see it in moving video, only by studying screenshots. So up to you.

the checkbox 'prefer DSS2 over DirectShowSource' is greyed out and not selectable.That's answered in the FAQ section of the guide.

And if I already own LAV filters and all my video content runs good with this atm, can I skip the codec package download?Sure, you can always install codecs at a later stage if you run into problems too :)

magnetite
6th November 2011, 08:02
Hey SubJunk, I asked about GPU encoding before, however, I have some new questions. Now my GPU vs CPU seems to be 180 FPS vs 210 FPS or so. My GTX 570 has 480 CUDA cores, each running at 1.4 GHz. I'm not good at math, but I've also heard that CUDA is much faster than regular CPU encoding because you've got 480 slower cores versus 8 high speed CPU cores. Not sure if your script uses just the graphics card, or whether it actually uses the CUDA cores.

Here's a video to show you what I'm talking about (http://www.youtube.com/watch?v=DnIvodB2RzU&feature=player_embedded#!)

Okay this guy isn't doing video encoding, but he basically bought a bunch of GPUs and is crunching some serious numbers with it. Same could be applied here, although I've never tested it out before.

Long story short, would it be better to upgrade one of my old computers with another i7 2600K? Or do what this guy is doing. Wouldn't need to upgrade the whole computer, just the CPU, motherboard, and RAM.

Another thing I wanted to add was when the GPU=true, my GTX 570's load is only around 10%. Is there a way to utilize the whole card?

widezu69
6th November 2011, 21:12
@magnetite Hey, I'm new here but I've been working on this with Sub for years before he moved here. GPU=true does not completely turn everything to the GPU. It just spreads the work across. Your CPU will still be pegged full. You cannot compare this to CUDA computing. I use InterFrame with realtime playback. Cuda and GPU computing is way faster than CPU but only when the app is properly written to address everything the GPU has to offer. I don't under stand why your GPU rendering speed is slower though :confused: try and get that sorted. Are you using SetMTMode?

Personally I'd love to see a completely separate GPU, CPU utilisation. Eg the CPU does the interpolation and the GPU does the rendering or vice versa. Don't see it happening soon though :(

magnetite
6th November 2011, 23:00
I don't under stand why your GPU rendering speed is slower though :confused: try and get that sorted. Are you using SetMTMode?


Actually to clarify, I'm getting 180 FPS with the CPU alone (4C/8T i7 2600K @ 4.5 GHz), then when I add "GPU=true" it jumps up to 210-220 FPS or so. MTMode is set to (2, 14), since SubJunk said you should put your threads * 1.8.

I know it only takes about 20 minutes to do an episode, but I'm actually doing my whole library like this so I'll take all the speed boosts I can get.

SubJunk
7th November 2011, 00:25
Welcome to the thread, widezu :D

magnetite, like widezu said, the GPU is only partly used right now so 10% usage is normal. It would take significant code changes to utilise the GPU more. Maybe one day, but not soon.

widezu69
7th November 2011, 01:06
Actually, try (2,15) I find that slightly better. Ok so your GPU mode has increased speed. There was some confusion there :) good to see that you have a nice machine and are using it well.

@Sub, how much difference to the quality does dct add? I'm realtiming your second highest settings and was wondering how much of a noticeable difference it actually adds. BTW I'm playing everything @120fps -> 24x5 :D

SubJunk
7th November 2011, 02:16
dct=5 seems to make big improvements with sudden luma changes like flashing lights, it's better at keeping objects still if they're meant to be still instead of moving them because of luma changes.

magnetite
7th November 2011, 04:21
Welcome to the thread, widezu :D

magnetite, like widezu said, the GPU is only partly used right now so 10% usage is normal. It would take significant code changes to utilise the GPU more. Maybe one day, but not soon.

That's cool. Parallel processing is still sort of new. I mean a lot of programs still use two cores. Not too many make use of four or more, with the exception of video encoding and such.

I guess I was just throwing it out as an idea of what could be accomplished with this someday.

cattolicboy
16th November 2011, 02:18
Hi SubJunk, first of all I want to make the compliments for the script, I'm using it very often and I hope there will be more improvements regarding moving scenes.
I just need some advice about the encoding process: usually I use 2pass at 3000kbps for 720p source at 24fps so how much you suggest to set the bitrate for the same "interframed" source?
Someone says that would be enough a 20% more of the usual bitrate (in this case 3500/4000kbps) or do you think that will be neccessary to doubling the bitrate too?

SubJunk
16th November 2011, 03:27
Hi SubJunk, first of all I want to make the compliments for the script, I'm using it very often and I hope there will be more improvements regarding moving scenes.
I just need some advice about the encoding process: usually I use 2pass at 3000kbps for 720p source at 24fps so how much you suggest to set the bitrate for the same "interframed" source?
Someone says that would be enough a 20% more of the usual bitrate (in this case 3500/4000kbps) or do you think that will be neccessary to doubling the bitrate too?Hi cattolicboy, thanks for the feedback :)
If you use x264 I recommend using CRF instead of setting a bitrate. It will adjust the bitrate for you based on the CRF value and it takes into account framerate in recent x264 versions. Personally I use CRF 14 for near-lossless quality, but release groups are using values around 20.

cattolicboy
16th November 2011, 03:38
Thanks for the quick reply.
Most of the times I use crf, but for some projects where I want to have total control of the final size I need 2pass encoding.
That's why I asked that. Any idea?

SubJunk
16th November 2011, 04:23
I'm not sure, but you can do an easy test to find out yourself:
1) Encode a video using CRF at its original framerate
2) Encode the same video using the same CRF value but using InterFrame
3) Calculate the difference between the two filesizes

travolter
17th November 2011, 10:25
Actually to clarify, I'm getting 180 FPS with the CPU alone (4C/8T i7 2600K @ 4.5 GHz), then when I add "GPU=true" it jumps up to 210-220 FPS


How do you measure this? Programs?

When I do framedoubling realtime I can only measure that video skips frames at 60fps or not (reading output framerate of my videoplayer).. but I wonder if I have more headroom to increase script settings

SubJunk
17th November 2011, 11:24
MeGUI displays the FPS while it is converting

Bloax
17th November 2011, 12:21
You can also measure script speed by using "Run video analysis pass" in VirtualDub.

widezu69
24th November 2011, 23:01
Hey Sub, any progress with synchronised unpaired simpler vectors? You can reach me over PM if it isn't ready yet.

SubJunk
24th November 2011, 23:22
Hey mate, it looked promising at first but then I noticed it was making as many scenes worse as it was making better

BilboFett
30th December 2011, 09:23
I've followed your great guide from http://www.spirton.com/convert-videos-to-60fps/

MeGUI seems to work great through all steps, even if I modify the AVS script for interframe to change the tuning to "smooth" or "Ultrasmooth". But if I add the line "preset=Placebo", it fails.

Here is my script:

SetMTMode(2,7)
PluginPath = "C:\Program Files (x86)\megui\tools\avisynth_plugin\"
LoadPlugin(PluginPath+"mvtools2.dll")
LoadPlugin(PluginPath+"RemoveGrainSSE3.dll")
Import(PluginPath+"InterFrame.avsi")
<input>.ConvertToYV12()
InterFrame(Preset="Placebo", FlowPath=PluginPath, Tuning="UltraSmooth")

Here's the failure line from when I press "save" at step 10:

http://imgur.com/b2qnG.jpg

SubJunk
30th December 2011, 09:58
Hi BilboFett, great to hear it's mostly working well for you!
Your error can be fixed by loading the EEDI2 plugin, which is included in the InterFrame download (not the guide download)

BilboFett
30th December 2011, 10:07
Hi BilboFett, great to hear it's mostly working well for you!
Your error can be fixed by loading the EEDI2 plugin, which is included in the InterFrame download (not the guide download)

Wow fast response!

Can you show me where on my computer to place the EEDI2 plugin, and where to invoke the command in my line? Or even better, show me my new script w/ the EEDI2 plugin added?

Thanks so much for such an awesome tool! I've been searching for months for something like this!! KUDOS!

SubJunk
30th December 2011, 11:04
Can you show me where on my computer to place the EEDI2 plugin, and where to invoke the command in my line? Or even better, show me my new script w/ the EEDI2 plugin added?It should be put in the same folder as RemoveGrainSSE3.dll
Here's your script with the line added:

SetMTMode(2,7)
PluginPath = "C:\Program Files (x86)\megui\tools\avisynth_plugin\"
LoadPlugin(PluginPath+"mvtools2.dll")
LoadPlugin(PluginPath+"RemoveGrainSSE3.dll")
LoadPlugin(PluginPath+"EEDI2.dll")
Import(PluginPath+"InterFrame.avsi")
<input>.ConvertToYV12()
InterFrame(Preset="Placebo", FlowPath=PluginPath, Tuning="UltraSmooth")

Thanks so much for such an awesome tool! I've been searching for months for something like this!! KUDOS!Awesome :)

SubJunk
31st December 2011, 02:55
InterFrame 1.12.3 is released, enjoy :)

BilboFett
2nd January 2012, 22:05
Open-question to everyone on this forum: what to do w/ the audio? When I've tried the frame doubling to 59.94 from 29.97, at least in small 2-3 minute items like movie trailers, the audio stays in sync.

But when I apply it to longer things that are 10-15 mins, it gets out of sync every time. Doesn't seem to matter what codec I use for the audio or how I mux it back in w/ the video.

Any suggestions? Any configuration I can do?

I'm having trouble wrapping my brain around the math of what *SHOULD* change about the audio, to have it match the video.

Subjunk, thanks so much for making this for us. A high quality product!

SubJunk
3rd January 2012, 00:04
If the audio goes out of sync it's likely that the source has a variable framerate. What you said (muxing the original audio with the converted video) should work perfectly if the framerate is constant.

BilboFett
3rd January 2012, 00:11
If the audio goes out of sync it's likely that the source has a variable framerate. What you said (muxing the original audio with the converted video) should work perfectly if the framerate is constant.

The source for the audio is a wav file, w/ no variable frame rate. I'll try just muxing the wav file in. But when I've converted it to an mp3 or an ac3, I always choose CBR, not VBR... ?

SubJunk
3rd January 2012, 00:32
The framerate for the video :)

BilboFett
3rd January 2012, 00:47
The framerate for the video :)

the frame-rate for the video was 29.97fps locked, and became 59.94fps locked via your step by step process...

I had total control over every step.

Tuning was "smooth". Everything else default.