『漫游』酷论坛>『影音数码技术学习交流』>[求助]AVS能播放不能压 ..
[求助]AVS能播放不能压缩是怎么回事
longlong6267@2010-08-31 11:44
AVCSource("F:\track1.dga")
LanczosResize(1280,720)
#remove grain function
function rgf(clip c)
{
c = c.fft3dfilter(sigma=1.5, bt=5, bw=32, bh=32, ow=16, oh=16, sharpen=0.5)
c = c.deblock(16,8,8)
c = c.LSFmod()
return c
}
__film = last
__t0 = __film.trim(0, 2388)#grain
__t0 = __t0.rgf()
__t1 = __film.trim(2389, 3340)#normal
__t1 = __t1.undot()
__t1 = __t1.undot()
__t2 = __film.trim(3341, 4007)#grain
__t2 = __t2.rgf()
__t3 = __film.trim(4008, 4437)#normal
__t3 = __t3.undot()
__t3 = __t3.undot()
__t4 = __film.trim(4438, 4557)#grain
__t4 = __t4.rgf()
__t5 = __film.trim(4558, 7831)#normal
__t5 = __t5.undot()
__t5 = __t5.undot()
__t6 = __film.trim(7832, 8328)#grain
__t6 = __t6.rgf()
__t7 = __film.trim(8329, 28719)#normal
__t7 = __t7.undot()
__t7 = __t7.undot()
__t8 = __film.trim(28720, 30740)#grain
__t8 = __t8.rgf()
__t9 = __film.trim(30741, 31916)#normal
__t9 = __t9.undot()
__t9 = __t9.undot()
__t10 = __film.trim(31917, 34137)#grain
__t10 = __t10.rgf()
__t11 = __film.trim(34138, 34721)#normal
__t11 = __t11.undot()
__t11 = __t11.undot()
__t12 = __film.trim(34722, 0)#grain
__t12 = __t12.rgf()
__t0 ++ __t1 ++ __t2 ++ __t3 ++ __t4 ++ __t5 ++ __t6 ++ __t7 ++ __t8 ++ __t9 ++ __t10 ++ __t11 ++ __t12
x264_1688 --output "01.mkv" "01.avs" --profile high --preset veryslow --tune ssim --level 41 --subme 9 --keyint 250 --min-keyint 25 --non-deterministic --crf 20.0 --aq-mode 2 --threads 0 --transfer bt709 --colormatrix bt709 --colorprim bt709
播放器能播 X264不能压缩
错误提示
x264 [error]: malloc of size 1053824 failed
x264 [error]: x264_encoder_encode failed
roozhou@2010-08-31 11:51
内存爆了啊,谁让你写这么蛋疼的avs还不加setmemorymax
264768502@2010-08-31 12:35
rgf对源全篇用,然后trim出你要的部分
接着再和只要undot的部分合并
这样占用的内存能小点...内存还会不会爆就不知道了..
linuxyouxia@2010-08-31 12:40
利用conditionalreader+conditonalfilter改成这样试试
xxx.avs:
- function rgf(clip c)
- {
- c = c.fft3dfilter(sigma=1.5, bt=5, bw=32, bh=32, ow=16, oh=16, sharpen=0.5)
- c = c.deblock(16,8,8)
- c = c.LSFmod()
- return c
- }
-
- n1="""rgf()"""
- n2="""undot().undot()"""
-
-
- filterR="track1.FilterR"
-
- AVCSource("F:\track1.dga")
- LanczosResize(1280,720)
-
- ConditionalFilter(last.ScriptClip("""Eval(Eval("n"+string(filterindex)))"""),last, "filterindex", "greaterthan", "0", false)
- ConditionalReader(filterR, "filterindex")
track1.FilterR
- Type int
- Default 0
- R 0 2388 1
- R 2389 3340 2
- R 3341 4007 1
- R 4008 4437 2
- R 4438 4557 1
- R 4558 7831 2
- R 7832 8328 1
- R 8329 28719 2
- R 28720 30740 1
- R 30741 31916 2
- R 31917 34137 1
- R 34138 34721 2
- 34722 1
longlong6267@2010-08-31 18:00
问题解决 感谢回答 ^_^
| TOP