Using the OpenIMAJ
library can I capture and record video from an IP camera and also show live video in a web application?
Asked
Active
Viewed 835 times
0

Jonathan
- 20,053
- 6
- 63
- 70

rpandidurai
- 307
- 1
- 5
- 13
1 Answers
1
I've not got an IP camera to test with, but in theory you can use the XuggleVideo
class to do it - you basically just need to provide the URL of the stream provided by the camera:
Video<MBFImage> video = new XuggleVideo("rtsp://10.10.10.121/cam0_0");
Any type of stream/url that FFmpeg supports should work.

Jon
- 841
- 4
- 5
-
I am getting an error "java.net.MalformedURLException: unknown protocol: rtsp". video=new XuggleVideo("rtsp://192.168.1.109"); – Kona Suresh May 31 '18 at 10:57