0

avisynth を使用してフレームのペアを読み取り、処理する必要があります。

eg
frame1 + frame2 => result1    
frame2 + frame3 => result2
frame3 + frame4 => result3

selecteven() および selectodd() コマンドは知っていますが、frame1 と 2、次に frame3 と 4
が表示されます。「if()」を実行して現在のステップを特定したり、グラブしたフレームを押し戻したりする方法はありません。 .

これを実装する方法はありますか?

4

1 に答える 1

0
//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 2,3 3,4 4,5 5,6 などを与える

avisynth の ps コメントは # ではなく // ですが、SO の書式設定を壊します。
pps は、一部のビットを強調表示する構文である理由や、どの言語をどのように推測したかを知りません。

于 2010-10-13T21:48:35.717 に答える