在哪里可以找到libav,ffmpeg等的现代教程? [英] Where can I find modern tutorials for libav, ffmpeg, etc?

查看:102
本文介绍了在哪里可以找到libav,ffmpeg等的现代教程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用C编写一个快速程序,打开一个视频,将每一帧保存为ppm,并转储运动矢量.我所能找到的所有教程都来自大约十年前,并调用了不赞成使用或不存在的函数.

I want to make a quick program in C that will open a video, save each frame as a ppm, and dump motion vectors. All the tutorials I can find are from almost ten years ago and call deprecated or non-existent functions.

是否有任何优秀的在线资源,网站,视频或教科书都可以用一种现代的方式来做这些事情?

Are there any good online resources, websites, videos, or textbooks that cover a modern approach to doing these types of things?

推荐答案

我已经与ffmpeg和libav一起工作了几年,也没有发现最新的API级别的教程.有时,我只需要深入研究源代码以了解正在发生的事情以及如何使用它.另外,阅读CLI程序的源代码(使用基础库)也可以提供很多信息.

I have been working with ffmpeg and libav for several years and also have found no decent recent API-level tutorials. Sometimes I just have to dive into the source to figure out what is going on and how to use it. Also, reading the source for the CLI programs (which use the underlying libraries) can also be informative.

实际上, Libav 提供了Doxygen文档,但没有分步教程. IMO,这是开放源代码项目的典型特征:源代码可能不错,但通常缺少文档.

In fact, ffmpeg recommends that you just read source code, either for real OSS projects or their examples. Libav provides Doxygen documentation, but no step-by-step tutorials. IMO this is typical of open source projects: the source may be good, but documentation is often lacking.

退后一步,您可以考虑 OpenCV ,该文档已被详细记录(

Taking a step back, you might consider OpenCV, which is well documented (books exist!) and has an easier API. Lastly, ppm is such a simple format you could probably write a 50 line function to save the pixels yourself, and I found a motion extraction program here.

这篇关于在哪里可以找到libav,ffmpeg等的现代教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆