如何打开文件\\实时流与FFMPEG编辑与OpenCV的每一帧,并且保存为带FFMPEGfile \\实时流codeD? [英] How to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream?

查看:527
本文介绍了如何打开文件\\实时流与FFMPEG编辑与OpenCV的每一帧,并且保存为带FFMPEGfile \\实时流codeD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何打开文件\\实时流与FFMPEG编辑与OpenCV的每一帧,并且保存为带FFMPEGfile codeD \\现场直播?

How to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream?

推荐答案

那么它很简单。

我建议你用简单的ffmpeg解码例子开始。随着你得到一个结构这是一个FFMPEG图像。你必须将它转换为OpenCV的图像结构(的IplImage)。然后你可以应用任何OpenCV的操作。然后你可以看一下FFMPEG编码的例子,你有你的整个加工链:)

I suggest you begin with the simple ffmpeg decoding example. With that you get a struct which is an FFMPEG image. You have to convert it to an opencv image struct (IplImage). Then you can apply any opencv operation. Then you can look at FFMPEG encoding example and you have your whole processing chain :)

问题的关键是转换图像FFMPEG以结构OPENCV图像结构。您已经阅读文档(在code?)之后,它是非常简单的。

The point is to convert FFMPEG image struct to opencv image struct. It is quite simple after you have read the documentation (the code ?).

编辑您的问题,如果你有更多的precise需求。

Edit your question if you have more precise needs.

MY2C

这篇关于如何打开文件\\实时流与FFMPEG编辑与OpenCV的每一帧,并且保存为带FFMPEGfile \\实时流codeD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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