之前一直对 FFmpeg 这个工具有些模糊,后来才知道这个工具或者说开源项目的源码是用
C语言
开发的,是一个基于
CLI
(command line based,即
命令行)的、用来处理媒体文件的实用程序。这里,
主要讲一下在Python编译环境下使用ffmpeg的方法(主要是基于
Mac OS
系统,Linux的教程可以
点击)。
ffmpeg is a CLI (command line based) utility for processing media files. It is a framework with a multitude of features and, because of it’s open source license, it is the base for many widespread apps such as VLC, YouTube, iTunes and many more.
1. ffmpeg
FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.
FFmpeg 是视频处理最常用的开源软件。
它功能强大,用途广泛,大量用于视频网站和商业软件(比如 Youtube 和 iTunes),也是许多音频和视频格式的标准编码/解码实现。
-
ffmpeg的官网地址:https://www.ffmpeg.org/
-
ffmpeg的github项目地址:https://github.com/FFmpeg/FFmpeg
-
ffmpeg官方说明文档:ffmpeg Documentation
-
python版的ffmpeg项目地址:https://github.com/kkroening/ffmpeg-python
-
python版的ffmpeg官方文档:https://kkroening.github.io/ffmpeg-python/
-
大神雷霄骅(已逝)的文章:[总结]FFMPEG视音频编解码零基础学习方法
2. 安装
Linux
暂略:可以参考