![](/img/trans.png)
[英]How to calculate FPS of a live video stream using Chrono and OpenCV?
[英]How to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream?
如何使用FFMPEG打開文件\\實時流使用openCV編輯每個幀並保存為使用FFMPEGfile \\ live stream編碼?
嗯,這很簡單。
我建議你從簡單的ffmpeg解碼例子開始。 有了它你得到一個結構,這是一個FFMPEG圖像。 您必須將其轉換為opencv圖像結構(IplImage)。 然后您可以應用任何opencv操作。 然后你可以看看FFMPEG編碼示例,你有整個處理鏈:)
重點是將FFMPEG圖像結構轉換為opencv圖像結構。 閱讀完文檔后,這很簡單(代碼?)。
如果您有更精確的需求,請編輯您的問題。
MY2C
下面是如何使用OpenCV捕獲視頻流的示例,編碼為mpeg-4然后deocde回到:
http://dimitri-christodoulou.blogspot.com/2012/02/encode-and-decode-video-from-memory.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.