1
Graphics / RGBA to BGR
« on: February 17, 2011, 05:27:50 pm »
I'm just using direcshow capture and spitting pointers to the video data out to opengl for display.
This seems to work fine as far as display goes. With a fast machine I can display 2 1920x1080 video inputs with very little problem. My real enemy is latency, but initial tests seem to suggest it's generally under 10ms and so far has been no more than one frame. As I refine the code I expect it to actually go up because I'm not doing much error checking right now. Howver, as long as it stays below 30ms I should be fine.
I plan to look at the ffmpeg library, especially when I get to a port to linux, but my only experience with it so far was using a java wrapper for it on a project a couple years ago.
As far as the RGBA conversion goes, this would only be for capturing frames as a "still store", so the time isn't too big a deal if I do it in a thread.
If you have some suggestions on how ffmpeg might be used here, I'd love to get more details.
thanks,
morris
This seems to work fine as far as display goes. With a fast machine I can display 2 1920x1080 video inputs with very little problem. My real enemy is latency, but initial tests seem to suggest it's generally under 10ms and so far has been no more than one frame. As I refine the code I expect it to actually go up because I'm not doing much error checking right now. Howver, as long as it stays below 30ms I should be fine.
I plan to look at the ffmpeg library, especially when I get to a port to linux, but my only experience with it so far was using a java wrapper for it on a project a couple years ago.
As far as the RGBA conversion goes, this would only be for capturing frames as a "still store", so the time isn't too big a deal if I do it in a thread.
If you have some suggestions on how ffmpeg might be used here, I'd love to get more details.
thanks,
morris