Hi,
I was wondering if any of you people have had success streaming video between mac and windows (xp or vista) machines?
Here in the forum it looks like video streaming has only been successful with gstreamer, which looks like it will not work on windows so unfortunately not an option.
I am working on a project that includes two interactive installations sending live video feed and events to each other, possibly over the internet but would be happy just to make it work over LAN. For starters Iām trying to get the video streaming to work (much like a video conferencing app).
I have tried sending video from a webcam between two openframeworks apps by modifying the TCP and UDP examples from the ofxNetwork addon. TCP runs acceptable on very low res (100 x 75), would have to implement throttling for bigger images and test it. Although UDP is more suited for my installation since speed can become an issue.
Oddly I canāt get UDP to work with the same resolution (100 x 75), for some reason I canāt receive UDP messages of a length greater than something around 7500, the length needed is 100 x 75 x 3 = 22500 bytes (and much more when stepping up to bigger resolutions). Any ideas of why UDP wonāt work? Here is my UDP Client and Server code:
Client:
void testApp::update(){
camGrabber.grabFrame();
if (camGrabber.isFrameNew()){
const char* pixels = (const char*)camGrabber.getPixels();
connection.Send(pixels, /*camGrabber.getHeight() * camGrabber.getWidth() * 3*/ 7500);
img.setFromPixels((unsigned char*)pixels, camGrabber.getWidth(), camGrabber.getHeight());
}
}
Server:
void testApp::update(){
char udpMessage[CAM_WIDTH * CAM_HEIGHT * 3];
connection.Receive(udpMessage, CAM_WIDTH * CAM_HEIGHT * 3);
receivedImg.setFromPixels((unsigned char*)udpMessage, CAM_WIDTH, CAM_HEIGHT);
}
The server is not receiving anything if the client sends a message longer than something around 7500.
Also I would like to know how you people would solve this problem (video streaming/conferencing) in openframeworks? Iām open to all suggestions and do not mind exploring additional addons or libraries.