[Live-devel] live555ProxyServer

sergio at comm5.com.br sergio at comm5.com.br
Thu May 14 12:50:04 PDT 2015


 

Hi; 

First, I would like to apologise for the long text, but I
tryed to explain as much as I can. 

I am developing an application
based on live555ProxyServer.cpp and I am facing a problem that I could
reproduce using live555ProxyServer and ffplay.exe(client). 

It happens
in both LINUX and WINDOWS. 

1) The sources I tryed are an IP CAMERA and
a DVR with 4 cameras and it happens with both. 

 I start the
proxyServer using the following commands: 

 DVR -> ./live555ProxyServer
-V rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream. 

 IP CAM ->
./live555ProxyServer -V
rtsp://admin:1@192.168.1.10/channel=1&stream=0.sdp? 

 Then I start the
client: ffplay rtsp://192.168.1.128:8554/proxyStream. 

 And then the
image is shown with no problems, even if I open other instances of
ffplay. 

 THE PROBLEM HAPPENS WHEN I CLOSE THE CLIENTS (FFPLAY) AND TRY
TO PLAY AGAIN AFTER SOME TIME (ABOUT 1 OR 2 MINUTES). 

 The client
connects to the server, but no image is sent. The only way to see the
images again is to restart the server. 

 THE SERVER KEEP SENDIGN AND
RECEIVING THE COMANDS BELOW AND EVERYTHING IS NORMAL (I CAN RESTART THE
CLIENT AS MANY TIMES AS I WANT): 

_ Sending request: OPTIONS
rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream RTSP/1.0_
_ CSeq:
9_
_ Authorization: Digest username="admin", realm="Embedded Net DVR",
nonce="2521f210c",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="5f495769ca6c756bafe40933cab4f793"_
_ User-Agent:
ProxyRTSPClient (LIVE555 Streaming Media v2015.05.03)_
_ Session:
241688867_ 

_ Received 100 new bytes of response data._
_ Received a
complete OPTIONS response:_
_ RTSP/1.0 200 OK_
_ CSeq: 9_
_ Public:
OPTIONS, DESCRIBE, SETUP, PLAY, TEARDOWN, PAUSE, SET_PARAMETER_ 

  BUT
WHEN THE SERVER SHOWS THE COMAND BELOW, NOTHING WORKS ANYMORE AND I HAVE
TO RESTART THE SERVER. 


ProxyServerMediaSubsession["H264"]::closeStreamSource()
 Sending
request: PAUSE rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream
RTSP/1.0
 CSeq: 10
 Authorization: Digest username="admin",
realm="Embedded Net DVR", nonce="2521f210c",
uri="rtsp://admin:1@192.168.1.121//h264/ch1/main/av_stream",
response="44ff6bb71b0a77b445816c19cd99f521"
 User-Agent: ProxyRTSPClient
(LIVE555 Streaming Media v2015.05.03)
 Session: 241688867 


ProxyServerMediaSubsession["PCMU"]::closeStreamSource()
 Received 45 new
bytes of response data.
 Received a complete PAUSE response:
 RTSP/1.0
405 Method Not Allowed
 CSeq: 10 

2) How is the properly way to end the
EVENTLOOP. 

 I am using th watchVariable to do that (
env->taskScheduler().doEventLoop(&watchVariable); ), but sometimes it
does not work an I get the following message from linux: 

 FAILED TO
CREATE RTSP SERVER: BIND() ERROR (PORT NUMBER: 8554): ADDRESS ALREADY IN
USE 

 And after some time the port is released. 

Thank you very much


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150514/9ffd845a/attachment.html>


More information about the live-devel mailing list