AVS › AVS Forum › Video Components › Home Theater Computers › Avisynth Script for doubling video frame rates
New Posts  All Forums:Forum Nav:

Avisynth Script for doubling video frame rates - Page 59

post #1741 of 1963
Right to set up your MadVR not to do that, follow these instructions. Set your output as MadVR, play a video, pause it, go to the tray and bring up MadVR settings. Click the scaling algorithms and set as: Chroma = SoftBicubic with softness 80, Luma = Spline 3 taps and Downscaling = as GPU Bilinear.
Now click on rendering, for general settings, uncheck "disable desktop composition" and check exclusive mode.
Now accept by clicking ok, close everything and play a video again, MadVR should play well with Aero now.

svp_flow_lib="C:\\Program Files (x86)\\Avisynth 2.5\\plugins\\libflowgpu.dll"
svp_scheduler=true
SetMTMode(1,22)
V = ffdshow_source()
SetMTMode(2)
S = V.MSuper(pel=2, hpad=16, vpad=16, rfilter=4)
A = S.MAnalyse(isb=true, blksize=16, overlap=4, plevel=0, pelsearch=3, search=3, searchparam=4, lambda=2000, lsad=1600)
B = S.MAnalyse(isb=false, blksize=16, overlap=4, plevel=0, pelsearch=3, search=3, searchparam=4, lambda=2000, lsad=1600)
C = S.MRecalculate(A, blksize=8, overlap=2, search=3, searchparam=2)
D = S.MRecalculate(B, blksize=8, overlap=2, search=3, searchparam=2)
V.MSmoothFps(S, C, D, num=FramerateNumerator(V)*5, den=FramerateDenominator(V)*1, algo=23, block=false, sadgamma=2, sadml=120, ml=0, blend=true)
GetMTMode(false) > 0 ? distributor() : last

Here's the smooth script for 120Hz monitor playing 24/23.98/23.976fps video
post #1742 of 1963
@widezu69

UPDATE:
bilinear fixed it buddy! thanks thanks and thank you very much for your recommendations buddy! i really appreciate your patient replies!
miraculously my single core with 720x480 resized resolutions can handle your script even with pel=2 in it so happy!

all i have to do now is to try to remove some of the "colour banding" (is that the term?) where black squares appears on black scenes like in some animations or anime movies.. do you have any idea how to remove them? i cant try different color space coz the script requires yv12 right? i also tried enabling the debanding filter and still no good... anything else i can try?

and the green vertical thing on the right side of my tv... maybe that's resize's fault and movie format. coz it only appears on some movies.
post #1743 of 1963
does anyone know how much an nvidia card would help with this process? im currently using a ati 4850, and would like to get a nvidia card for me to use with this script, 3d bluray, and HD audio.

does cuda help alot?
post #1744 of 1963
Quote:
Originally Posted by widezu69 View Post

Right to set up your MadVR not to do that, follow these instructions. Set your output as MadVR, play a video, pause it, go to the tray and bring up MadVR settings. Click the scaling algorithms and set as: Chroma = SoftBicubic with softness 80, Luma = Spline 3 taps and Downscaling = as GPU Bilinear.
Now click on rendering, for general settings, uncheck "disable desktop composition" and check exclusive mode.
Now accept by clicking ok, close everything and play a video again, MadVR should play well with Aero now.

svp_flow_lib="C:\\Program Files (x86)\\Avisynth 2.5\\plugins\\libflowgpu.dll"
svp_scheduler=true
SetMTMode(1,22)
V = ffdshow_source()
SetMTMode(2)
S = V.MSuper(pel=2, hpad=16, vpad=16, rfilter=4)
A = S.MAnalyse(isb=true, blksize=16, overlap=4, plevel=0, pelsearch=3, search=3, searchparam=4, lambda=2000, lsad=1600)
B = S.MAnalyse(isb=false, blksize=16, overlap=4, plevel=0, pelsearch=3, search=3, searchparam=4, lambda=2000, lsad=1600)
C = S.MRecalculate(A, blksize=8, overlap=2, search=3, searchparam=2)
D = S.MRecalculate(B, blksize=8, overlap=2, search=3, searchparam=2)
V.MSmoothFps(S, C, D, num=FramerateNumerator(V)*5, den=FramerateDenominator(V)*1, algo=23, block=false, sadgamma=2, sadml=120, ml=0, blend=true)
GetMTMode(false) > 0 ? distributor() : last

Here's the smooth script for 120Hz monitor playing 24/23.98/23.976fps video

Thank Widezu , but your code did not work with madvr [FPS only 24] , but it worked very nice with other output "EVR custom press" [FPS 120] . I don't know why . So Do you recommend "EVR custom press" OR " MADVR" ?

*Edit : I know why , when I uncheck "decode H264" then it can use MADVR +ur code , but unfortunately , it did not let me enable "shader -shapen" ,So now i decide to go with "EVR custom press" the picture so awesome more than "MADVR , MADVR load too much CPU and GPU".

*** By the way , Did you fix my script to use up all my 12 threads ? And what buffer Back/ahead do you recommend ? Is it good with 0/24 or what ?

Many thanks
post #1745 of 1963
Hi there,

After discovering framerate interpolation with Powerdvd a few months ago I've been reading through this whole topic for a few days. Great stuff you have there, friendly competition between widezu69 and SubJunk has been very prolific (thanks also to all the other contributors for posting their scripts, and to SVP for allowing the use of their GPGPU tech !)


Here is a small contribution to this topic: Topic summary / scripts compilation

This is just a wordpad file containing a summary of the whole discussion since the beginning of the topic. I did it for me but I thought it could help newcomers to catch up with this topic faster.

Also it contains most of the scripts that have been posted here so it can be seen as a script compilation too. Scripts have been colored in red so it's easier to identify them.

It seems Bahn Yuki doesn't follow the topic anymore, but maybe blazed is still around and can add this link in his 3rd post ?
post #1746 of 1963
Here is a framerate steadiness comparison I've been doing yesterday between various renderers:



Test conditions were the following:

OS: winXP sp3
CPU: Q6600@3.4
GPU: 4850GS with 1GB vram (factory overclocked 4850) with catalyst 9.3 (due to a combination with an older x1900xt)

Player: Potplayer v1.5 build 29332
Source file: DVB-T recording (AVC, 1920x1088 @25fps)

Decoder: powerdvd8 h264/avc decoder (potplayer built-in decoder gives me luma/chroma shift with AVC This can be fixed with ffdshow though. There's about 24 pixels shift)

Additional filtering:

- resizing to 1280x724 with ffdshow (before doing anything else)
- bitmap overlay with ffdshow (gif with 3 squares to mask logos)
- frame interpolation with SVP v3.0.3 in normal mode (doubled to get 50fps)
- reclock v1.8.7.7 with vsync on (for renderers that support it).
- crt monitor set to 100hz using powerstrip

fps and gpu load monitoring made with Ati tray tool (200ms tick rate)
cpu monitoring made with windows task manager


OpenGL has shown the best fluidity / smoothness (by far). Although it doesn't support reclock vsync and cpu load is significantly higher than with other renderers.
Also, although the fluidity is the best, it induces some artefacts during movements.


My goal is to obtain perfect fluidity (no judder during panning), as I plan to use framerate interpolation with F1 GPs. I've been using reclock for a long time before using framerate interpolation and I never got judder free panning. During some tests I have made with 2012 movie, there is only one setting that gave me 100% judder free panning: interpolate to 4x the original framerate and set the monitor refresh to 3x the original framerate. That's strange. If I set the monitor refresh to half or to the same than the interpolated framerate I got judder, and no judder with the refresh at 3x the original framerate. I'll have to test more to confirm that though.

I'll also try to make the same renderer comparison than above under win7 (and with a 5870 GPU I'll receive in the next days).
post #1747 of 1963
@widezu69 I started with your setup last night after I turned off svp and it worked for a couple scripts but wasn't looking good and some were dropping down to 1.9fps after about 5 seconds... So I tried other ones and now it gives me a error at the top in yellow saying there is MTmode something something...

Why does it do this now? I guess it started after I "updated" avisynth from there site. I couldn't get your avisynth link to work. I made sure there were no extra spaces in the scripts too. But now none of them work. Do I need to install a fresh install of everything?
post #1748 of 1963
@thejulianath20

now i'll try my best to help too coz
i, too, got too many questions here and others gave me their help/advices/recommendations =) (again thanks guys you all know who you are buddies! )

here it goes...
have you tried re-checking if you pasted the plugins correctly in your avisynth installation folder? (in my case... C:\\Program Files (x86)\\AviSynth 2.5\\plugins)

i had some kind of errors like that but when i rechecked my pasted plugins and then i re-copied them again, i got it working without that yellow error on top

iirc, that 3 plugins are mvtools2.dll, libflowgpu.dll, libflowsse.dll

try to check few posts back for widezu69's updated plugins link, he gave me that link and it still works..

i hope it'll work. tell us what happen after you tried recopying/paste your plugins. if there's still error, kindly put the script your using here so that we can try to re-check for spaces or other errors..

important additional info:
or try to re-check your copied scripts especially this line

svp_flow_lib="C:\\Program Files (x86)\\Avisynth 2.5\\plugins\\libflowgpu.dll"

if you are using 32bit OS try to use this:
svp_flow_lib="C:\\Program Files\\Avisynth 2.5\\plugins\\libflowgpu.dll"

if you're using 64bit OS try this:
svp_flow_lib="C:\\Program Files (x86)\\Avisynth 2.5\\plugins\\libflowgpu.dll"

i hope it helps!

additional note:
just now, i tried and i cant reproduce that problem here right now... i cant remember what was wrong in my case when i had that MTmode yellow error.. i'll try to reproduce it later and give you more detailed help if these things doesnt help you. just tell us if it still exists.
(i got to go a bit, house chores first :P i'll try to help and be back asap)

update:
is the error has "no function-something-something MTmode" is it something like that? i can reproduce that problem if my script on that line is not spelled correctly, eg. SeMTmode, it should be SetMTmode something like that...

hope it helps
post #1749 of 1963
@julianth, here are the updated plugins:
http://www.fileserve.com/file/EZwf2Nw
Install the new version of Avisynth (included) avisynth.dll goes in the SysWow64 or system32 only if you are using 32-bit windows. The rest goes in your avisynth plugins folder.

@HeavyGat, your green line at the edge of your screen is most likely cause by ffdshow resizing, try a different size.
post #1750 of 1963
Thanks guys! I got it working with the scripts again! They look really good with 720p but I can't get 1080p to work...

Some lower quality mbps 1080p videos play but drop frames every so often. I even tried some of the scripts listed here that said they work with 1080p but they don't for me. My Dark Knight 1080p mkv is my staple test film and it just freezes on frames for like a 30 seconds but the audio keeps playing.

One thing I did try with the script was change some of them from 60fps to 48fps and that helped like I said on the lower mbps 1080p movies but not my big hitters like Avatar and Dark Knight etc...

What can I change on these to look smooth with minimal to no artifacts and still work with 1080p?

@Widezu69 I noticed here that you have helped a lot with SVP also... With SVP I can get 1080p to work great with 48fps, but it has artifacts with fast motion and some panning. I really would love for the gpu option to work and not make my videos to look jumpy. Because it runs and I see my gpu usage go up when the movie starts and the cpu goes down a little compared to gpu off but the video is jumpy and drops frames more often. If I could get good gpu support then I think I could fine tune these scripts or SVP better and get 1080p to run great! Let me know. Thanks.
post #1751 of 1963
is it possible to use SVP kit + Potplayer with DXVA and MAdVR at the same time?
post #1752 of 1963
@julianath, what are your specs? I have little experience with 1080p but I'll try my best.

@Tony, theoretically yes, but the setup and options are way to complicated so I haven't played around with it much.
post #1753 of 1963
My setup:

ASUS PQ5L PRO
Q6600 Quad Core 2.4ghz (Overclocked to 3.0Ghz)
4gb Gskill Ram
SAPPHIRE 100293L Radeon HD 5570 1GB 128-bit DDR3

What is the benefit of switching between output renderers? I switch between the different EVR's and Haali and I don't see a picture difference at all. I want my picture to be a little brighter too. Because with VLC I watch the same movies and they are brighter and clearer but I love me some 2xfps
post #1754 of 1963
If you don't see any difference between renderers then just pick one that works for you

Some decoder may be incompatible with some renderers. Also my test above shows CPU et GPU load vary depending on the renderer you use, leaving more or less power left for your framerate interpolation (btw you should be able to OC your Q6600 a bit more. Try 3.2-3.4. Keep an eye on your temp though if you have to raise CPU voltage to get it stable. Mine is @3.4 with 1.328v (1.35v in bios). 400MHz more with a quadcore will let you set a bit higher quality settings).

Also renderer like MadVR will help getting a bit better quality if you do upscaling, but don't expect anything spectacular. The difference will remain subtle, you may want to do those tweak only if you have a low enough base/watch distance ratio to see the difference in quality.

To get a brighter image you can play in ffdshow with:

- contrast (but will burn high levels)
- lower the higher value of the "input level" setting (similar to contrast, will burn high levels too. Default value is 255, try 240 or less. The more you go down, the more the high levels will burn)
- raise gamma. Try 1.1 instead of 1.0 for a slight boost without noticeable color quality loss, or a bit more (1.2-1.4) but it will wash out colors the more you raise gamma.

I'd go with 1.1 gamma. Best option if it boosts the brightness enough for you.
post #1755 of 1963
Well right now I am getting avg of 68 C and maxing about 71 C right now so if I raise the voltage then I need a new cooling method or new fan...

Shouldn't a new i5 have way better results than our q6600? I shouldn't have to get an i7 to get 1080p to look great should I? Because I really want to setup another htpc so I can have 2 htpcs to use with my old tower as a WHS2011.
post #1756 of 1963
@widezu69

its been a while buddy. =)

just want to report and ask something...

while playing videos (using the script you gave me) it plays really smooth but in some parts like... while watching sometimes after 10mins or sometimes after 30mins, my video stutters for 2-3 sec then it'll run smooth again, i tried reverting and updating my ffdshow, mpc-hc and MadVR.

what else can i try to remove the occasional stutter?

btw, my CPU temps are okay, 65c at max, i even tried OCing it, still there's this occasional stutter..
post #1757 of 1963
Along with my last question... Can I upgrade my MPC-HC to the latest beta build and still have all of these renders and SVP work correctly? Because SVP has there own MPC-HC download in their package and it is well over a year old...

I have a newer 64bit MPC-HC installed as well but it won't pull up ffdshow, therefore SVP won't play. Do I just need to git rid of some source filters so ffdshow pops up with the movie?



Also has anyone gotten MPC-HC setup as an autoplayer for dvd's or iso's mounted with Daemon tools? VLC used to work and so did my powerdvd 10 but I want MPC-HC to pull up when I mount an iso or put a dvd/bluray in.
post #1758 of 1963
If you download svp kit lite you can use any version of mpc-hc , ffdshow, madvr you want.

You have to install mpc-hc x86 even
on a windows7 x64bit pc.

The best way ( most stable but not quicker) to play BD.iso is to extract them in bd folders structure using powerISO and open them using mpc-hc like DVDs. (open DVD)
post #1759 of 1963
How come mounting iso's with Daemon Tools auto plays with all my other players but not MPC-HC? Doesn't PowerIso work the same way with mounting?

Because mounting should work fine because it works just like putting a dvd into the dvd tray... But both mounting and inserting a disc wont auto play with MPC-HC.
post #1760 of 1963
SetMTMode

anyone could post a mini guide about when to use:

- SetMTMode(1,X)
- SetMTMode(2,X)

What values are the most stable ones?
what values are preferable before the ffdshow line and the main script?

Here using quadcore q9550 SetMTMode(2,7) for ffdshow and main script too but Im not sure if Im using the best config in my case.
post #1761 of 1963
I don't know what is wrong, but my autoplay functions for dvds and blurays is not working at all. I even tried changing autoplay to vlc or powerdvd and neither work when I put in any dvd. Also mounted iso's load fine in daemon tools but they won't autoplay. I have to go into mycomputer and tell it to play. What can I do?
post #1762 of 1963
hi, i have an i7 920 and the nvidia 440. i have installed everything, and added LAV, CUVID, madVR, and FFdshow in the external option in MPC-HC and set them to prefer.

i have tried most of the scripts here and they work, but is there a script that would be tailored for my setup?

i still get artifacts on some scenes.



thanks
post #1763 of 1963
give SVP kit a try, and set it to max settings.
if you already got lav,madvr,ffdshow you will need only the SVP 3.0.3 Lite
post #1764 of 1963
I can't get madvr to work with ffdshow. With madvr on ffdshow won't come up so SVP won't work with madvr. What do I have to set ffdshow to do?
post #1765 of 1963
Quote:
Originally Posted by Tony_Montana View Post

give SVP kit a try, and set it to max settings.
if you already got lav,madvr,ffdshow you will need only the SVP 3.0.3 Lite

i thought that ffdshow with these scripts will basically give you the same results as SVP. im new at this so i i could be wrong.

is svp better?
post #1766 of 1963
IMO yes SVP is better until you get a high end I7 cpu. Because SVP has profiles to set for all different hd sizes (1080p, 720p and 480p).
post #1767 of 1963
Quote:
Originally Posted by thejulianath20 View Post

IMO yes SVP is better until you get a high end I7 cpu. Because SVP has profiles to set for all different hd sizes (1080p, 720p and 480p).

where can i find the latest SVP? i did a search for SVP but i couldnt find the right one.
post #1768 of 1963
post #1769 of 1963
@Tony_Montana How do I get Madvr to work with ffdshow? When I enable it in mpc-hc output it won't pull up ffdshow so then SVP won't play anymore until I make the output EVR or haali...
post #1770 of 1963
Add ffdshow raw video filter in mpx-hc's external filters tab
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Home Theater Computers
AVS › AVS Forum › Video Components › Home Theater Computers › Avisynth Script for doubling video frame rates