- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/greggman/ffmpegserver.js
- 软件文档: https://github.com/greggman/ffmpegserver.js
软件介绍
这是一个简单的 Node 服务器和开发库用于将 Canvas 帧发送到服务器,并使用 ffmpeg 对视频进行压缩。可独立使用或者跟 CCapture.js 一起使用。
使用步骤:
安装 Node
克隆此项目源码或者下载源码压缩包
进入 repo 目录并运行 npm install
执行 node start.js
示例代码:
var capturer = new CCapture( {
format: 'ffmpegserver',
framerate: 60,
verbose: true,
name: "foobar", // videos will be named foobar-#.mp4, untitled if not set.
extension: ".mp4", // extension for file. default = ".mp4"
codec: "mpeg4", // this is an valid ffmpeg codec "mpeg4", "libx264", "flv1", etc...
// if not set ffmpeg guesses based on extension.
} );
capturer.start();
function render(){
// rendering stuff ...
capturer.capture( canvas );
}
requestAnimationFrame(render);
capturer.stop();
capturer.save( function( url, size ) { /* ... */ } );
Effective Python
布雷特·斯拉特金(Brett Slatkin) / 爱飞翔 / 机械工业出版社 / 2016-1 / 59
用Python编写程序,是相当容易的,所以这门语言非常流行。但若想掌握Python所特有的优势、魅力和表达能力,则相当困难,而且语言中还有很多隐藏的陷阱,容易令开发者犯错。 本书可以帮你掌握真正的Pythonic编程方式,令你能够完全发挥出Python语言的强大功能,并写出健壮而高效的代码。Scott Meyers在畅销书《Effective C++》中开创了一种以使用场景为主导的精练教学方......一起来看看 《Effective Python》 这本书的介绍吧!
在线进制转换器
各进制数互转换器
RGB CMYK 转换工具
RGB CMYK 互转工具
