我需要用avisynth读取成对的帧并处理它们。
eg
frame1 + frame2 => result1
frame2 + frame3 => result2
frame3 + frame4 => result3我知道selecteven()和selectodd()命令,但是它们给了我frame1和2,然后是frame3和4。
没有办法做一个"if()“来计算出我在哪一步上,或者推回一个抓取的帧。
你知道怎么实现这个吗?
发布于 2010-10-14 05:48:36
//assuming video is the input
even = SelectEven(video)
odd = SelectOdd(video)
// should produce 0,1 1,2 2,3 ....
// seems bad to have to split into odd and even then interleave them back together
// but Select only works with interleaved sources
interleave(even,odd)
SelectEvery(2,0,-1,0,1)
trim(2,0)
right = SelectEven()
left = SelectOdd() 将给出0,1,1, 2 ,3,3, 4 , 5 ,6等
avisynth中的ps注释是# not //,但它破坏了SO格式。
pps不知道为什么它会高亮显示一些语法,也不知道它是如何猜测是哪种语言的。
https://stackoverflow.com/questions/3602817
复制相似问题