After some time of karaoke effect making, tools like
VSFilter (WinGDI) and
Overlua (Cairo) weren't enough anymore, so the next step should be an OpenGL filter for Avisynth - and here it is.
FLuaG calls scripts in scripting language
Lua to render with
OpenGL on video frames or modify audio data.
Downloads:
Github
Usage:
Code:
FLuaG(clip c, string video = void, string audio = void, bool onscreen = false, bool samples32 = false, string userdata = void)
- c: Clip with video and/or audio.
- video: Lua script, extended with OpenGL and other utility functions, for working on video frames.
- audio: Lua script for working on audio samples.
- onscreen: OpenGL render context visible? (needed for graphic cards which don't support window offscreen rendering)
- samples32: Samples with size of 32 bit instead of 16 bit?
- userdata: AVS variable names for sending data to Lua.
Video presentation
Todo:- Lua functions
- FFT
- TGA loading & saving
- Outline path utilities
- Others
- Examples: advanced karaoke and drawing
- Documentation: extended + german version
Changelog:
Version 0.5 (11.12.2011):- Userdata (AVS variables to Lua)
- Option for 32 bit samples
- More utility functions (math and print path)
Version 0.4 (24.11.2011):- New process structure (similar to Avisynth Filter SDK)
- OpenGL 2.1 support
- Audio access
- various fixes
Version 0.3 (13.07.2011):- Just one OpenGL context for the whole progress (frame-wise before)
- flDrawPath's internal tesselation combine function call doesn't change color to black/alpha=0 if there're no alternative colors
Version 0.2 (09.07.2011):- Faster frame processing
- Compiled for .NET 3.5
- Function fixes: math.on_line, math.in_triangle, glReadPixels, flDrawPath
- Color and pixel data from range 0-255 changed to 0-1
- OpenGL 1.3