View Full Version : Encode video with same scaling quality as madVR (with NNEDI3 and Jinc)
MysteryX
7th December 2014, 20:58
I'm getting terrific video output quality when using SVP+madVR; much better than what any encoding software does.
I was wondering whether it was possible to upscale 288p videos into 720p format with the same quality as madVR.
I found instructions as to how to encode videos in 60fps after processing them through SVP
http://www.spirton.com/convert-videos-to-60fps/
But I've never seen any instruction as to how to process videos through madVR. I've been told it would be possible by using Avisynth.
One solution I found is this: playing the video in MPC-HC in a 720p window and recording it with Camtasia Studio. The only drawback is that it's limited to what my computer can process in real-time, and somehow madVR's NNEDI3 isn't working on my computer.
Would it be possible, with Avisynth, to re-encode and upscale a video with max NNEDI3 Frame Doubling, NNEDI3 chroma upscaling and Jinc 8-taps upscaling with Anti-Ringing filter? If so, could someone provide the instructions for doing so?
Reel.Deel
7th December 2014, 21:23
Here's the things you need:
Interframe (http://forum.doom9.org/showthread.php?p=1486831) (really it's just a wrapper for SVPflow (http://svp-team.com/wiki/Plugins:_SVPflow))
JincResize (http://forum.doom9.org/showthread.php?t=169813)
nnedi3 (http://avisynth.nl/index.php/Nnedi3) / nnedi3ocl (http://forum.doom9.org/showthread.php?t=169766)
The documentation should already have enough examples to do what you wanna do.
poisondeathray
7th December 2014, 21:46
anti-ringing isn't implemented yet in the avisynth version of jincresize
feisty2
8th December 2014, 04:49
https://github.com/IFeelBloated/avisynth-functions/blob/master/Resize.avsi
a script resizer with a hybrid core, it merges the results of regular spline resize and eedi3 by default (you can set other kernels like "lanczos+nnedi3" urself, it compares the difference of edi and regular upscaled results of every pixel, if the dif>=1.0, edi result would be adopted, otherwise, blends 2 results by the weight of dif, the final result should be better than both single regular resize or single nnedi3/eedi3 (actually edi+bicubic), don't enable "noring" unless you have special requirements, the hybrid core won't cause or enhance extra ringing if the source clip is clean)
StainlessS
8th December 2014, 17:56
Suggest a better (EDIT: non-generic) name other than Resize.avsi, how bout Feisty2Resize.avsi :)
feisty2
8th December 2014, 18:25
That's not nice, cuz I don't really have the full copyright of it
It's my modified version of mawen1250's "nnedi3_resize16"
StainlessS
8th December 2014, 18:57
Well any non-generic name would suffice, 'Resize' is gonna conflict with existing scripts somewhere.
feisty2
8th December 2014, 19:05
Okay, noted :)
I'll change a new name for it soon as I figured out some name
I don't really name them nicely yet cuz they are all just some small building parts of a larger script
MysteryX
9th December 2014, 21:25
I'm not seeing much sample! At least, I haven't found anything that includes loading the script and calling the proper function.
What script do I need to
- load a ripped VCD video (288p)
- apply NNEDI3 to double to 576p
- apply Jinc to scale up to 720p
- apply anti-ringing filter
- the last track of my VCDs always ends up being 16:9 (1.45 pixel ratio) instead of 4:3 (1.09 pixel ratio) for all other tracks, so I need to edit the pixel ratio back to 1.09
It probably isn't all that complicated once you're used to it, but I would have to spend many hours to figure it out how to write a few lines of script on my own.
This is the best tutorial explaining how to do the whole chain from installation to using AviSynth script to encoding the video, which is much more complex than what I hear people saying
http://www.spirton.com/convert-videos-to-60fps/
I guess my best bet it to start from those instructions and simply edit the script.
The basic script for InterFrame is
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)
How do I edit it to add the other components?
vivan
9th December 2014, 22:47
To view script result just open it in mpc-hc.
Start from simple script (loading video). Then add resize, then motion interpolation, then multithreading.
Loading video - FFVideoSource (http://code.google.com/p/ffmpegsource/)
ffvideosource ("movie.mkv")
Resizing - start from simple
Lanczos4Resize (1280, 720)
Then try nnedi (this will double resolution, 4 will quadriple)
nnedi3_rpow2 (2)
Then see http://avisynth.nl/index.php/Nnedi3/nnedi3_rpow2#Examples
At this point you'll get a basic idea of what you're doing...
Instead of loading plugins you can just put them into plugins folder (where you installed avisynth).
MysteryX
9th December 2014, 23:26
After initial tests, the re-encoding is removing the pixel aspect ratio. How do I set the pixel aspect ratio to 12/11?
And for videos in 6/9 format, is there an easy way to change them to 12/11 without re-encoding?
Then, I tried loading the NNEDI3 library but it doesn't yet recognize it.
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")
LoadPlugin(PluginPath+"nnedi3ocl.dll")
Import(PluginPath+"nnedi3ocl.avsi")
LoadPlugin("C:\Program Files (x86)\K-Lite Codec Pack\Filters\Haali\avss.dll")
dss2("D:\NaturalGrounding\Hula Hula\Happy Day_vcd.mpg", fps=25.000).AssumeFPS(25,1).ConvertToYV12()
SetMTMode(2)
#deinterlace
#crop
#denoise
#resize
InterFrame(Cores=8, GPU=true, FrameDouble=true)
nnedi3_rpow2 (2)
StainlessS
9th December 2014, 23:45
An Avisynth frame does not have a pixel Aspect Ratio, only a frame size in pixels.
You would need to set Pixel or Display Aspect Ratio in whatever encoder you are using.
Oops, misread (or forgot) what you asked. Below more like it.
EDIT: http://forum.doom9.org/showthread.php?t=152419
EDIT: http://forum.videohelp.com/threads/301849-Change-Aspect-Ratio-of-mp4-without-re-encoding
I would (for MP4 AVC) just demux (maybe Yamb) and use MeGUI Mp4 Muxer (MP4Box I think) to re-mux and specify DAR.
MysteryX
10th December 2014, 00:57
I got the DAR 4:3 to work.
As far as directly editing the aspect ratio without re-encoding, these are MPEG1 videos, not MP4.
Yet another problem. JincResize works only with AviSynth 2.6 while SVP works only with AviSynth 2.5.8. A workaround I found online is to copy AviSynth.dll v2.6 into MeGUI\tools\x264 but when I start MeGUI (in the latest version), it deletes the file.
Edit: It doesn't look like it is theoretically possible to use SVP + Jinc since Jinc requires AviSynth 2.6 which doesn't support SetMTMode which is required by SVP. I'll have to chose one or the other; if I can even get my system to work with MeGUI using 2.6 while SVP keeps using 2.5.8
StainlessS
10th December 2014, 01:40
Cant remember what (if anything) I used to use for mpeg1 AR mod, but try here: http://www.videohelp.com/tools/Restream
(see also Alternatives on same page), maybe for mpeg2 only.
I use below plugs on v2.6 Avisynth, no problem (without MT, Cores=0).
LoadPlugin(PluginPath+"svpflow1.dll")
LoadPlugin(PluginPath+"svpflow2.dll")
Import(PluginPath+"InterFrame2.avsi")
MysteryX
10th December 2014, 01:54
Cant remember what (if anything) I used to use for mpeg1 AR mod, but try here: http://www.videohelp.com/tools/Restream
(see also Alternatives on same page), maybe for mpeg2 only.
I use below plugs on v2.6 Avisynth, no problem (without MT, Cores=0).
LoadPlugin(PluginPath+"svpflow1.dll")
LoadPlugin(PluginPath+"svpflow2.dll")
Import(PluginPath+"InterFrame2.avsi")
That will work but just with lower performance?
How can I get MeGUI to use AviSynth 2.6 while leaving 2.5.8 installed for SVP to keep working?
MysteryX
10th December 2014, 02:09
MPGPatcher doesn't recognize the headers but Restream can process the file... it views it as 4:3, if I change it to 1:1 it applies that, and if I set it back to 4:3 it keeps playing in 16:9... so that doesn't fix the screwed up file. The best option is probably to properly re-encode the file.
Edit: By copying AviSynth.dll 2.5.8 into SVP's MPC-HC folder, and then installing v2.6, SVP uses 2.5.8 while MeGUI uses 2.6.
StainlessS
10th December 2014, 02:40
Mpeg1 change AR: (have not read)
http://forum.doom9.org/showthread.php?t=125336
How can I get MeGUI to use AviSynth 2.6 while leaving 2.5.8 installed for SVP to keep working?
Dont know. There was I think a thread quite recently on same (involved Grouch2004 I think) but could not find it, dont think there was a good solution.
EDIT:
http://forum.videohelp.com/threads/338759-How-do-I-change-the-aspect-ratio-in-an-MPEG-file-without
http://forum.videohelp.com/threads/293765-Change-DAR-of-MPEG-1
http://forum.videohelp.com/threads/157059-Changing-the-display-aspect-ratio-of-VCD-without-re-encoding
http://www.videohelp.com/tools/MPEG-Sequence-Maker#comments
MysteryX
10th December 2014, 03:08
https://github.com/IFeelBloated/avisynth-functions/blob/master/Resize.avsi
a script resizer with a hybrid core, it merges the results of regular spline resize and eedi3 by default (you can set other kernels like "lanczos+nnedi3" urself, it compares the difference of edi and regular upscaled results of every pixel, if the dif>=1.0, edi result would be adopted, otherwise, blends 2 results by the weight of dif, the final result should be better than both single regular resize or single nnedi3/eedi3 (actually edi+bicubic), don't enable "noring" unless you have special requirements, the hybrid core won't cause or enhance extra ringing if the source clip is clean)
Now NNEDI3 + Jinc are working with AviSynth 2.6
Interframe throws exception: Access Denied.
Resize throws exception: There is no function named "SmoothCurve16"
MysteryX
10th December 2014, 03:21
NNEDI3 is working but isn't using the GPU (I have a Radeon HD 7660M and checked with GPU-Z)
How do I enable OpenCL with nnedi3ocl?
(and for some reason NNEDI3 isn't working in madVR on my computer)
Here is my script as of right now
#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")
LoadPlugin(PluginPath+"JincResize.dll")
LoadPlugin(PluginPath+"nnedi3ocl.dll")
Import(PluginPath+"nnedi3ocl.avsi")
Import(PluginPath+"Common.avsi")
Import(PluginPath+"Resize.avsi")
Import(PluginPath+"Denoise.avsi")
Import(PluginPath+"Sharp.avsi")
LoadPlugin("C:\Program Files (x86)\K-Lite Codec Pack\Filters\Haali\avss.dll")
dss2("D:\NaturalGrounding\Hula Hula\Happy Day_vcd.mpg", fps=25.000).AssumeFPS(25,1).ConvertToYV12()
#SetMTMode(2)
#InterFrame(Cores=0, GPU=true, FrameDouble=true)
nnedi3x_rpow2 (2)
Jinc256Resize (1440, 1080)
#EDIResize16
Reel.Deel
10th December 2014, 03:25
Resize throws exception: There is no function named "SmoothCurve16"
That's because it requires SmoothAdjust (http://forum.doom9.org/showthread.php?t=154971). Also if I were you I would not use "Resize", I quickly took a peek at the scripts and saw some harebrained things. Just use the original and trustworthy nnedi3_resize16 (http://avisynth.nl/index.php/Nnedi3_resize16) by mawen1250. Take a look at the wiki page for all the requirements.
StainlessS
10th December 2014, 03:34
Cant help with prev questions, but you said wanted 288 -> 720 (or 1080) I think, could be wrong but think recommended way is
nnedi3x_rpow2(4) and then scale down rather than nnedi3x_rpow2 (2) and scale up again (unless very little difference in it).
nnedi3x_rpow2 (2) is double width,height(2*288=576) : nnedi3x_rpow2 (4) is quadruple width,height(4*288=1152).
Perhaps someone else could confirm.
MysteryX
10th December 2014, 03:44
Cant help with prev questions, but you said wanted 288 -> 720 (or 1080) I think, could be wrong but think recommended way is
nnedi3x_rpow2(4) and then scale down rather than nnedi3x_rpow2 (2) and scale up again (unless very little difference in it).
nnedi3x_rpow2 (2) is double width,height(2*288=576) : nnedi3x_rpow2 (4) is quadruple width,height(4*288=1152).
Perhaps someone else could confirm.
Perhaps. Then what would be the proper way to scale down? Not with Jinc.
I did a quick test with NNEDI3(4) on these low-quality files and it seemed to make the artifacts too sharp while Jinc smoothes out the encoding artifacts. So maybe NNEDI3(4)+downscaling would be better, or maybe combining NNEDI3 + Jinc would be better with these low-quality files. Or perhaps there are better ways to smoothen out encoding artifacts?
feisty2
10th December 2014, 03:46
I quickly took a peek at the scripts and saw some harebrained things.
where? can you please help me point them out so I can fix them? I would really appreciate it
EDIT: I know it's sort of off the topic yet again, can you PM me about harebrained things if you're willing to?
MysteryX
10th December 2014, 04:12
StainlessS, this plugin works great! Although it requires installing a whole bunch(!) of other plugins.
The only thing is that the image is fragmented in blocks during fast-moving scenes and this seems to accentuate the effect. Is there a way to remove those blocks?
And Interframe still doesn't work.
These resize plugins are fixing the AR problem out-of-the-box without having to touch the DAR.
feisty2
10th December 2014, 04:24
yeah, since your source clip is just 288p, I guess the quality would not be... well, at least the clip can't contain many delicate details
so, you can just heavily smooth it, "smdegrain (tr=6, thsad=1200).repair (last,mode=13)" might help
or you can just mask those high motion parts out with "MMask" and smooth them separately
but it's not really necessary to low quality clips
MysteryX
10th December 2014, 04:30
After testing NNEDI3(2)+Jinc and NNEDI3(4), I would say combining NNEDI3(2) with Jinc is giving a better result in this case. NNEDI3 is too sharp for the lack of details. Jinc smoothes it out beautifully.
If it wasn't for the lack of Anti-Ringing filter!
feisty2
10th December 2014, 04:34
you would want eedi3 instead of nnedi3
eedi3 gives much better results on crappy clips
it's smoother than nnedi3
MysteryX
10th December 2014, 04:43
yeah, since your source clip is just 288p, I guess the quality would not be... well, at least the clip can't contain many delicate details
so, you can just heavily smooth it, "smdegrain (tr=6, thsad=1200).repair (last,mode=13)" might help
or you can just mask those high motion parts out with "MMask" and smooth them separately
but it's not really necessary to low quality clips
Now this looks like plastic.
you would want eedi3 instead of nnedi3
eedi3 gives much better results on crappy clips
it's smoother than nnedi3
Nnedi3_resize16 does a whole bunch of stuff around the core resizer. Is there a way to use NNEDI3_resize16 with EEDI3 instead of NNEDI3?
feisty2
10th December 2014, 04:46
Nnedi3_resize16 does a whole bunch of stuff around the core resizer. Is there a way to use NNEDI3_resize16 with EEDI3 instead of NNEDI3?
search "nnedi3 (" in the script and replace the whole nnedi3 command with "eedi3 (xxxx)"
feisty2
10th December 2014, 04:54
as for "motion blocks", if you find mdegrain unsatisfying, you may try "smartdeblock" or "smartdeblock2"
MysteryX
10th December 2014, 04:56
search "nnedi3 (" in the script and replace the whole nnedi3 command with "eedi3 (xxxx)"
Then I get: Invalid arguments to function "eedi3"
MysteryX
10th December 2014, 04:59
as for "motion blocks", if you find mdegrain unsatisfying, you may try "smartdeblock" or "smartdeblock2"
Google finds no such plugin.
feisty2
10th December 2014, 05:07
you can use resize.avsi if you can stand the harebrained raw script, I personally haven't found errors in the script yet, of course if someone kind would point them out I'd be happy to fix them
add the following code to the script to use it
Function GetCSP (clip c)
{
return c.IsPlanar ? c.IsYV12 ? "YV12" :
\ c.IsYV16 ? "YV16" :
\ c.IsYV24 ? "YV24" : c.GetCSP_Y8_YV411 () :
\ c.IsYUY2 ? "YUY2" :
\ c.IsRGB32 ? "RGB32" :
\ c.IsRGB24 ? "RGB24" : "Unknown"
Function GetCSP_Y8_YV411 (clip c) {
try {
c.UtoY
csp = "YV411"
} catch ( error_msg ) {
csp = "Y8"
}
return csp
}
}
or you can do it urself manually,
replace "nnedi3(hfield, True, Y, U, V, nsize, nns, qual, etype, pscrn, threads)" and "nnedi3(vfield, True, Y, U, V, nsize, nns, qual, etype, pscrn, threads)"
with "eedi3(hfield, True, Y, U, V, 0.2, 0.125, 60.0, 3, 40, threads=threads)" and "eedi3(vfield, True, Y, U, V, 0.2, 0.125, 60.0, 3, 40, threads=threads)"
feisty2
10th December 2014, 05:18
Google finds no such plugin.
oops, sorry I remembered the wrong names
here
http://www.funknmary.de/bergdichter/projekte/video/SmoothD/
http://sites.google.com/site/jconklin754smoothd2/home
MysteryX
10th December 2014, 05:18
feisty2, this is what's hairy about your script
http://s11.postimg.org/v8y3gh0yn/Hairy.jpg (http://postimg.org/image/v8y3gh0yn/)
Upper half looks good though.
feisty2
10th December 2014, 05:20
it only works at 16bits bitdepth
first convert your clip to 16bpc
dither_convert_8_to_16 ()
ediresize16 (whatever)
ditherpost (mode=6)
MysteryX
10th December 2014, 05:24
it only works at 16bits bitdepth
first convert your clip to 16bpc
dither_convert_8_to_16 ()
ediresize16 (whatever)
ditherpost (mode=6)
Image looked pretty good until it crashed with "A generic error occured in GDI+"
Image quality is very good but it is VERY slow and very unstable.
feisty2
10th December 2014, 05:30
Image looked pretty good until it crashed with "A generic error occured in GDI+"
sorry, I don't know about this error, but it looks like an avisynth error to me, maybe you're out of memory? I'm still in high school so I'm not a programming expert, maybe someone else can help you with it
EDIT: what version of eedi3 are you using right now? if it's not eedi3 v0.9.2 modified by "Firesledge", I strongly suggest you use this one, it's way faster than the original version
MysteryX
10th December 2014, 05:38
sorry, I don't know about this error, but it looks like an avisynth error to me, maybe you're out of memory? I'm still in high school so I'm not a programming expert, maybe someone else can help you with it
I have 8GB of physical memory. 20 seconds would be pretty quick to consume all of it! And if it did fill that out + the virtual memory, Windows would warn me about the memory getting full and become sluggish. I don't think it even would have the time to fill out the virtual memory in that time-frame.
So far, this is working best
eedi3_rpow2 (4)
Spline36Resize(960, 720)
EEDI3 or NNEDI3 with a factor of 2 + Jinc256 also gives at least as good quality with higher performance, but adds ringing.
MysteryX
10th December 2014, 05:43
EDIT: what version of eedi3 are you using right now? if it's not eedi3 v0.9.2 modified by "Firesledge", I strongly suggest you use this one, it's way faster than the original version
Where do you find Firefledge version? Does it work with Avisynth 2.6 or Avisynth+?
This is a version of the full resize script for EEDI3 but works on AviSynth+
https://github.com/AviSynth/avs-scripts
Does MeGUI works with AviSynth+ and should I switch to that?
feisty2
10th December 2014, 05:45
I have 8GB of physical memory. 20 seconds would be pretty quick to consume all of it! And if it did fill that out + the virtual memory, Windows would warn me about the memory getting full and become sluggish. I don't think it even would have the time to fill out the virtual memory in that time-frame.
how many memory you got wouldn't matter
if ur avisynth is 32bits, the program that calls it can use 4GB of ram at most, then the program will crash
edit: typo
feisty2
10th December 2014, 05:49
Where do you find Firefledge version? Does it work with Avisynth 2.6 or Avisynth+?
This is a version of the full resize script for EEDI3 but works on AviSynth+
https://github.com/AviSynth/avs-scripts
Does MeGUI works with AviSynth+ and should I switch to that?
http://forum.doom9.org/showthread.php?p=1652667#post1652667
it works perfectly on avs2.6 and avs+
I never used MeGUI before, dunno if it's compatible with avs+
MysteryX
10th December 2014, 06:02
Yes that's the same eedi3 file I have.
When your script crashes, memory Private Working Set is 730MB while Commit Size is 1.7GB. When using EEDI3+Spline32, MeGUI's memory usage is stable at 89MB.
About AviSynth+, I for sure wouldn't be able to use Interframe... not that I can use it right now anyway.
But since both EEDI3 and Spline36Resize work in AviSynth 2.5.8, I could revert back to it to use Interframe with it. So far that's the best option.
MysteryX
10th December 2014, 08:16
The only problem with the EEDI3+Spline36 setup is that it takes over an hour to encode 3:30 of video on a Intel Core i7! For the quality vs time difference, I might as well go with the Jinc option but then I wouldn't be able to combine it with Interframe unless we can figure out a way to make it work with AviSynth 2.6
feisty2
10th December 2014, 08:33
EEDI3 is slow and no way out of it unless someone heavily asm optimizes it like the author did to nnedi3, nnedi3 adopts a more complex algorithm, but still much faster than eedi3 mainly because of this
MysteryX
10th December 2014, 08:43
Yes I just saw the difference between NNEDI3 and EEDI3!! HUGE.
With NNEDI3(2) + Jinc I can encode the same video in 12 minutes instead of 65 minutes; and could argue that the quality might be better.
Edit: Now I get why NNEDI3 is so much faster! It is using the GPU (whereas NNEDI3ocl doesn't work on my GPU!?) The encoding runs in 12 minutes with the CPU running at 20%... but the GPU at 100%
feisty2
10th December 2014, 09:28
No nnedi3 does not work on gpu, I don't know what's happening but it got nothing to do with gpu
MysteryX
10th December 2014, 09:48
No nnedi3 does not work on gpu, I don't know what's happening but it got nothing to do with gpu
Well... my GPU is running at 100% and my CPU at 20%!
As for InterFrame, the problem was the Core=0 someone mentioned; I shouldn't have changed that. If I leave Core=8, then it works.
feisty2
10th December 2014, 10:26
Gpu is occupied by Interframes (svpflow)
nnedi3 only works on cpu
MysteryX
10th December 2014, 10:29
Gpu is occupied by Interframes (svpflow)
nnedi3 only works on cpu
I'm not using Interframe for now.
Since the CPU is only running at 20%, I got another idea.
smoothD2c(12, ncpu=4)
eedi3_rpow2 (2)
nnedi3_rpow2 (2)
Spline36Resize(960, 720)
NOW THIS LOOKS SHARP!!
CPU runs at 100%, GPU runs at 100% and it encodes 3:30 in 25 minutes (vs 65 min with EEDI(4))
feisty2
10th December 2014, 10:43
Eedi3 works better on large aliasings (things like badly deinterlaced jaggers)
Nnedi3 works better on little aliasings (things like downscaled by a very sharp kernel, bicubicresize (b=-1, c=0) for example)
It might be better to do the first 2x enlargement with nnedi3 to remove those little jaggers, then do the second enlargement with eedi3 to remove large aliasings
MysteryX
10th December 2014, 16:40
Eedi3 works better on large aliasings (things like badly deinterlaced jaggers)
Nnedi3 works better on little aliasings (things like downscaled by a very sharp kernel, bicubicresize (b=-1, c=0) for example)
It might be better to do the first 2x enlargement with nnedi3 to remove those little jaggers, then do the second enlargement with eedi3 to remove large aliasings
Perhaps. But shifting them changes the rendering time from 4.5fps to 1.8fps!
And something is wrong with GPU-Z... it always displays 100% when the GPU is not in use! Which means the GPU isn't being used after all.
MeGUI was also configured to run in Economy Mode so that's why nnedi3ocl wasn't using OpenCL. By running in High Performance mode it does use the GPU... but it is MUCH slower!
feisty2
10th December 2014, 16:53
1.8fps looks pretty fast to me
I often run some experimental scripts at less than 0.01fps (just the speed of scripts, encode time is neglectable and I feel okay about it
Maybe I'm just a quality freak
MysteryX
10th December 2014, 17:48
1.8fps looks pretty fast to me
I often run some experimental scripts at less than 0.01fps (just the speed of scripts, encode time is neglectable and I feel okay about it
Maybe I'm just a quality freak
I got HUNDREDS of such videos, and am trying to write out guidelines for others to be able to optimize their video files.
If I'm getting significant improvement in pre-processing my files, I might decide to re-encode them one by one... but that would take a long time.
MysteryX
11th December 2014, 01:07
Wow. I checked the option "Always use the included AviSynth" in MeGUI and now it is instead using AviSynth+
The scripts are working just the same, but performance goes from 4.5fps to 4.9fps!!
Is AviSynth+ that much more effective or is there something I should be aware of that isn't working when upgrading?
This is the current script.
PluginPath = "C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\"
LoadPlugin(PluginPath+"masktools2.dll")
Import(PluginPath+"SmoothD2c.avs")
LoadPlugin(PluginPath+"SmoothD2.dll")
LoadPlugin(PluginPath+"nnedi3.dll")
LoadPlugin(PluginPath+"eedi3.dll")
LoadPlugin("C:\Program Files (x86)\K-Lite Codec Pack\Filters\Haali\avss.dll")
dss2("D:\NaturalGrounding\Hula Hula\Original\Hua-Jai-Mai-Koey-Lup.mpg", fps=25.000).AssumeFPS(25,1).ConvertToYV12()
#deinterlace
#crop
#denoise
#resize
SrcHeight = 288
SrcWidth = 352
SrcAR = 12 / 11
CropLeft = 6
CropTop = 2
CropRight = 2
CropBottom = 2
Crop2Left = 2
Crop2Top = 7
Crop2Right = 5
Crop2Bottom = 5
CropHeight = ((SrcHeight - CropTop - CropBottom) * 4) - Crop2Top - Crop2Bottom
CropWidth = ((SrcWidth - CropLeft - CropRight) * 4) - Crop2Left - Crop2Right
ResizeHeight = 720
ResizeWidth = Round(Float(CropWidth) * SrcAR / CropHeight * ResizeHeight / 2) * 2
smoothD2c(12, ncpu=4)
Crop(CropLeft, CropTop, -CropRight, -CropBottom)
eedi3_rpow2 (2)
nnedi3_rpow2 (2)
Spline36Resize(ResizeWidth, ResizeHeight, Crop2Left, Crop2Top, -Crop2Right, -Crop2Bottom)
MysteryX
16th December 2014, 00:44
For running in x64 mode, what would you recommend instead of SmoothD2 for deblocking?
Btw, could it be that a lot of blocking disappears when converting from MPEG1 to AVI? I'm really getting the impression that there are less blocks... and SmoothD2 doesn't seem to be changing much to it anymore whether it's on or off...
MysteryX
16th December 2014, 01:08
Wow... with the x64 version of x264 and AviSynth+ (copying the x64 version into the folder), I'm getting 1fps instead of 5fps !?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.