使用ffmpeg从网络摄像头捕获视频流的C API [英] C api on capturing video stream from webcam using ffmpeg

查看:64
本文介绍了使用ffmpeg从网络摄像头捕获视频流的C API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ffmpeg的新用户.Ffmpeg在命令行中使用它有很好的文档,但是我正在寻找一些C API代码.

I am a new user of ffmpeg. Ffmpeg has a good documentation on using it in command-line, but i am looking for some C API code.

我想用C制作一个软件,该软件可以捕获来自网络摄像头的视频流,并以原始格式提供给我,然后再用编解码器进行编码.

I want to make a software using C, that would capture video stream from webcam and give me the video stream in raw format, that I would encode in a codec later.

我已经访问了这个给定的链接,但是它仅提供命令行使用,而不提供ffmpeg提供的库的使用: http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20webcam%20input

I have visited this given link, but it provided only the command-line use, not the use of libraries provided by ffmpeg: http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20webcam%20input

我也访问了此链接,这给了我使用libavcodec的好主意,但是没有其他可用的教程: ffmpeg C API文档/教程

I also visited this link, which gave me good idea on using the libavcodec, but no other tutorial is available : ffmpeg C API documentation/tutorial

请有人帮我找到使用ffmpeg的库从网络摄像头捕获视频流时使用的C api.预先感谢.

Please someone help me finding C api on video stream capturing from webcam using ffmpeg's library. Thanks in advance.

推荐答案

您基本上是在重复您要提到的问题.FFmpeg基本上是库的名称,并且是随时可以使用的工具(命令行界面).它的后端是一组库:libavcodec,libavformat,swscale等.

You are basically repeating the question you are referring to. FFmpeg is basically the name of the library and the ready to use tool (command line interface). Its back end is a set of libraries: libavcodec, libavformat, swscale etc.

关于这些库,没有全面的文档,而是提供了示例,邮件列表和其他稀疏资源.而且,这些库是开放源代码的,一旦将各个部分放在一起,所有这些库都将非常有用.关于的特定问题在StackOverflow上被询问/回答为好吧.

There is no comprehensive documentation on these libraries, instead there are samples, there is mailing list and other sparse resources. Also, the libraries are open source and all these are quite usable once you get the pieces together. Specific questions on ffmpeg are asked/answered on StackOverflow as well.

这篇关于使用ffmpeg从网络摄像头捕获视频流的C API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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