I have created an RTSP server using your library that streams video frames in a 
custom format, using the M bit to indicate the end of the frame.  Each frame is 
roughly 400KB.  I have been trying to use openRTSP to receive the stream and 
output each frame to a file using the following command line parameters: "-S 0 
-b 406528 -Q -m".

Initially each file that was created by openRTSP was only 140 bytes.  I then 
realized that I needed to set "doNormalMBitRule" to True in 
MediaSession::initiate().  Once I did that, I get file sizes that are the exact 
size that I am expecting.  However, now the entire file, with the exception of 
a very few bytes at the beginning and scattered seemingly randomly throughout, 
contains all zeros.  Using wireshark I can verify that the actual non-zero data 
is being sent.  The QoS statistics also show that no packets were dropped.

Does anyone have any idea of what may be causing this?  I have included the 
openRTSP output from one 3 second run below in case that helps.

Thanks,
Tyson Wiser

------------------------ Begin openRTSP output ----------------------------
Opening connection to 172.17.1.107, port 8554...
...remote connection opened
Sending request: OPTIONS rtsp://172.17.1.107:8554/WIDEAREA RTSP/1.0
CSeq: 2
User-Agent: openRTSP.exe (LIVE555 Streaming Media v2010.11.17)


Received 152 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Thu, Dec 16 2010 18:37:14 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, 
SET_PARAMETER


Sending request: DESCRIBE rtsp://172.17.1.107:8554/WIDEAREA RTSP/1.0
CSeq: 3
User-Agent: openRTSP.exe (LIVE555 Streaming Media v2010.11.17)
Accept: application/sdp


Received 549 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Date: Thu, Dec 16 2010 18:37:14 GMT
Content-Base: rtsp://172.17.1.107:8554/WIDEAREA/
Content-Type: application/sdp
Content-Length: 382

v=0
o=- 1292524551253004 1 IN IP4 172.17.1.107
s=LIVE555 Streaming Media v
i=LIVE555 Streaming Media v
t=0 0
a=tool:LIVE555 Streaming Media v2010.11.17
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:LIVE555 Streaming Media v
a=x-qt-text-inf:LIVE555 Streaming Media v
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:18874
a=rtpmap:96 Logos/3
a=control:track1

Opened URL "rtsp://172.17.1.107:8554/WIDEAREA", returning a SDP description:
v=0
o=- 1292524551253004 1 IN IP4 172.17.1.107
s=LIVE555 Streaming Media v
i=LIVE555 Streaming Media v
t=0 0
a=tool:LIVE555 Streaming Media v2010.11.17
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:LIVE555 Streaming Media v
a=x-qt-text-inf:LIVE555 Streaming Media v
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:18874
a=rtpmap:96 Logos/3
a=control:track1

Created receiver for "video/LOGOS" subsession (client ports 55606-55607)
Sending request: SETUP rtsp://172.17.1.107:8554/WIDEAREA/track1 RTSP/1.0
CSeq: 4
User-Agent: openRTSP.exe (LIVE555 Streaming Media v2010.11.17)
Transport: RTP/AVP;unicast;client_port=55606-55607


Received 203 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Date: Thu, Dec 16 2010 18:37:14 GMT
Transport: RTP/AVP;unicast;destination=172.17.1.107;source=172.17.1.107;client_p
ort=55606-55607;server_port=6970-6971
Session: 00007A96


Setup "video/LOGOS" subsession (client ports 55606-55607)
Created output file: "video-LOGOS-1"
Sending request: PLAY rtsp://172.17.1.107:8554/WIDEAREA/ RTSP/1.0
CSeq: 5
User-Agent: openRTSP.exe (LIVE555 Streaming Media v2010.11.17)
Session: 00007A96
Range: npt=0.000-3.000


Received 188 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 5
Date: Thu, Dec 16 2010 18:37:14 GMT
Range: npt=0.000-
Session: 00007A96
RTP-Info: url=rtsp://172.17.1.107:8554/WIDEAREA/track1;seq=26975;rtptime=2147490
323


Started playing session
Receiving streamed data (for up to 3.000000 seconds)...
begin_QOS_statistics
subsession      video/LOGOS
num_packets_received    2556
num_packets_lost        0
elapsed_measurement_time        3.000309
kBytes_received_total   3658.752000
measurement_sampling_interval_ms        1000
kbits_per_second_min    9753.258360
kbits_per_second_ave    9755.667166
kbits_per_second_max    9758.194278
packet_loss_percentage_min      0.000000
packet_loss_percentage_ave      0.000000
packet_loss_percentage_max      0.000000
inter_packet_gap_ms_min 0.004000
inter_packet_gap_ms_ave 1.043790
inter_packet_gap_ms_max 399.562000
end_QOS_statistics
Sending request: TEARDOWN rtsp://172.17.1.107:8554/WIDEAREA/ RTSP/1.0
CSeq: 6
User-Agent: openRTSP.exe (LIVE555 Streaming Media v2010.11.17)
Session: 00007A96


Received 65 new bytes of response data.
Received a complete TEARDOWN response:
RTSP/1.0 200 OK
CSeq: 6
Date: Thu, Dec 16 2010 18:37:17 GMT


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to