string

string
posts - 27, comments - 177, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

视频处理脚本语言

Posted on 2012-12-23 06:54 djx_zh 阅读(1060) 评论(0)  编辑 收藏 引用
https://code.google.com/p/videoanalyze/
一个动态编译器项目,用于编译视频处理脚本.VAS
下载vas setup

Quick Start 
1. Download K-Lite_Codec_Pack and install it.
2. Create a .vas file test.vas
3. Copy the following lines into test.vas and save test.vas
invideo = "C:\Users\Public\Videos\Sample Videos\Wildlife.avi";     //视频文件
outvideo = stdout;      // 处理后的视频输出到屏幕
oframe=(frame[1] - frame)*sobel;  // oFrame为输出帧;Frame 表示当前帧;frame[1]是后一帧; sobel 是sobel因子; 此处的*表示滤波。

4. double click test.vas
The edge of objects in the video will show up.

another example  laplas.vas 
// 命令行参数 第一个参数为输入文件, 第二个为输出文件
invideo = $1;     //视频文件
outvideo = $2;     // 处理后的视频输出到文件
oframe= frame*laplas; // Frame 表示当前帧;sobel 是soble因子; 此处的*表示滤波。
Then, run laplas.vas in cmd line
c:\Users\dzh>laplas.vas in.avi out.avi

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理