Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
242 views
in Technique[技术] by (71.8m points)

ffmpeg和libx264的license问题?

我用node-fluent-ffmpeg这个module提供的api
来帮我把影片从webm转换成mp4用x264编码(encode)

这个模组需要设定ffmpeg binary file(ffmpeg.exe)的执行路径
(二进制档案是我从FFmpeg上下载的已经编译好的)
然后才能call api转档

或是我要自己用chile_process把执行路径移到有FFmpeg二进制档案的目录

用下command的方式做转档

然后最后整个程式会用ELECTRON打包起来
变成一个client app

在FFmpeg之下转档的libx264似乎是GPL的license

如果在FFmpeg官方的下载页面
选择LGPL版本的FFmpeg
libx264就用不了因为
libx264没有被包含在LGPL版本的ffmpeg里面

所以用到libx264就要开源吗?能够商业使用吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

能否开源能否商用是两码事儿,开源也可以商用、商用也可以开源。

GPL 有传染性,用了就全都得 GPL。libx264 是 GPL 的。

ffmpeg 默认是 LGPL 的,但你要启用 GPL 编译参数的话就整个变 GPL 的了。

REF: http://www.videolan.org/devel...

In addition to being free to use under the GNU GPL, x264 is also available under a commercial license. Contact [email protected] for more details.

P.S. 国内这个 License 环境吧,啧啧 .....


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...