简体   繁体   English

C ++视频处理循环

[英]C++ video processing loop

I want to write an application which takes a video stream and in the cycle do processing frames and fragments of audio. 我想编写一个应用程序,该应用程序接收视频流,并在循环中处理音频的帧和片段。

I saw such loop here : 我在这里看到这样的循环:

I saw on the forums some solution with pipes here 我在论坛上看到了一些管道解决方案在这里

Is it any library wrapper on ffmpeg/avlib which I could just write my callback without tones of spaghetti around like here 是ffmpeg / avlib上的任何库包装器吗,我可以像这样在这里写回叫而没有意大利面条的音调

I would look into using Opencv for this. 我会考虑为此使用Opencv。 It takes care of a lot of the problems with video streams for you and allows processing on the individual frames. 它为您解决了视频流的许多问题,并允许在单个帧上进行处理。

Here simple and easy to follow examples: 这里简单易用的示例:

https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples

I'm assuming you have experienced C++ programmer so these examples will give you a good start (btw, examples in C). 我假设您有丰富的C ++程序员经验,因此这些示例将为您提供一个良好的起点(顺便说一句,C语言中的示例)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM