Skip to content

feixiao/ffmpeg-tutorial

 
 

Repository files navigation

ffmpeg-tutorial


教程实验代码来自mpenkov/ffmpeg-tutorial,作者已经停止维护,我在他的基础上,修改了代码学习FFmpeg。

作者的声明如下:

The original tutorials have now been updated. I won't be maintaining this project anymore, and am keeping it here for historical reasons.


环境说明:

  • Ubuntu 16.04.1 LTS
  • FFmpeg 2.8.7
  • SDL 1.2

编译运行

  • 首先通过源代码安装FFmpeg 2.8.7,然后编译本教程代码,通过如下命令:

      git clone https://github.com/feixiao/ffmpeg-tutorial.git
      cd ffmpeg-tutorial
      make
    
  • 通过如下命令运行程序:

    bin/tutorial01.out

实验例子:

  • tutorial01
    • 将前面的5帧图像分别保存到文件。
  • tutorial02
    • 使用SDL播放视频帧数据。
  • tutorial03
    • 播放音视频数据。
  • tutorial04
    • 增加独立线程处理视频数据。
  • tutorial05
    • 在tutorial04的基础上面增加pts进行同步。
  • tutorial06
    • 在tutorial05的基础上面选择不同的音视频同步策略。
  • tutorial07
    • 在tutorial06的基础上面增加seek处理。
  • tutorial08
    • 使用rtp打包aac和h264文件。

参考资料

About

A set of tutorials that demonstrates how to write a video player based on FFmpeg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.4%
  • Makefile 0.6%