snakajima / VideoShader2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VideoShader

Script-based real-time video processing engine for iOS and macOS.

Overview

VideoShader is a script-based video processing engine for iOS and macOS, which allows developers and designers to design video pipelines by combining multiple CIFilters.

VideoShader Script

VideoShader Script (VSScript) is the JSON-based language, which makes it very easy for developoers to describe video pipelines. At runtime, the VideoShader compiles the script into OpenGL shading language (GLSL), and executes it very efficiently.

Here is the famous "cartoon filter" described in VSScript.

{
    "title":"Cartoon I",
    "pipeline":[
        { "filter":"boxblur", "ui":{ "primary":["radius"] }, "attr":{"radius":2.0} },
        { "control":"fork" },
        { "filter":"boxblur", "attr":{"radius":2.0} },
        { "filter":"toone", "ui":{ "hidden":["weight"] } },
        { "control":"swap" },
        { "filter":"sobel" },
        { "filter":"canny_edge", "attr":{ "threshold":0.19, "thin":0.50 } },
        { "filter":"anti_alias" },
        { "blender":"alpha" }
    ]
}

License

All code is licensed under the GPL2 for free to any individuals, schools, non-profit organizations and small corporations (less than $1M/year revenue). You need to copy&paste this section into your license section.

I, however, would really appreciate if you could purchase VideoShader Composer, which allows you to interactively create and edit video pipelines (in VSScript).

If any corporation whose annual revenue is more than $1 million wants to use this software for commercial purpose, please contact me for a commercial license.

About


Languages

Language:Swift 95.3%Language:Metal 4.7%