[Live-devel] Using openRTSP in a script / batch file
Sanjeeva Reddy Dontireddy
sanjeeva.reddy at sreesaila.com
Wed Oct 5 06:53:17 PDT 2011
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/d9e949aa/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/d9e949aa/attachment-0001.jpe>
More information about the live-devel
mailing list