niiyan/2005-03-29 のバックアップソース(No.2)

[[niiyan]]

***[[freeframeプラグイン:http://forum.doom9.org/showthread.php?s=&threadid=92174]](FreeFrameのフィルタを利用可能にするプラグイン) [#mba22066]
-''freeframe &color(green){[2.5]}; &color(blue){[RGB24/RGB32((利用するFreeFrameフィルタによって異なる。))]};''
--作者 / Fredrik Mellbin
--説明 / [[FreeFrame:http://freeframe.sourceforge.net/]]のフィルタを利用可能にするフィルタプラグイン。GUIを使って調整することが可能。ただし、GUIを利用するには、同梱されているfreeframeconf.dllをパスの通ったディレクトリ(例: "C:\WINDOWS\System32\"など)に置く必要がある((freeframe.txtによると、AviSynthのオートローディング用ディレクトリでもよいとあるが、v1.1で試したところ、VirtualDubが強制終了しました。))。
--プラグイン / freeframe.dll
--URL / http://yatta.mellbin.org/misc/

-[[映像効果]]のページに追加。

-[[FreeFrame:http://freeframe.sourceforge.net/]]とは?
--[[:::FreeFrame Open Realtime Video Effects::::http://freeframe.sourceforge.net/]]
> FreeFrame is the open-source cross-platform real-time video effects plugin system designed for use in VJing applications(FreeFrameは、VJアプリケーション向けの、オープンソースで、クロスプラットフォームな、リアルタイム・ビデオエフェクトプラグインシステムです。)

--FreeFrameプラグインは、[[:::FreeFrame Open Realtime Video Effects::::http://freeframe.sourceforge.net/downloads.html]]からダウンロードできるほか、[[SourceForge.net: Project Info - FreeFrame Open Video Plugin System:http://sourceforge.net/projects/freeframe/]]からダウンロードできるパッケージにも含まれている。

-書式
#code(nonumber){{
Freeframe(clip, string dllname, bool showgui[, lots of varying optional arguments])
}}

--dllname: FreeFrameプラグインのパス
--showgui: true/GUIを使用する, false/使用しない。
--lots of varying optional arguments: 使用するFreeFrameプラグインによって異なる。

-使用例
--ソースクリップのスクリーンショット~
&ref(freeframe_source_clip.png);

--スクリプト(その1)
#code(nonumber){{
freeframe("C:\FreeFrame\plugins\petespiralblur.dll",true,0,0)
}}

--スクリプト(その1)のスクリーンショット~
&ref(freeframe_petespiralblur_true_0_0.png);

--スクリプト(その2)
#code(nonumber){{
# オプションの引数は、bool、stringかfloat(0-1まで)
freeframe("C:\FreeFrame\plugins\petespiralblur.dll",true,0.25,0)
}}

--スクリプト(その2)のスクリーンショット~
&ref(freeframe_petespiralblur_true_025_0.png);

--GUI画面~
&ref(freeframe_gui_of_petespiralblur.png);
---GUI画面の下部にスクリプトが表示される。スライドバーを動かすと、スクリプトも変化する。ただし、プレビュー画面はリアルタイムに切り替わらない。

***プレビュー時における注意 [#t39d0b1e]
-[[Doom9's Forum - YV12 cropping question (Not in FAQ):http://forum.doom9.org/showthread.php?s=&postid=631575#post631575]](IanB氏の発言を引用)
> Many apps, like VirtualDub*, use either DivX or Xvid codecs to convert YV12 to RGB for display and both get it wrong (differently).~
&br;
For viewing/testing append a ConvertToRGB() to the end of your script, this will provide an accurate display of your script output.