C api on capturing video stream from webcam using ffmpeg

∥☆過路亽.° 提交于 2019-12-12 13:40:35

问题


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.

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.

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

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

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


回答1:


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.

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.



来源:https://stackoverflow.com/questions/17639983/c-api-on-capturing-video-stream-from-webcam-using-ffmpeg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!