How to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream?
views:
72answers:
1
+1
A:
Well it is quite simple.
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 :)
The point is to convert FFMPEG image struct to opencv image struct. It is quite simple after you have read the documentation (the code ?).
Edit your question if you have more precise needs.
my2c
neuro
2010-07-08 15:02:36