Page 1 of 1

Getting Tunneled RTSP from IP camera behind a Proxy

Posted: 30 Jun 2012 07:29
by zahidmadeel
Hello all,
When I set IE's proxy to (212.78.237.156:3128) and open axrtsphttp://10.00408CBEA493/axis-media/media.amp in windows media player, It gets through the proxy and runs the h264 stream (tunneled over HTTP) after authentication. 212.78.237.156:3128 is the proxy that in fact does the address translation of host name like 10.00408CBE493. Now, I want a way to run tunneled RTSP stream for same camera in VLC player. I have tried setting http proxy to 212.78.237.156:3128 and enabling RTP over RTSP (over TCP) and Tunnel RTP and RTSP over HTTP in vlc settings: prefrence=>Input/Codecs=>RTP/RTSP section. Even with these settings I failed to run the tunneled RTSP stream from the camera. I am using lvc 2.0.1 Twoflower. Please guide me how can I do this task in VLC medai palyer.

Thanks
Adeel

Re: Getting Tunneled RTSP from IP camera behind a Proxy

Posted: 30 Jun 2012 23:00
by VLC_help
Tools -> Messages (set Verbosity to 2), then open the URL. When the opening fails, the message log will complain.

Re: Getting Tunneled RTSP from IP camera behind a Proxy

Posted: 02 Jul 2012 09:53
by zahidmadeel
Ok, I have set the verbosity to 2 and tried to open rtsp://23.00408CBEA493/axis-media/media.amp. The proxy was set to 212.78.237.156:3128 and User RTP over RTSP (TCP) and Tunnel RTP and RTSP over HTTP options were ticked in RTP/RTSP/SDP demuxer settings. This is what I get in messages with verbosity set to 2

main debug: adding item `URL skipped because forum complains' ( rtsp://23.00408CBEA493/axis-media/media.amp )
qt4 debug: Adding a new MRL to recent ones: rtsp://23.00408CBEA493/axis-media/media.amp
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: processing request item: URL skipped because forum complains, node: null, skip: 0
main debug: resyncing on rtsp://23.00408CBEA493/axis-media/media.amp
main debug: URL skipped because forum complains is at 0
main debug: starting playback of the new playlist item
main debug: creating new input thread
main debug: Creating an input for 'URL skipped because forum complains'
main debug: no fetch required for (null) (art currently (null))
main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\SARFRA~1\AppData\Local\Temp'
main debug: `URL skipped because forum complains' gives access `rtsp' demux `' path `23.00408CBEA493/axis-media/media.amp'
main debug: creating demux: access='rtsp' demux='' location='23.00408CBEA493/axis-media/media.amp' file='\\23.00408CBEA493\axis-media\media.amp'
main debug: looking for access_demux module: 1 candidate
live555 debug: version 2011.12.23
qt4 debug: IM: Setting an input
live555 debug: connection timeout
live555 error: Failed to connect with URL skipped because forum complains
main debug: no access_demux module matching "rtsp" could be loaded
main debug: TIMER module_need() : 8392.919 ms - Total 8392.919 ms / 1 intvls (Avg 8392.919 ms)
main debug: creating access 'rtsp' location='23.00408CBEA493/axis-media/media.amp', path='\\23.00408CBEA493\axis-media\media.amp'
main debug: looking for access module: 1 candidate
main debug: net: connecting to 23.00408CBEA493 port 554
main error: cannot resolve 23.00408CBEA493 port 554 : No such host is known.
access_realrtsp error: cannot connect to 23.00408CBEA493:554
access_realrtsp debug: could not connect to: 23.00408CBEA493/axis-media/media.amp
main debug: no access module matching "rtsp" could be loaded
main debug: TIMER module_need() : 3387.393 ms - Total 3387.393 ms / 1 intvls (Avg 3387.393 ms)
main error: open of `URL skipped because forum complains' failed
main debug: dead input
main debug: changing item without a request (current 0/1)
main debug: nothing to play
qt4 debug: IM: Deleting the input
main debug: TIMER input launching for 'URL skipped because forum complains' : 11805.989 ms - Total 11805.989 ms / 1 intvls (Avg 11805.988 ms)

Re: Getting Tunneled RTSP from IP camera behind a Proxy

Posted: 02 Jul 2012 10:18
by Serena-S
I would guess that the http proxy settings are not used by live555 rtsp. So the address translation doesn't work.

Re: Getting Tunneled RTSP from IP camera behind a Proxy

Posted: 02 Jul 2012 10:20
by zahidmadeel
How can we solve this problem then?

Re: Getting Tunneled RTSP from IP camera behind a Proxy

Posted: 02 Jul 2012 13:01
by Serena-S
With your network topology you could use the mjpg stream from the AXIS. This will need more bandwidth, but you will be able to access the stream from the camera. I don't see an other way.

Re: Getting Tunneled RTSP from IP camera behind a Proxy

Posted: 02 Jul 2012 13:09
by zahidmadeel
Thanks Serena-s. Yes, you are right about Motion Jpegs. We are already doing that. But, I would still doubt that getting RTSP from camera in this topology is impossible. I have been able to get H264 stream tunneled over http through windows media player. But for that, I had to set IE proxy to 212.78.237.156:3128. Please note that there is an option in WMP of setting proxy different from browser but setting proxy withing WMP does not work. I believe RTSP over HTTP is the answer to our problem but question is how it would work with VLC.