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

Didée
10th July 2012, 20:43
Well, sure. Things strongly depend on the source characteristics. I've seen plenty sources where the difference between Q/TGMC and YadifMod+NNEDI, (or even plain bob(), sometimes), is so minimal that using Q/TGMC would be almost silly.

But then, there are sources where air is getting thin. Consider THIS (http://www.mediafire.com/?a447853jzrq2j6h). (MediaFire, 47MB)
(VQEG "MobCal" test sequence, bobbed with YadfMod(NNEDI3) and TGMC_beta3, both MFlowFPS'ed from 50 to 60fps, result slowed down to half speed)

Bottomline: it depends. ;)

kolak
10th July 2012, 21:18
Yes- I've seen something similar, but in real source (like some live performance) these sort of scenes represent 5% of the whole source.
When I see these sort of problems I fight with QTGMC to have it done without to many crashes :)

Bottomline: it depends :)

alexx7777
10th July 2012, 22:48
I can not understand it correctly, but I leave nuzho interlaced video. Razesnite please apply what Bob ()
This script is suitable -
DirectShowSource("D:VIDEO.avi", fps=25, convertfps=true)
AssumeBff()
converttoyuy2(interlaced=true)
Autolevels()
ConverttoYV12(interlaced=true)
setmtmode(3)
interFrame (GPU=true, Preset="Medium", Tuning ="Film", InputType="2D", Cores=4)
setmtmode(2)
super = MSuper(pel=2, sharp=2, chroma=false)

b_vec1 = MAnalyse(super, isb = true, delta = 1, chroma=false, blksize=8, overlap=4,truemotion=true)
f_vec1 = MAnalyse(super, isb = false, delta = 1, chroma=false, blksize=8, overlap=4,truemotion=true)

MDegrain1(super,b_vec1,f_vec1,plane=0,thsad=400)

kibu
22nd August 2012, 05:03
So, I have been a fan of this script for a year now. I have used the 1.14 for realtime as AVS in FFDShow for a long time. Unfortunately I never could get my CPU usage to get >30%, with a 1280p file resizing to 1024 and then use "Super Fast" preset.

So, I always thought I could get more performance out of my processor(s) and I'm now trying an .avs file and playing that with MPC-HC. It works better! CPU usage is 70-80% and I can use the Fast preset as long as I resize to 1024. This is the script I'm using: (feel free to make suggestions)
SetMTMode(1,0)
DirectshowSource("cd.mkv")
ConvertToYV12()
SetMTMode(2,3)
Spline64Resize(1024,576)
Setmemorymax(512)
InterFrame(Cores=4, Preset="Fast", GPU=False)

My Macbook Pro 2012 doesn't support GPU for some reason so I have to use CPU.

I am having 1 problem though: when I seek in the video, MPC-HC freezes. Anyone know how to fix that?

SubJunk
22nd August 2012, 05:22
So, I have been a fan of this script for a year now. I have used the 1.14 for realtime as AVS in FFDShow for a long time. Unfortunately I never could get my CPU usage to get >30%, with a 1280p file resizing to 1024 and then use "Super Fast" preset.

So, I always thought I could get more performance out of my processor(s) and I'm now trying an .avs file and playing that with MPC-HC. It works better! CPU usage is 70-80% and I can use the Fast preset as long as I resize to 1024. This is the script I'm using: (feel free to make suggestions)
SetMTMode(1,0)
DirectshowSource("cd.mkv")
ConvertToYV12()
SetMTMode(2,3)
Spline64Resize(1024,576)
Setmemorymax(512)
InterFrame(Cores=4, Preset="Fast", GPU=False)

My Macbook Pro 2012 doesn't support GPU for some reason so I have to use CPU.

I am having 1 problem though: when I seek in the video, MPC-HC freezes. Anyone know how to fix that?Hi Kibu, I have a couple of notes about your script. First, with SetMTMode, the second parameter can only be set once and it defaults to 0. Also GPU=false is default. So here is a more concise version of the script:

SetMTMode(1)
SetMemoryMax(512)
DirectshowSource("cd.mkv").ConvertToYV12()
SetMTMode(2)
Spline64Resize(1024,576)
InterFrame(Cores=4, Preset="Fast")

As for the freezing, I don't know. If it becomes a problem you can't solve you can use SVP, I think they use a buffer to fix that bug (not sure but worth trying) :)

kibu
22nd August 2012, 14:54
Thanks for your tips SubJunk!

I could start using SVP, but I feel that the script like this, even on "Super Fast", is giving me way more quality and less artifacts than SVP gives me. Does that make any sense?

(I think SVP doesn't make MPC crash because on seeking they stop interframing)

kibu
22nd August 2012, 16:29
Ok, a small update. It seems that MPC doesn't crash, but FFDshow does. MPC keeps to be responsive when I try to seek, but the video screen is just black and when I try to close MPC, FFDShow stays in the notification bar and I have to force quit the MPC process from the Task Manager.

It also doesn't have anything to do with Interframe, cause when I remove the Interframe line from the script, it still won't seek. It seems to be a problem with MPC handling avs files OR Haali Media Splitter not being able to seek through the MKV? Is there any other player who handles avs?

SubJunk
23rd August 2012, 21:56
I don't know of another player but I'm sure some will work

pbristow
23rd August 2012, 23:02
Is there any other player who handles avs?

I use KMPlayer, and I'm very happy with it. Powerful, good performance, handles a huge range of file types, gives a really useful technical report if you ask for "Media Info" on the file you're playing... and has lots of extra tweaking options for experts. :)

The only bad thing is that it's ad-funded, and the latest versions have turned a bit naggy about updating... Presumably so that you get to see the latest adds on the default screen. (You only see the adds if you open the app with no input file, by the way, so don't worry about them being intrusive). I don't mind clicking "remind me next week" once a week, though, if gets me such an excellent and avisynth-enabled player.

SubJunk
13th November 2012, 06:51
Version 2.2.0 is released, enjoy :)
This one is based on months of testing with many sources and aims to reduce artifacts by blending frames that are too dissimilar to interpolate, instead of trying to interpolate them and making ugly warps/tears.

kolak
24th December 2012, 00:12
Is new version with 1.06 libraries coming?
Any changes to the conversion quality/speed or just support for more GPU etc?

SubJunk
24th December 2012, 01:36
Yep, 2.3.0 is released, enjoy :)

mark0077
30th December 2012, 17:40
Cheers for the new version. Might need updating again with newer dlls releaed today :)

I see the main change is the addition of pel=1. Doesn't this negatively impact on quality over default / pel=2?

It has a huge impact on performance anyways (in a good way of course), I can now set overlap to 2, where I had to always change it to 0 in previous scripts by hand, to run in quality mode as it made quality mode sooo slow for me in realtime playback.

One other question, in your zip containing the avisynth exe installer, do you recommend installing that and then using the latest dll from sets page here. http://forum.doom9.org/showthread.php?t=148782 . This is what I always do but don't see it mentioned in your guide. I'm not sure if thats recommended or not.

chainik_svp
31st December 2012, 00:25
Might need updating again with newer dlls releaed today.

Libs are the same.

I've some updates but the difference is only in integration with MVTools functions so it's not interesting neither for SVP nor for Interframe.

SubJunk
1st January 2013, 04:04
I see the main change is the addition of pel=1. Doesn't this negatively impact on quality over default / pel=2?In my tests I found that pel=1 wasn't worse quality than pel=2, and in some cases it removed artifacts that were there with pel=2.

One other question, in your zip containing the avisynth exe installer, do you recommend installing that and then using the latest dll from sets page here. http://forum.doom9.org/showthread.php?t=148782 . This is what I always do but don't see it mentioned in your guide. I'm not sure if thats recommended or not.I recommend using the version from my latest zip, since SEt's more recent DLLs have been causing problems with some plugins.

kolak
2nd January 2013, 12:01
It's source dependant- in some case pel=2 is better in others pel=1. In my tests pel=2 was still bit better on average, but pel=1 much faster.

SubJunk
2nd January 2013, 21:17
Maybe I will add the option to be able to use it

fluor
4th January 2013, 19:45
I encoded one movie file (30 fps) at two versions, one with original framerate and one at 60 (interframe).Why do the 60fps version end up smaller than the 30fps?

I have to use FlipVertical() or else the dss2 reads the movie file upside down

####60fps.avs####

Input = "F:\My movies\2012\P1050484.MOV"

PluginPath = "c:\util\avisynth_plugins\"
Setmemorymax(900)
SetMTMode(3,8)
LoadPlugin(PluginPath+"avss.dll")
LoadPlugin(PluginPath+"interframeDependencies\svpflow1.dll")
LoadPlugin(PluginPath+"interframeDependencies\svpflow2.dll")
Import(PluginPath+"InterFrame2.avsi")
dss2(Input).ConvertToYV12()
SetMTMode(2)
InterFrame(Cores=8)

#antishake --- depan/motion stabilization. needs cropping
loadplugin(PluginPath+"DePan.dll")
loadplugin(PluginPath+"DePanEstimate.dll")
i = ConvertToYV12()
mdata = DePanEstimate(i)
DePanStabilize(i, data=mdata,method=0,dxmax=20,dymax=20,rotmax=0)
crop(30,30,-30,-30)

FlipVertical()

- - - -
####30fps.avs####

Input = "F:\My movies\2012\P1050484.MOV"

PluginPath = "c:\util\avisynth_plugins\"
Setmemorymax(900)
SetMTMode(3,8)
LoadPlugin(PluginPath+"avss.dll")
dss2(Input).ConvertToYV12()
SetMTMode(2)

#antishake --- depan/motion stabilization. needs cropping
loadplugin(PluginPath+"DePan.dll")
loadplugin(PluginPath+"DePanEstimate.dll")
i = ConvertToYV12()
mdata = DePanEstimate(i)
DePanStabilize(i, data=mdata,method=0,dxmax=20,dymax=20,rotmax=0)
crop(30,30,-30,-30)

FlipVertical()


Encoded using x264.exe --crf 15 --tune film --preset veryslow

Original mov-file (MJPEG) 30fps, 810MB
30fps: 260MB
60fps: 244,9MB

SubJunk
4th January 2013, 22:19
x264 introduced optimisations for higher framerates about a year ago. Without going into details, your results are normal.

heizenberg
5th January 2013, 10:14
hello,

For Using Megui for 60fps convertion, i have a little problem with the tutorial from Spirton web site

My gpu is used to 2 or 3 % ( 670 GTX ) , im realy GPU assist ?

my 3570k is on 100% but the GTX is 2% or 3%

here is my script ( from spirton )

Setmemorymax(512)
SetMTMode(3,4)
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=4, GPU=true)

Sparktank
5th January 2013, 12:05
Great work!
Just saw the Hobbit over the holidays and became instantly fascinated with the HFR fields.
I'll be looking forward to playing around with making some pseudo-HFR video for fun.
Thank you :)

bcn_246
6th January 2013, 01:51
hello,

For Using Megui for 60fps convertion, i have a little problem with the tutorial from Spirton web site

My gpu is used to 2 or 3 % ( 670 GTX ) , im realy GPU assist ?

my 3570k is on 100% but the GTX is 2% or 3%

here is my script ( from spirton )

Setmemorymax(512)
SetMTMode(3,4)
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=4, GPU=true)

Have you updated to the latest version of SVPflow (v1.0.6)? Proper support for Keplar GPUs is one of the things that is being worked on at the moment...

SubJunk
6th January 2013, 04:03
My gpu is used to 2 or 3 % ( 670 GTX ) , im realy GPU assist ?That's normal :)

Great work!
Just saw the Hobbit over the holidays and became instantly fascinated with the HFR fields.
I'll be looking forward to playing around with making some pseudo-HFR video for fun.
Thank you :)Welcome :)

heizenberg
7th January 2013, 09:29
ok thank you


just another question,

is it possible to convert into 30fps ( in place of 60 )

if it yes , what do I need to change in my script ?

Thank you !

SubJunk
7th January 2013, 10:22
Sure, just use NewNum and NewDen. Like:

InterFrame(Cores=4, NewNum=30000, NewDen=1001)

heizenberg
7th January 2013, 12:17
Thank you SubJunk ;)

SubJunk
11th January 2013, 00:01
2.4.0 Beta 1 is released.
This has quite a few code changes and some of it is untested so please report bugs.

chainik_svp
11th January 2013, 17:50
I am curious what does rc:false do in SVSuper

it turns on interprocess communication between library instance and SVP Manager so every processing option can be changed on the fly

SubJunk
12th January 2013, 14:00
VectorsString = VectorsString + "distance:-6,satd:false,distance:0,"

distance is specified twice. I think distance:0 should be put inside search:{}Thanks, it will be fixed in the next version :)

mark0077
12th January 2013, 17:50
Thanks for the new version SubJunk. Have you ever considered taking the overlap values into consideration for faster / fast presets.

Overlap being set to 2 has one of the biggest impacts on my machine, core i7 920 3.6ghz, gtx 295. Setting it to 0 or 1 seems fine, setting it to 2 means I get lots of frame drops even with the fastest presets.

I can use Medium preset and overlap 1 or 0 without any issues and it looks great. Seems to be one of the big performance hitters for me anyways.

SubJunk
13th January 2013, 02:16
I can make the Faster preset use overlap:1 in the next version?

mark0077
13th January 2013, 04:37
I will leave that upto your judgement. Not sure how much impact it has on your machine or others. On mine it has a huge impact on performance. Not sure what you think of it in terms of quality?

kolak
13th January 2013, 13:06
Not much difference, but overall there is some- in some case can be actually better than overlap=2. Performance boost is much bigger than relative quality loss.

Motenai Yoda
13th January 2013, 20:34
there is a parameter to avoid blending on scenechanges?
like blend=false in mflowfps

SubJunk
13th January 2013, 22:19
there is a parameter to avoid blending on scenechanges?
like blend=false in mflowfpsYes, there is a parameter for that, but it is not recommended because it will make high-action scenes juddery

SubJunk
15th January 2013, 23:34
2.4.0 RC1 is released :)

heizenberg
16th January 2013, 10:26
Hello Subjunk

i have updated to your 2.4.0,

I have a little more gpu usage ( now is +- 8 % on 670 GTX , before +- 3 % )



just a little question,

how to choice your new preset with the script for megui for encoding ? ( fast, smooth... )

and its possible to skip the input convertion task ? or its not CPU / GPU change if skip this task ?


Setmemorymax(512)
SetMTMode(3,4)
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=4, GPU=true)

thank you !

YGPMOLE
17th January 2013, 04:25
Sorry for asking here, but I have the same issue using Interframe or Framedoubling scripts with AviSynth, and I don't know how to resolve...

I'm using MPC-HC with LAV Splitter (video and audio decoder), FFDShow, ReClock and madVR on a Windows 7 64 bit O.S and Intel I7 860 CPU.: Avisynth is used for frame doubling and (added two day ago) Finesharp scripts.

Not problems at all when the DVDs menus have some moving backgrounds (i.e. films scene), but when they just have a static image (and this often happens with the older DVDs), I'm not able to highlight the various entries and when click on one of them the backgroud image remains the same even if I entered in the new menu (so I'm not able to go back to the previous menu or to know what selection I'm going to do in the actual one).

Trying to explain better...

Suppose to be in the main menu of a TV series DVD with 4 episodes. If I wanted to choose one of them, the highlighting doesn't follow the cursor, so I can't make my choice using the remote: I have to use the mouse and follow the cursor, clicking when it changes from the "little arrow" to the "little hand".

If I do that to change the menu (i.e. to go in the audio language and subtitles menu, or in the extras menu), the background image remains the one of the main menu, so from this moment I'm even not able to know where the menu entries are, and how to go back.
I discover that leaving just the Finesharp script everything works perfectly, so the problem is on the frame doubler or Interframe script.

I figure out that when there is a static menu on the screen, as if the buffer isn't able to drainy and it shows the last image in it's memory, so when I try to highlight a selection the image remains the same.
Changing the values of back/ahead buffer changes the background "frozen" image just of a single frame when I try to highlight a selection, which means that when I move the cursor (or I use the remote) it's like I "forward one step" in a slow motion (I hope I have explained it in an understandable way...) but this happens just once.

Any ideas and/or suggestions?

SubJunk
18th January 2013, 02:37
Hello Subjunk

i have updated to your 2.4.0,

I have a little more gpu usage ( now is +- 8 % on 670 GTX , before +- 3 % )



just a little question,

how to choice your new preset with the script for megui for encoding ? ( fast, smooth... )

and its possible to skip the input convertion task ? or its not CPU / GPU change if skip this task ?


Setmemorymax(512)
SetMTMode(3,4)
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=4, GPU=true)

thank you !Like this: InterFrame(Cores=4, GPU=true, Tuning="Smooth") :)

SubJunk
24th January 2013, 03:51
Version 2.4.0 is released :)

SubJunk
18th February 2013, 05:07
Version 2.5.0 is released, and I updated the video samples in the first post

heizenberg
18th February 2013, 17:33
thank you SubJunk !

johnmeyer
18th February 2013, 18:13
Many thanks, SubJunk. I just used it to convert a 1964 Kinescope from 24p to 60i and it worked quite well. It sure is fast!

mark0077
18th February 2013, 19:56
Cheers SubJunk. This one is definitely much harder on my system, the price to pay for more smoothness :)

I was again trying some tweaks to your script for my own system. I'm working off Preset Medium with Smooth Tuning. I have to use overlap:0 as it doubles cpu usage on my core i7 leaving almost all presets unusable. I also use algo 13 as algo 23 seems to push my cpu too much with the new block size 8. Looks pretty good.

I notice one error when trying out the Weak Tuning option with Medium Preset. Not sure if you can also see this error on your side with Weak / Medium. Thought I should mention it.

"Overlap size must be >=1 after recalculation"

SubJunk
18th February 2013, 20:57
Hi mark0077, yeah it is definitely slower than before :) But I like the result much more.
I think the error you see is because of your edits to the overlap values, you'll have to adjust some other values to fit (probably remove the refine step, which can also be done by using Preset="Faster"
Hope that helps

thank you SubJunk !Thanks for using it :)

Many thanks, SubJunk. I just used it to convert a 1964 Kinescope from 24p to 60i and it worked quite well. It sure is fast!Glad to hear it! :D

mark0077
18th February 2013, 21:06
Thanks SubJunk, looks like I'll need alot of tweaking to get this to play 1080 with 0 drops :) Any recommendations as to what might have a big reduction in cpu usage / gpu usage, but relatively minimal drop in quality for Film / Smooth + Medium preset. Overlap 0 was my first change, but its just not enough :) Still getting a drop every few seconds. Not sure whats the next best tweak without having to go full blown "Fast" or "Faster"

SubJunk
18th February 2013, 21:30
You could just change blocksize back to 16 and that will bring the speed back to what it was in 2.4.0, and you will still get the benefit of less artifacts

mark0077
18th February 2013, 21:33
Sounds like a good compromize. Thank you.

Sparktank
19th February 2013, 00:11
I just converted a trailer for Fast and the Fursious 6 overnight using 2.5.0 and it was superb!
I can see a much improved visual presentation with the updates compared to recent updates.

Definitely pleased with all the fine tunings going around.
I found on a different forum where someone has DCP trailers to convert to logo-free 1080p with much better encodings than QuickTime will ever offer.
I found that with 2.4.0, there were heavy artifacts if I converted to 720p. I had to convert to a much smaller resolution to get less artifacts so I opted for 480p all the time.

kolak
19th February 2013, 19:25
SubJunk:

Latest dlls compared to ones from version 2.01 give worse quality (with the same script, non-GPU mode).
New ones seams to make object edges more rough with more artefacts (like a not smooth pixels). Edges are also not as well defined and more "doubled".
On a plus side looks like areas around frame edges are better converted.
Any idea?