[Live-devel] Question About live555MediaServer
laimaoli at 126.com
laimaoli at 126.com
Wed Jun 4 04:30:52 PDT 2014
Conditions:live555 both in -Debug mode。
Result:live555MediaServer1 which data come from camera send out by rtsp, the vlc only see screem time run ,but no picture in screem.
live555MediaServer2 which data come from file send out by rtsp,the vlc is ok,can see picture.(this file is come from the live555MediaServer1 program,date come from the camera.)
as i know ,when live555MediaServer2 read from file , first read 15000 bytes, and then parse the Nalu,last sent RTP.
why?
and i ask some friends,they told me that maybe RTP time stamp is not correct here.
I paste a part of output data below.could you help me ,or give me some advices.
//=====================live555 from camera ====================//
accept()ed connection from 192.168.1.151
RTSPClientConnection[0x924f0]::handleRequestBytes() read 124 new bytes:OPTIONS rtsp://192.168.1.200:8554/h264 RTSP/1.0M
CSeq: 2M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
M
parseRTSPRequestString() succeeded, returning cmdName "OPTIONS", urlPreSuffix "", urlSuffix "h264", CSeq "2", Content-Length 0, with 0 bytes following the message.
sending response: RTSP/1.0 200 OKM
CSeq: 2M
Date: Wed, Jun 04 2014 18:52:47 GMTM
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETERM
M
RTSPClientConnection[0x924f0]::handleRequestBytes() read 150 new bytes:DESCRIBE rtsp://192.168.1.200:8554/h264 RTSP/1.0M
CSeq: 3M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
Accept: application/sdpM
M
parseRTSPRequestString() succeeded, returning cmdName "DESCRIBE", urlPreSuffix "", urlSuffix "h264", CSeq "3", Content-Length 0, with 0 bytes following the message.
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
first frame write, ---13
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
first frame write�� ---9
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401907967.491473
9 bytes @1401907967.491473, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
irst frame write�� ---1092
file.264 begin: 6655389
test.264 file size = 22
file.264 end: 6656481
2 fFrameSize 1092-- -fMaxSize 149978 fNumTruncatedBytes:0
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401907967.491473
5 bytes @1401907967.491473, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
first frame write�� ---6562
file.264 begin: 6656481
test.264 file size = 1114
file.264 end: 6663043
3 fFrameSize 6562-- -fMaxSize 148886 fNumTruncatedBytes:0
Parsed 1088-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 5 ("Coded slice of an IDR picture"))
Presentation time: 1401907967.491473
*****This NAL unit ends the current access unit*****
1088 bytes @1401907967.491473, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
first frame write�� ---23267
file.264 begin: 6663043
test.264 file size = 7676
file.264 end: 6686310
4 fFrameSize 23267-- -fMaxSize 142324 fNumTruncatedBytes:0
Parsed 6558-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401907967.524806
*****This NAL unit ends the current access unit*****
6558 bytes @1401907967.524806, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
first frame write�� ---11025
file.264 begin: 6686310
test.264 file size = 30943
file.264 end: 6697335
5 fFrameSize 11025-- -fMaxSize 119057 fNumTruncatedBytes:0
Parsed 23263-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401907967.558139
*****This NAL unit ends the current access unit*****
23263 bytes @1401907967.558139, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
close fp1.
sending response: RTSP/1.0 200 OKM
CSeq: 3M
Date: Wed, Jun 04 2014 18:52:47 GMTM
Content-Base: rtsp://192.168.1.200:8554/h264/M
Content-Type: application/sdpM
Content-Length: 482M
M
v=0M
o=- 1401907933976002 1 IN IP4 127.0.1.1M
s=Session streamed by "testOnDemandRTSPServer"M
i=h264M
t=0 0M
a=tool:LIVE555 Streaming Media v2014.05.25M
a=type:broadcastM
a=control:*M
a=range:npt=0-M
a=x-qt-text-nam:Session streamed by "testOnDemandRTSPServer"M
a=x-qt-text-inf:h264M
m=video 0 RTP/AVP 96M
c=IN IP4 0.0.0.0M
b=AS:1806007888M
a=rtpmap:96 H264/90000M
a=fmtp:96 packetization-mode=1;profile-level-id=42401E;sprop-parameter-sets=Z0JAHqaAtD2Q,aM4wpIA=M
a=control:track1M
RTSPClientConnection[0x924f0]::handleRequestBytes() read 181 new bytes:SETUP rtsp://192.168.1.200:8554/h264/track1 RTSP/1.0M
CSeq: 4M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
Transport: RTP/AVP;unicast;client_port=34338-34339M
M
parseRTSPRequestString() succeeded, returning cmdName "SETUP", urlPreSuffix "h264", urlSuffix "track1", CSeq "4", Content-Length 0, with 0 bytes following the message.
file.264 open :6697335!
sending response: RTSP/1.0 200 OKM
CSeq: 4M
Date: Wed, Jun 04 2014 18:52:47 GMTM
Transport: RTP/AVP;unicast;destination=192.168.1.151;source=192.168.1.200;client_port=34338-34339;server_port=6970-6971M
Session: A5467749;timeout=65M
M
RTSPClientConnection[0x924f0]::handleRequestBytes() read 160 new bytes:PLAY rtsp://192.168.1.200:8554/h264/ RTSP/1.0M
CSeq: 5M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
Session: A5467749M
Range: npt=0.000-M
M
parseRTSPRequestString() succeeded, returning cmdName "PLAY", urlPreSuffix "h264", urlSuffix "", CSeq "5", Content-Length 0, with 0 bytes following the message.
RTCPInstance[0xefc40]::RTCPInstance()
schedule(2.773338->1401907970.574620)
sending REPORT
sending RTCP packet
80c80006 a200c74f d739e97f cd322f27 f69e8991 00000000 00000000 81ca0004 a200c74f 01085461 6c6f6e2e 42520000
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
sending response: RTSP/1.0 200 OKM
CSeq: 5M
Date: Wed, Jun 04 2014 18:52:47 GMTM
Range: npt=0.000-M
Session: A5467749M
RTP-Info: url=rtsp://192.168.1.200:8554/h264/track1;seq=15622;rtptime=4137585282M
M
first frame write, ---13
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
first frame write�� ---9
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401907967.798012
9 bytes @1401907967.798012, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
2 fFrameSize 3237-- -fMaxSize 149978 fNumTruncatedBytes:0
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401907967.798012
5 bytes @1401907967.798012, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
3 fFrameSize 4066-- -fMaxSize 146741 fNumTruncatedBytes:0
Parsed 3233-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401907967.798012
*****This NAL unit ends the current access unit*****
3233 bytes @1401907967.798012, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
4 fFrameSize 2994-- -fMaxSize 142675 fNumTruncatedBytes:0
Parsed 4062-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401907967.831345
*****This NAL unit ends the current access unit*****
4062 bytes @1401907967.831345, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
5 fFrameSize 11106-- -fMaxSize 139681 fNumTruncatedBytes:0
Parsed 2990-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401907967.864678
*****This NAL unit ends the current access unit*****
2990 bytes @1401907967.864678, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
6 fFrameSize 3356-- -fMaxSize 128575 fNumTruncatedBytes:0
Parsed 11102-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401907967.898011
.................................................................
//==========================================
//=============================live555 from file.264===================================
accept()ed connection from 192.168.1.151
RTSPClientConnection[0x924f0]::handleRequestBytes() read 124 new bytes:OPTIONS rtsp://192.168.1.200:8554/h264 RTSP/1.0M
CSeq: 2M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
M
parseRTSPRequestString() succeeded, returning cmdName "OPTIONS", urlPreSuffix "", urlSuffix "h264", CSeq "2", Content-Length 0, with 0 bytes following the message.
sending response: RTSP/1.0 200 OKM
CSeq: 2M
Date: Wed, Jun 04 2014 19:00:39 GMTM
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETERM
M
RTSPClientConnection[0x924f0]::handleRequestBytes() read 150 new bytes:DESCRIBE rtsp://192.168.1.200:8554/h264 RTSP/1.0M
CSeq: 3M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
Accept: application/sdpM
M
parseRTSPRequestString() succeeded, returning cmdName "DESCRIBE", urlPreSuffix "", urlSuffix "h264", CSeq "3", Content-Length 0, with 0 bytes following the message.
file.264 open :8486043!
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
length 1368380
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401908439.432431
9 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401908439.432431
5 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401908439.432431
9 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401908439.432431
5 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401908439.432431
9 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401908439.432431
5 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401908439.432431
9 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401908439.432431
5 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401908439.432431
9 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401908439.432431
5 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 9-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 7 ("Sequence parameter set"))
profile_idc: 66
constraint_setN_flag: 64
level_idc: 30
seq_parameter_set_id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 2
max_num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 44
pic_height_in_map_units_minus1: 29
frame_mbs_only_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
This "Sequence Parameter Set" NAL unit contained no frame rate information, so we use a default frame rate of 30.000000 fps
Presentation time: 1401908439.432431
9 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 5-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 8 ("Picture parameter set"))
Presentation time: 1401908439.432431
5 bytes @1401908439.432431, fDurationInMicroseconds: 0 ((0*1000000)/30.000000)
Parsed 1088-byte NAL-unit (nal_ref_idc: 3, nal_unit_type: 5 ("Coded slice of an IDR picture"))
Presentation time: 1401908439.432431
*****This NAL unit ends the current access unit*****
1088 bytes @1401908439.432431, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
Parsed 211-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401908439.465764
*****This NAL unit ends the current access unit*****
211 bytes @1401908439.465764, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
Parsed 9835-byte NAL-unit (nal_ref_idc: 2, nal_unit_type: 1 ("Coded slice of a non-IDR picture"))
Presentation time: 1401908439.499097
:
*****This NAL unit ends the current access unit*****
9835 bytes @1401908439.499097, fDurationInMicroseconds: 33333 ((1*1000000)/30.000000)
close fp1.
sending response: RTSP/1.0 200 OKM
CSeq: 3M
Date: Wed, Jun 04 2014 19:00:39 GMTM
Content-Base: rtsp://192.168.1.200:8554/h264/M
Content-Type: application/sdpM
Content-Length: 475M
M
v=0M
o=- 1401908425575659 1 IN IP4 127.0.1.1M
s=Session streamed by "testOnDemandRTSPServer"M
i=h264M
t=0 0M
a=tool:LIVE555 Streaming Media v2014.05.25M
a=type:broadcastM
a=control:*M
a=range:npt=0-M
a=x-qt-text-nam:Session streamed by "testOnDemandRTSPServer"M
a=x-qt-text-inf:h264M
m=video 0 RTP/AVP 96M
c=IN IP4 0.0.0.0M
b=AS:500M
a=rtpmap:96 H264/90000M
a=fmtp:96 packetization-mode=1;profile-level-id=42401E;sprop-parameter-sets=Z0JAHqaAtD2Q,aM4wpIA=M
a=control:track1M
RTSPClientConnection[0x924f0]::handleRequestBytes() read 181 new bytes:SETUP rtsp://192.168.1.200:8554/h264/track1 RTSP/1.0M
CSeq: 4M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
Transport: RTP/AVP;unicast;client_port=44542-44543M
M
parseRTSPRequestString() succeeded, returning cmdName "SETUP", urlPreSuffix "h264", urlSuffix "track1", CSeq "4", Content-Length 0, with 0 bytes following the message.
file.264 open :8486043!
sending response: RTSP/1.0 200 OKM
CSeq: 4M
Date: Wed, Jun 04 2014 19:00:39 GMTM
Transport: RTP/AVP;unicast;destination=192.168.1.151;source=192.168.1.200;client_port=44542-44543;server_port=6970-6971M
Session: EF66CCEB;timeout=65M
M
RTSPClientConnection[0x924f0]::handleRequestBytes() read 160 new bytes:PLAY rtsp://192.168.1.200:8554/h264/ RTSP/1.0M
CSeq: 5M
User-Agent: LibVLC/2.0.8 (LIVE555 Streaming Media v2011.12.23)M
Session: EF66CCEBM
Range: npt=0.000-M
M
parseRTSPRequestString() succeeded, returning cmdName "PLAY", urlPreSuffix "h264", urlSuffix "", CSeq "5", Content-Length 0, with 0 bytes following the message.
RTCPInstance[0xefc88]::RTCPInstance()
schedule(1.117119->1401908440.823485)
sending REPORT
sending RTCP packet
80c80006 39771c18 d739eb57 b4e618ce f0405a8f 00000000 00000000 81ca0004 39771c18 01085461 6c6f6e2e 42520000
H264or5VideoStreamParser::parse() EXCEPTION (This is normal behavior - *not* an error)
//===================================== ==================================================================
laimaoli at 126.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140604/c919c923/attachment-0001.html>
More information about the live-devel
mailing list