Menu

IP Cam

Anonymous
2013-01-26
2013-06-27
  • Anonymous

    Anonymous - 2013-01-26

    Does OpenIMAJ support streaming from IP Cam? If so, is there an example?

     
  • David Dupplaw

    David Dupplaw - 2013-01-28

    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.

     
  • Anonymous

    Anonymous - 2013-06-18

    how it could be done? , any example code is there?

     
  • Jonathon Hare

    Jonathon Hare - 2013-06-18

    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.

     
  • 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?

     
  • Jonathon Hare

    Jonathon Hare - 2013-06-19

    You could try using http://username:password@10.xx.xx.xx (obviously substituting your username and password) as the URL

     
  • 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 *

     
  • Jonathon Hare

    Jonathon Hare - 2013-06-19

    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.

     
  • Anonymous

    Anonymous - 2013-06-27
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.