We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
can i using Gsvideo with IpCam? (Read 2425 times)
can i using Gsvideo with IpCam?
Dec 2nd, 2009, 1:35am
 
on windows,is it possible to using gsvideo with ipcam ?
something like this :pipe = new GSPipeline(this, "gnomevfssrc location=http://xx.xxx.xxx.xxx/xxx-cgi/mjpg/video.cgi?resolution=640x480 ! jpegdec ! ffmpegcolorspace");

any help would be appreciated,or anyone knew any existing library out there.
Re: can i using Gsvideo with IpCam?
Reply #1 - Dec 5th, 2009, 1:16pm
 
i was busy trying that with the ip-cams in our lab... only worked on linux with gnomevfssrc, but i just found another promising way using rtspsrc:

http://gstreamer.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-rtspsrc.html
http://blog.nicolargo.com/2009/04/gstreamer-aime-les-cameras-ip-axis.html

i don't understand much french, though and haven't had time to test it... please write back if you got it running Smiley
Re: can i using Gsvideo with IpCam?
Reply #2 - Dec 6th, 2009, 12:59am
 
thank you for the links,but they'all on linux,i'm trying to figure out how to work on windows,i'm not quite understanding how the pipeline works,i using this
Code:
pipe = new GSPipeline(this, "rtspsrc ! location=rtsp://admin:123456@192.168.0.125/cgi-bin/action?action=loadpage&page=/view/javacam.html&lang=chs! decodebin ! ffmpegcolorspace !  video/x-raw-rgb,bpp=32, depth=24"); 


however,there's no error message but the render window stays grey,no video images. what i'm missing? thank you
Re: can i using Gsvideo with IpCam?
Reply #3 - Dec 6th, 2009, 3:58am
 
i understood that its for linux, but it shows some lines on how to use rtspsrc, which afaik is supported in the windows-binaries of gstreamer (in contrast to gnomevfssrc) Smiley

Last time i tried, i experienced the exact same problem you described... maybe we should ask the gstreamer guys?

I tried to launch the stream directly from gst-launch.exe, but if i remember correctly, it was grey there as well, so i expect the fault not to be in GSVideo...

I hope we can figure it out somehow (i don't own a ip-cam myself, so i can just test it in the lab @ university)
Re: can i using Gsvideo with IpCam?
Reply #4 - Dec 10th, 2009, 2:16pm
 
I think the rtspsrc plugins are the way to go for capturing video from ip cameras under windows. But I don't have any actual experience in this area, since I never used one of such cameras. The gstreamer-winbuilds forum could be a good place to get some feedback:

https://forja.rediris.es/forum/forum.php?forum_id=1624

Or the official gstreamer mailing lists:

http://gstreamer.freedesktop.org/lists/

Re: can i using Gsvideo with IpCam?DESPERATE FOR ANY H
Reply #5 - May 6th, 2010, 5:35am
 
DESPERATE FOR ANY HELP TO MOVE THIS FORWARD AS TIME IS RUNNING OUT

import codeanticode.gsvideo.*;
import hypermedia.video.*;
GSPipeline pipe;
OpenCV opencv;
void setup() {
//  pipe = new GSPipeline(this, "gnomevfssrc location=http://192.168.1.118/axis-cgi/mjpg/video.cgi?resolution=640x480 ! jpegdec ! ffmpegcolorspace");
//  http://192.168.2.3/jpg/image.jpg
pipe = new GSPipeline(this, "gnomevfssrc location=http://192.168.2.3/mjpg/video.mjpg");
opencv = new OpenCV( this );
opencv.allocate(width,height);
}
void draw() {
if (pipe.available() == true) {
   pipe.read();
   opencv.copy(pipe, 0, 0, 640, 480, 0, 0, width, height);
   print ("   hello    ");
}
print ("   not found   ");
}
Re: can i using Gsvideo with IpCam?
Reply #6 - May 6th, 2010, 10:49am
 
Don't multipost your question on the same topic... to bump up your question you may reply to your own post ...

Refer to the original thread for my answer.
Page Index Toggle Pages: 1