The original tutorials have now been updated. I won't be maintaining this project anymore, and am keeping it here for historical reasons.
This repository contains files from an FFmpeg tutorial originally written by Stephen Dranger (dranger@gmail.com). The files have been updated to work with the most recent version of FFmpeg (see VERSION.txt for the most recent version at the time of writing). The updates were performed with an effort to modify as little code as possible, so that the original code and tutorial descriptions could be easily consulted.
The code from the original tutorial and the accompanying description is located here.
This section describes the changes made to work around deprecated functions and symbols, in the format: before --> after. In some cases, a simple rename sufficed (e.g. dump_format), but in others, more significant changes to the code were required (e.g. avcodec_decode_audio2). Consult the diffs for each respective tutorial to see exactly what has changed since the original version of the tutorial.
First, make sure you have a recent installation of FFmpeg. It's recommended that you build FFmpeg from source as described in this link.
To build the tutorials:
git clone git@github.com:chelyaev/ffmpeg-tutorial.git
cd ffmpeg-tutorial
make
To run a tutorial, first make sure that your ffmpeg installation is on your $LD_LIBRARY_PATH and then:
bin/tutorial01.out
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。