In theory it should via the XuggleVideo class. This uses FFMPEG underneath and so should support IP cams. I've tried on my own IP cams but had problems with the authentication (at least I think that is what the problem was). When I get the chance I'll take a look at see if I can find a way around it. Still, in theory it should work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2013-06-18
how it could be done? , any example code is there?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In theory something like new XuggleVideo("rtsp://10.10.10.121/cam0_0"); would do it - you basically just need to provide the URL of the stream provided by the camera.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2013-06-19
ya thank you Jonathon, i have tried XuggleVideo("http://10.xx.xx.xx");
it throws exception java.io.IOException: Server returned HTTP response code: 401 for URL:
my ip camera protected with username and password, then how can i connect it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could try using http://username:password@10.xx.xx.xx (obviously substituting your username and password) as the URL
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2013-06-19
thanks for ur reply sir, bt i stil have error
when trying with rtsp protocol
15:52:54.580 [main] ERROR org.ffmpeg - [rtsp @ 065F0060] method DESCRIBE failed: 404 Stream Not Found
15:52:54.598 [main] DEBUG com.xuggle.xuggler - Could not open output url: rtsp://username:pwd@10.xx.xx.xx (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:436)
URL rtsp://username:pwd@10.xx.xx.xx could not be opened by ffmpeg. Trying to open a stream to the URL instead.
java.net.MalformedURLException: unknown protocol: rtsp *
when trying with http protocol
* 15:55:57.571 [main] DEBUG com.xuggle.xuggler - Could not open output url: http://username:pwd@10.xx.xx.xx (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:436)
URL http://username:pwd@10.xx.xx.xx could not be opened by ffmpeg. Trying to open a stream to the URL instead.
java.io.IOException: Server returned HTTP response code: 401 for URL: http://username:pwd@10.xx.xx.xx *
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you sure you're using the correct url to the camera? usually you would have something after the IP address (like /axis-media/media.3gp for axis cameras using rtsp). Also, does your camera support RTSP, or does it just provide an MJPEG stream? In the latter case you want to use the http protocol, but the URL you provide must include the path to the mjpeg video on the camera.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2013-06-27
Post awaiting moderation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does OpenIMAJ support streaming from IP Cam? If so, is there an example?
In theory it should via the XuggleVideo class. This uses FFMPEG underneath and so should support IP cams. I've tried on my own IP cams but had problems with the authentication (at least I think that is what the problem was). When I get the chance I'll take a look at see if I can find a way around it. Still, in theory it should work.
how it could be done? , any example code is there?
In theory something like
new XuggleVideo("rtsp://10.10.10.121/cam0_0");
would do it - you basically just need to provide the URL of the stream provided by the camera.ya thank you Jonathon, i have tried
XuggleVideo("http://10.xx.xx.xx");
it throws exception
java.io.IOException: Server returned HTTP response code: 401 for URL:
my ip camera protected with username and password, then how can i connect it?
You could try using http://username:password@10.xx.xx.xx (obviously substituting your username and password) as the URL
thanks for ur reply sir, bt i stil have error
when trying with rtsp protocol
15:52:54.598 [main] DEBUG com.xuggle.xuggler - Could not open output url: rtsp://username:pwd@10.xx.xx.xx (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:436)
URL rtsp://username:pwd@10.xx.xx.xx could not be opened by ffmpeg. Trying to open a stream to the URL instead.
java.net.MalformedURLException: unknown protocol: rtsp *
when trying with http protocol
* 15:55:57.571 [main] DEBUG com.xuggle.xuggler - Could not open output url: http://username:pwd@10.xx.xx.xx (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:436)
URL http://username:pwd@10.xx.xx.xx could not be opened by ffmpeg. Trying to open a stream to the URL instead.
java.io.IOException: Server returned HTTP response code: 401 for URL: http://username:pwd@10.xx.xx.xx *
Are you sure you're using the correct url to the camera? usually you would have something after the IP address (like /axis-media/media.3gp for axis cameras using rtsp). Also, does your camera support RTSP, or does it just provide an MJPEG stream? In the latter case you want to use the http protocol, but the URL you provide must include the path to the mjpeg video on the camera.