i used bunch of scripts and filter credited to other people.. including SetMTMode (sry i forget your names!!)
but anyways, as i try to encode this video using VirtualDubMod...
im getting less than 1 fps... this 24 mins video gonna take me 12 hours to complete..
anyone knows if there is a way to enhance virtualdubmod or the .avs file itself to enable GPU acceleration/ CPU multithreading?
im currently using
Windows 7 x64
GTX 260 , 197.45
Core i7 920
this is the script..
thx
-------------------------------------------------------------------------------------------------------------------------------------------------------
SetMTMode(8)
DirectShowSource()
Import("C:\Users\Public\Documents\temp\AAA.avs")
ConvertToYUY2()
SetMTMode(8)
MDeNoise(100)
MSR()
AAA()
function MDeNoise(clip s, int th)
{
blkH = 8
blkV = 8
ovl = 2
dct = 0
srch = 4
pel = 2
super = MSuper(s, pel=pel)
vec1 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=true, delta=2)
vec2 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=true, delta=1)
vec3 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=false, delta=1)
vec4 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=false, delta=2)
MDegrain2(s, super, vec1, vec2, vec3, vec4, thSAD=th)
}
function MSR(clip s)
{
blkH = 16
blkV = 16
ovl = 8
srch = 3
dct=0
pel=2
bc = BilinearResize(s, Width(s)*2, Height(s)*2)
super = MSuper(bc, pel=pel)
vec1 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=true, delta=2)
vec2 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=true, delta=1)
vec3 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=false, delta=1)
vec4 = MAnalyse(super, blksize=blkH, blksizeV=blkV, overlap=ovl, search=srch, dct=dct, isb=false, delta=2)
s = nnedi(s, field=0, dh=true)
s = TurnLeft(s)
s = nnedi(s, field=0, dh=true)
s = TurnRight(s)
s = Sharpen(s, 1)
super = MSuper(s, pel=pel)
c1 = MCompensate(s, super, vec1)
c2 = MCompensate(s, super, vec2)
c3 = MCompensate(s, super, vec3)
c4 = MCompensate(s, super, vec4)
t1 = Overlay(s, c1, opacity=.5)
t2 = Overlay(s, c2, opacity=.5)
t3 = Overlay(s, c3, opacity=.5)
t4 = Overlay(s, c4, opacity=.5)
f1 = Overlay(t1,t2, opacity=.5)
f2 = Overlay(t3,t4, opacity=.5)
Overlay(f1,f2, opacity=.5)
}
+ Reply to Thread
Results 1 to 7 of 7
-
Last edited by anthell; 8th May 2010 at 08:24.
-
fft3dgpu is about the only filter that uses GPU acceleration (some portions of mctemporaldenoise use it, and those parts can be accelerated)
Also, don't use directshowsource() for filters which rely on fwd/back frames such mdenoise, mdegrain unless your source is I-frame only. Directshowsource isn't frame accurate and you can get garbled output as the filter tries to examine frames.
If you're doing a 2pass encode, encode to a lossless intermediate, that way you only have to endure the slow filters 1x instead of 2x -
@poisondeathray
1. ill try the denoise in the gpu ff43dgpu after im done with this video hehe, i dont wanna waste 4 hrs of encoding
2. is there other way to import .mkv file beside directshow?
3. Im currently encoding it to h.264 with compression ratio that is based on bitrate not on passes, I set it to 1k.I'm not sure if it single pass or double pass since i think its automatically done to match the bitrate... sry im new..
i dont think i can afford lossless because with my current setting im getting 900 MB due to superresolution filter ...
if you know a better setting for the h.264 encoder please share it with me
Thx for helping me but please help me a little bit more lol.. im new -
ffmpegsource2
dss2() is more accurate than directshowsource()
if your source is progressive avc, then dgavcindex is an option
3. Im currently encoding it to h.264 with compression ratio that is based on bitrate not on passes, I set it to 1k.I'm not sure if it single pass or double pass since i think its automatically done to match the bitrate... sry im new..
i dont think i can afford lossless because with my current setting im getting 900 MB due to superresolution filter ...
if you know a better setting for the h.264 encoder please share it with me
x264 is probably the best h.264 encoder, and definitely the most configurable
filesize = bitrate x running time
if you are using a bitrate mode, then 2passes is much better instead of 1-pass ABR. If you don't care about filesize, then using 1pass CRF mode is faster, better.
the filters you chose to use are slow and not optimized for multithreading, nothing you can do about it
If you want to learn more about the settings (not all are available under the vfw version, only the CLI version)
http://mewiki.project357.com/wiki/X264_Settings -
they are anime videos and i chose x264vfw..
should i use the ffdshow instead?
i want to keep it under 1gb but get the best i can from it, any suggestion about the modes?
id be happy to take any recommendation (if i have to choose a different mode other than bitrate, im down for it but help me out about the settings) to keep it under 1gb plz while maximizing quality..
im planning on using this script for about 100 episodes (multiple series) so while the filter is the most contributing factor, I still need i to somehow keep encoding time under control while not losing too much quality.
(currently is around 13 hrs for the 24 mins video)
once again thx for the quick reply -
DON'T use ffdshow to encode h.264
most types of anime are highly compressible so will benefit from higher reference frames, and b-frames. But higher compression settings take exponentially more encoding time , so these are trade offs you have to choose (in addition to the time taken with filters)
psy-rd and AQ can cause bad edge artifacts, so you usually use lower levels
a single pass ABR mode is significantly worse in terms of quality/filesize than using 2pass if you need a set filesize. If you don't care about filesize, CRF mode is much better (you just enter the "quality" level and it becomes whatever, it may be huge, it maybe tiny - it will depend on content complexity). But if you use heavy filters, 2pass encode should be done on a lossless intermediate (so you only have to endure the filters once). Again, these are trade off's you have to make.
the vfw version doesn't support tunings and presets, but there are animation presets in the CLI version. you can just copy the settings over and manually enter them
make sure you use a modern x264vfw build, eg.. from http://komisar.gin.by/ -
EDIT: problem solved, thx for everything
Last edited by anthell; 8th May 2010 at 21:55.
Similar Threads
-
Encoders that use gpu acceleration?
By perdomot in forum Video ConversionReplies: 14Last Post: 14th Sep 2011, 10:20 -
Installing GPU on a new build.
By peterock in forum ComputerReplies: 7Last Post: 31st Oct 2010, 11:45 -
how do i take avs logo off avs video
By tnwolf35 in forum Newbie / General discussionsReplies: 3Last Post: 3rd Sep 2010, 21:08 -
the power of gpu encoders
By deadrats in forum ComputerReplies: 26Last Post: 17th Jun 2009, 21:36 -
Vegas Pro 8 and GPU
By SCDVD in forum EditingReplies: 5Last Post: 23rd Aug 2008, 17:12