[Live-devel] RTSP Stream from remote machine

Sam Hudson sam.hudson at thefoundry.co.uk
Tue Nov 18 03:41:09 PST 2014


Hi,

I have compiled the './testH264VideoStreamer' prog, and it seems to work
fine. Ive used openRTSP from the local machine, and it received the stream
to file as it should. However the machine is an amazone EC2 instance, which
has a public, and private ip address.

When trying to access the stream using the public ip address it does not
work. When using openRTSP from a remote machine, this is the output. It
appears its trying to use the internal ip address when receiving the stream
data.

Could anyone give me a heads up on the correct way to set this up?

$ ./openRTSP rtsp://
ec2-54-171-254-16.eu-west-1.compute.amazonaws.com:8554/testStream
Opening connection to 54.171.254.16, port 8554...
...remote connection opened
Sending request: OPTIONS rtsp://
ec2-54-171-254-16.eu-west-1.compute.amazonaws.com:8554/testStream RTSP/1.0
CSeq: 2
User-Agent: ./openRTSP (LIVE555 Streaming Media v2014.11.12)


Received 152 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, Nov 18 2014 11:38:54 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


Sending request: DESCRIBE rtsp://
ec2-54-171-254-16.eu-west-1.compute.amazonaws.com:8554/testStream RTSP/1.0
CSeq: 3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2014.11.12)
Accept: application/sdp


Received 760 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Date: Tue, Nov 18 2014 11:38:54 GMT
Content-Base: rtsp://172.31.9.199:8554/testStream/
Content-Type: application/sdp
Content-Length: 591

v=0
o=- 1416309499604805 1 IN IP4 172.31.9.199
s=Session streamed by "testH264VideoStreamer"
i=test.264
t=0 0
a=tool:LIVE555 Streaming Media v2014.11.12
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 172.31.9.199
a=rtcp-unicast: reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "testH264VideoStreamer"
a=x-qt-text-inf:test.264
m=video 18888 RTP/AVP 96
c=IN IP4 232.76.230.47/255
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96
packetization-mode=1;profile-level-id=64001F;sprop-parameter-sets=Z2QAH6wrQEAINgIgAAB9AAA6mBHjhlQ=,aO48sA==
a=control:track1

Opened URL "rtsp://
ec2-54-171-254-16.eu-west-1.compute.amazonaws.com:8554/testStream",
returning a SDP description:
v=0
o=- 1416309499604805 1 IN IP4 172.31.9.199
s=Session streamed by "testH264VideoStreamer"
i=test.264
t=0 0
a=tool:LIVE555 Streaming Media v2014.11.12
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 172.31.9.199
a=rtcp-unicast: reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "testH264VideoStreamer"
a=x-qt-text-inf:test.264
m=video 18888 RTP/AVP 96
c=IN IP4 232.76.230.47/255
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96
packetization-mode=1;profile-level-id=64001F;sprop-parameter-sets=Z2QAH6wrQEAINgIgAAB9AAA6mBHjhlQ=,aO48sA==
a=control:track1

Created receiver for "video/H264" subsession (client ports 18888-18889)
Sending request: SETUP rtsp://172.31.9.199:8554/testStream/track1 RTSP/1.0
CSeq: 4
User-Agent: ./openRTSP (LIVE555 Streaming Media v2014.11.12)
Transport: RTP/AVP;multicast;client_port=18888-18889


Received 196 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Date: Tue, Nov 18 2014 11:38:54 GMT
Transport:
RTP/AVP;multicast;destination=232.76.230.47;source=172.31.9.199;port=18888-18889;ttl=255
Session: ADC6AB32;timeout=65


-- 
-- 
*Sam Hudson*
*Software Engineer*
The Foundry
Web: www.thefoundry.co.uk
Email: sam.hudson at thefoundry.co.uk

The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20141118/7a75f1f2/attachment-0001.html>


More information about the live-devel mailing list