Twitter 放出 Vireo,一套以 MIT License 釋出的 Video Processing Library:「Introducing Vireo: A Lightweight and Versatile Video Processing Library」。專案庫在 GitHub 的 twitter/vireo 可以取得。
用 C++ 寫的,另外也已經提供 Scala 的接口,這應該是讓 Twitter 的人可以方便使用:
Vireo is a lightweight and versatile video processing library that powers our video transcoding service, deep learning recognition systems and more. It is written in C++11 and built with functional programming principles. It also optionally comes with Scala wrappers that enable us to build scalable video processing applications within our backend services.
在 Tools 的部份也可以看到很多功能,像是:
thumbnails: extracts keyframes from the input video and saves them as JPG images
viddiff: checks if two video files are functionally identical or not (does not compare data that does not affect the playback behavior)
另外要注意的是,預設不會將 GPL 的套件納入編譯,需要指定 --enable-gpl
才會編進去:
The following libraries are disabled by default. To enable GPL licensed components, they have to be present in your system and --enable-gpl flag have to be explicitly passed to
configure
看起來主要就是最常見的那包... (libavformat / libavcodec / libavutil / libswscale / libx264)