[Live-devel] Using openRTSP in a script / batch file

Sanjeeva Reddy Dontireddy sanjeeva.reddy at sreesaila.com
Wed Oct 5 06:57:32 PDT 2011


Dear Team,

 

For your reference, below is the full output when I run the openRTSP.exe
<url>

 

 

C:\Sanjeeva\SW\live\testProgs>openrtsp -d 15 -Q
"rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp"

Opening connection to 192.168.200.136, port 1935...

...remote connection opened

Sending request: OPTIONS
rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp RT

SP/1.0

CSeq: 2

User-Agent: C:\Sanjeeva\SW\live\testProgs\openRTSP.exe (LIVE555 Stream

ing Media v2011.09.19)

 

 

Received 205 new bytes of response data.

Received a complete OPTIONS response:

RTSP/1.0 200 OK

Supported: play.basic, con.persistent

Cseq: 2

Server: Wowza Media Server 2.2.3.06 build26955

Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD,
GET_P

ARAMETER

 

 

Sending request: DESCRIBE
rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp R

TSP/1.0

CSeq: 3

User-Agent: C:\Sanjeeva\SW\live\testProgs\openRTSP.exe (LIVE555 Stream

ing Media v2011.09.19)

Accept: application/sdp

 

 

Received 845 new bytes of response data.

Received a complete DESCRIBE response:

RTSP/1.0 200 OK

Content-Base: rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp/

Date: Wed, 5 Oct 2011 18:53:40 IST

Content-Length: 541

Session: 1705606974;timeout=60

Expires: Wed, 5 Oct 2011 18:53:40 IST

Cseq: 3

Content-Type: application/sdp

Server: Wowza Media Server 2.2.3.06 build26955

 

v=0

o=- 1705606974 1705606974 IN IP4 127.0.0.1

s=WowzaMediaServer

c=IN IP4 0.0.0.0

t=0 0

a=sdplang:en

a=range:npt=now-

a=control:*

m=audio 0 RTP/AVP 96

a=rtpmap:96 mpeg4-generic/12000/1

a=fmtp:96
profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdelta

length=3;config=1488

a=control:trackID=1

m=video 0 RTP/AVP 97

a=rtpmap:97 H264/90000

a=fmtp:97
packetization-mode=1;profile-level-id=42E00C;sprop-parameter-sets=Z0Lg

DJZSAoP2A8oKCgoE,aM48gA==

a=cliprect:0,0,240,320

a=framesize:97 320-240

a=control:trackID=2

 

Opened URL "rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp", returning
a S

DP description:

v=0

o=- 1705606974 1705606974 IN IP4 127.0.0.1

s=WowzaMediaServer

c=IN IP4 0.0.0.0

t=0 0

a=sdplang:en

a=range:npt=now-

a=control:*

m=audio 0 RTP/AVP 96

a=rtpmap:96 mpeg4-generic/12000/1

a=fmtp:96
profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdelta

length=3;config=1488

a=control:trackID=1

m=video 0 RTP/AVP 97

a=rtpmap:97 H264/90000

a=fmtp:97
packetization-mode=1;profile-level-id=42E00C;sprop-parameter-sets=Z0Lg

DJZSAoP2A8oKCgoE,aM48gA==

a=cliprect:0,0,240,320

a=framesize:97 320-240

a=control:trackID=2

 

Created receiver for "audio/MPEG4-GENERIC" subsession (client ports
63244-63245)

 

Created receiver for "video/H264" subsession (client ports 63246-63247)

Sending request: SETUP
rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp/trac

kID=1 RTSP/1.0

CSeq: 4

User-Agent: C:\Sanjeeva\SW\live\testProgs\openRTSP.exe (LIVE555 Stream

ing Media v2011.09.19)

Transport: RTP/AVP;unicast;client_port=63244-63245

 

 

Received 280 new bytes of response data.

Received a complete SETUP response:

RTSP/1.0 200 OK

Date: Wed, 5 Oct 2011 18:53:40 IST

Transport:
RTP/AVP;unicast;client_port=63244-63245;source=192.168.200.136;server

_port=7054-7055

Session: 1705606974;timeout=60

Expires: Wed, 5 Oct 2011 18:53:40 IST

Cseq: 4

Server: Wowza Media Server 2.2.3.06 build26955

 

 

Setup "audio/MPEG4-GENERIC" subsession (client ports 63244-63245)

Sending request: SETUP
rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp/trac

kID=2 RTSP/1.0

CSeq: 5

User-Agent: C:\Sanjeeva\SW\live\testProgs\openRTSP.exe (LIVE555 Stream

ing Media v2011.09.19)

Transport: RTP/AVP;unicast;client_port=63246-63247

Session: 1705606974

 

 

Received 280 new bytes of response data.

Received a complete SETUP response:

RTSP/1.0 200 OK

Date: Wed, 5 Oct 2011 18:53:41 IST

Transport:
RTP/AVP;unicast;client_port=63246-63247;source=192.168.200.136;server

_port=7056-7057

Session: 1705606974;timeout=60

Expires: Wed, 5 Oct 2011 18:53:41 IST

Cseq: 5

Server: Wowza Media Server 2.2.3.06 build26955

 

 

Setup "video/H264" subsession (client ports 63246-63247)

Created output file: "audio-MPEG4-GENERIC-1"

Created output file: "video-H264-2"

Sending request: PLAY rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp/
RTSP

/1.0

CSeq: 6

User-Agent: C:\Sanjeeva\SW\live\testProgs\openRTSP.exe (LIVE555 Stream

ing Media v2011.09.19)

Session: 1705606974

Range: npt=0.000-15.000

 

 

Received 320 new bytes of response data.

Received a complete PLAY response:

RTSP/1.0 200 OK

Range: npt=now-

Session: 1705606974;timeout=60

Cseq: 6

RTP-Info:
url=rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp/trackID=1;seq

=1;rtptime=3405142940,url=rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.s
dp/t

rackID=2;seq=1;rtptime=1916251922

Server: Wowza Media Server 2.2.3.06 build26955

 

 

Started playing session

Receiving streamed data (for up to 15.000000 seconds)...

begin_QOS_statistics

subsession      audio/MPEG4-GENERIC

num_packets_received    0

num_packets_lost        277585

elapsed_measurement_time        15.004669

kBytes_received_total   0.000000

measurement_sampling_interval_ms        1000

kbits_per_second_min    unavailable

kbits_per_second_ave    unavailable

kbits_per_second_max    unavailable

packet_loss_percentage_min      0.000000

packet_loss_percentage_ave      100.000000

packet_loss_percentage_max      100.000000

inter_packet_gap_ms_min 2147483.647000

inter_packet_gap_ms_ave 0.000000

inter_packet_gap_ms_max 0.000000

subsession      video/H264

num_packets_received    0

num_packets_lost        -54815

elapsed_measurement_time        15.004669

kBytes_received_total   0.000000

measurement_sampling_interval_ms        1000

kbits_per_second_min    unavailable

kbits_per_second_ave    unavailable

kbits_per_second_max    unavailable

packet_loss_percentage_min      0.000000

packet_loss_percentage_ave      100.000000

packet_loss_percentage_max      100.000000

inter_packet_gap_ms_min 2147483.647000

inter_packet_gap_ms_ave 0.000000

inter_packet_gap_ms_max 0.000000

end_QOS_statistics

Sending request: TEARDOWN
rtsp://192.168.200.136:1935/livefeed/AAJTAK_QVGA.sdp/

RTSP/1.0

CSeq: 7

User-Agent: C:\Sanjeeva\SW\live\testProgs\openRTSP.exe (LIVE555 Stream

ing Media v2011.09.19)

Session: 1705606974

 

 

Received 108 new bytes of response data.

Received a complete TEARDOWN response:

RTSP/1.0 200 OK

Session: 1705606974;timeout=60

Cseq: 7

Server: Wowza Media Server 2.2.3.06 build26955

 

 

Thanking You,

 

Regards'

Sanjeeva Reddy

Sreesaila - Logo 400X320- Final

Sreesaila Networks Pvt. Ltd. | Ph: +91 40 23076655 | Mobile: +91 9000616655
| Website: www.sreesaila.com

 

From: Sanjeeva Reddy Dontireddy [mailto:sanjeeva.reddy at sreesaila.com] 
Sent: Wednesday, October 05, 2011 6:50 PM
To: 'live-devel at lists.live555.com'
Subject: Using openRTSP in a script / batch file

 

Hi Team,

 

Background:

We would like to use openRTSP.exe in a Windows batch file to test the RTSP
URLs (from Darwin Streaming Server).

Job of the batch file is to check whether the URL is accessible and playing
without any problems. 

The RTSP URLs requires MD5 checksum to access.

 

My sequence of requirements in a batch file is:

1.       Inputs: RTSP URL (e.g:
rtsp://StreamingServer.com/live_media/program.sdp), current time stamp,
Secret KEY (to generate MD5 checksum)

2.       Using the inputs, generate MD5 checksum

3.       Append the checksum to RTSP URL
(rtsp://StreamingServer.com/live_media/program.sdp<generated MD5 checksum>)

4.       Using openRTSP.exe test the RTSP URL
(rtsp://StreamingServer.com/live_media/program.sdp<generated MD5 checksum>),
SETUP, PLAY, RECORD, and TEARDOWN. From the recorded output file, we shall
check the size if it is greater than 0 bytes to get confirmed whether data
is there or not.

5.       Check the results of each phase and return OK (if all are returning
status '200-OK') or FAIL (if any or all are failing) status.

 

 

Support Required:

I tried compiling the source code following the instructions. As I am not
familiar with development (coding/compiling), I used Borland compiler. I
followed the instructions (step-by-step) as guidelined by Vassselin from
your website.

 

Everything was ok, but for in LiveMedia compiling (highlighted below). Error
messages were "undefined function '_lseek64' in 'SeekFIle64' function"  and
"undefined function '_telli64' in 'Tellifile64' function"

 

#if (defined(__WIN32__) || defined(_WIN32)) && !defined(_WIN32_WCE)

  return _lseeki64(_fileno(fid), offset, whence) == (int64_t)-1 ? -1 : 0;

#else

#if defined(_WIN32_WCE)

  return fseek(fid, (long)(offset), whence);

#else

  return fseeko(fid, (off_t)(offset), whence);

#endif

#endif

 

 

 

#if (defined(__WIN32__) || defined(_WIN32)) && !defined(_WIN32_WCE)

  return _telli64(_fileno(fid));

#else

#if defined(_WIN32_WCE)

  return ftell(fid);

#else

  return ftello(fid);

#endif

#endif

 

Then, I commented all the above lines and run make again. Then it went
through and giving errors (while building 'testprogs') about not able to
find common (Borland's).obj and .lib files, which I copied to the directory.
Then, it went ok and gave the .exe files.

 

Now, when I run the 'openRTSP.exe' with -Q and -d <time in secs> options (of
course using -d option as the program is not coming out from playing even
after default 5 secs completed), it is running and giving '200-Ok' status
from all states (Describe, Setup, Play, and Teardown) and creating two files
(one for audio and the other for video). However, both files are of 0 bytes
and the info from QOS output is showing 100% packet loss (0 received and all
packets loss)

 

Can you please suggest me how we can get the data recorded in files and
packets received in QOS? I do not know whether it is able to receive the
packets from streaming while PLAY. However some bytes were received at every
stage from the server with '200-OK' response.

 

Please help!

 

 

Thanking You,

 

Regards'

Sanjeeva Reddy

Sreesaila - Logo 400X320- Final

Sreesaila Networks Pvt. Ltd. | Ph: +91 40 23076655 | Mobile: +91 9000616655
| Website: www.sreesaila.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111005/bff71bf3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1443 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111005/bff71bf3/attachment-0001.jpe>


More information about the live-devel mailing list