<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<BR><BR>I am working on streaming H.264 video file to the remote PC. The H.264 file can be streamed by the unicast method and displayed in VLC player on the remote PC. But when I adopted the multicast method, the VLC can not show any image as it opened the RTSP stream. I have used Wireshark to compare the RTP packages which streamed by the unicast and multicast methodes, separately. I found they are equivalent. Then I checked the SDP when the VLC accessed the RTST server. It seems to be right. Could someone help me?<BR><BR>I have read the discussion "[Live-devel] H264 video frame problem" that mentioned <BR>[ The "sprop-parameter-sets" string in your SDP description is wrong. <BR>You must pass a proper "sprop_parameter_sets_str" parameter to <BR>"H264VideoRTPSink::createNew()". This "sprop_parameter_sets_str" <BR>should be the Base64-encoded strings for the
PPS and SPS NAL units, <BR>separated by a comma (',') character.]. <BR><BR>But when I streamed the H.264 file by unicsat method successfully , the sprop-parameter-sets has been set “h264”. Therefore i think the sprop-parameter-sets=h264 does't influence the stream when using multicast method. Is it right?<BR><BR>Thanks<BR>Best Regards<BR><BR>--------------------------------------------------------------------------------<BR>multicast:<BR>parseRTSPRequestString() returned cmdName "OPTIONS", urlPreSuffix "", urlSuffix<BR>"h264"<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 20<BR>Date: Thu, Jan 01 1970 15:05:41 GMT<BR>Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE<BR><BR>RTSPClientSession[0x1dda00]::incomingRequestHandler1() read 155 bytes:DESCRIBE r<BR>tsp://192.168.0.196:8554/h264 RTSP/1.0<BR>CSeq: 21<BR>Accept: application/sdp<BR>User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)<BR><BR><BR>parseRTSPRequestString() returned
cmdName "DESCRIBE", urlPreSuffix "", urlSuffix<BR>"h264"<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 21<BR>Date: Thu, Jan 01 1970 15:05:41 GMT<BR>Content-Base: rtsp://192.168.0.196:8554/h264/<BR>Content-Type: application/sdp<BR>Content-Length: 513<BR><BR>v=0<BR>o=- 54340067602 1 IN IP4 192.168.0.196<BR>s=Session streamed by "test h.264"<BR>i=h264<BR>t=0 0<BR>a=tool:LIVE555 Streaming Media v2008.04.02<BR>a=type:broadcast<BR>a=control:*<BR>a=source-filter: incl IN IP4 * 192.168.0.196<BR>a=rtcp-unicast: reflection<BR>a=range:npt=0-<BR>a=x-qt-text-nam:Session streamed by "test h.264"<BR>a=x-qt-text-inf:h264<BR>m=video 18888 RTP/AVP 96<BR>c=IN IP4 232.245.108.238/255<BR>a=rtpmap:96 H264/90000<BR>a=fmtp:96 packetization-mode=1;profile-level-id=000042;sprop-parameter-sets=h264<BR>a=control:track1<BR>RTSPClientSession[0x1dda00]::incomingRequestHandler1() read 188 bytes:SETUP rtsp<BR>://192.168.0.196:8554/h264/track1 RTSP/1.0<BR>CSeq: 22<BR>Transport:
RTP/AVP;multicast;client_port=18888-18889<BR>User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)<BR><BR><BR>parseRTSPRequestString() returned cmdName "SETUP", urlPreSuffix "h264", urlSuffi<BR>x "track1"<BR>fIsMulticast RTP_UDP<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 22<BR>Date: Thu, Jan 01 1970 15:05:41 GMT<BR>Transport: RTP/AVP;multicast;destination=232.245.108.238;source=192.168.0.196;po<BR>rt=18888-18889;ttl=255<BR>Session: 1<BR><BR>RTSPClientSession[0x1dda00]::incomingRequestHandler1() read 158 bytes:PLAY rtsp:<BR>//192.168.0.196:8554/h264/ RTSP/1.0<BR>CSeq: 23<BR>Session: 1<BR>Range: npt=0.000-<BR>User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)<BR><BR><BR>parseRTSPRequestString() returned cmdName "PLAY", urlPreSuffix "h264", urlSuffix<BR>""<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 23<BR>Date: Thu, Jan 01 1970 15:05:41 GMT<BR>Range: npt=0.000-<BR>Session: 1<BR>RTP-Info:
url=rtsp://192.168.0.196:8554/h264/track1;seq=14331;rtptime=236795800<BR><BR>--------------------------------------------------------------------------------<BR><BR><BR><BR>--------------------------------------------------------------------------------<BR>unicast:<BR>parseRTSPRequestString() returned cmdName "OPTIONS", urlPreSuffix "", urlSuffix<BR>"h264"<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 25<BR>Date: Thu, Jan 01 1970 17:37:10 GMT<BR>Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE<BR><BR>RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 155 bytes:DESCRIBE r<BR>tsp://192.168.0.196:8557/h264 RTSP/1.0<BR>CSeq: 26<BR>Accept: application/sdp<BR>User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)<BR><BR><BR>parseRTSPRequestString() returned cmdName "DESCRIBE", urlPreSuffix "", urlSuffix<BR>"h264"<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 26<BR>Date: Thu, Jan 01 1970 17:37:10 GMT<BR>Content-Base:
rtsp://192.168.0.196:8557/h264/<BR>Content-Type: application/sdp<BR>Content-Length: 466<BR><BR>v=0<BR>o=- 63404909982 1 IN IP4 192.168.0.196<BR>s=RTSP/RTP stream from IPNC<BR>i=h264<BR>t=0 0<BR>a=tool:LIVE555 Streaming Media v2008.04.02<BR>a=type:broadcast<BR>a=control:*<BR>a=range:npt=0-<BR>a=x-qt-text-nam:RTSP/RTP stream from IPNC<BR>a=x-qt-text-inf:h264<BR>m=video 0 RTP/AVP 96<BR>c=IN IP4 0.0.0.0<BR>a=rtpmap:96 H264/90000<BR>a=fmtp:96 packetization-mode=1;profile-level-id=000042;sprop-parameter-sets=h264<BR>a=control:track1<BR>m=audio 0 RTP/AVP 0<BR>c=IN IP4 0.0.0.0<BR>a=control:track2<BR>RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 184 bytes:SETUP rtsp<BR>://192.168.0.196:8557/h264/track1 RTSP/1.0<BR>CSeq: 27<BR>Transport: RTP/AVP;unicast;client_port=1644-1645<BR>User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)<BR><BR><BR>parseRTSPRequestString() returned cmdName "SETUP", urlPreSuffix "h264", urlSuffi<BR>x
"track1"<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 27<BR>Date: Thu, Jan 01 1970 17:37:10 GMT<BR>Transport: RTP/AVP;unicast;destination=192.168.0.198;source=192.168.0.196;client<BR>_port=1644-1645;server_port=6970-6971<BR>Session: 1<BR><BR>RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 196 bytes:SETUP rtsp<BR>://192.168.0.196:8557/h264/track2 RTSP/1.0<BR>CSeq: 28<BR>Transport: RTP/AVP;unicast;client_port=1646-1647<BR>Session: 1<BR>User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)<BR><BR><BR>parseRTSPRequestString() returned cmdName "SETUP", urlPreSuffix "h264", urlSuffi<BR>x "track2"<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 28<BR>Date: Thu, Jan 01 1970 17:37:10 GMT<BR>Transport: RTP/AVP;unicast;destination=192.168.0.198;source=192.168.0.196;client<BR>_port=1646-1647;server_port=6972-6973<BR>Session: 1<BR><BR>RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 158 bytes:PLAY
rtsp:<BR>//192.168.0.196:8557/h264/ RTSP/1.0<BR>CSeq: 29<BR>Session: 1<BR>Range: npt=0.000-<BR>User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)<BR><BR><BR>parseRTSPRequestString() returned cmdName "PLAY", urlPreSuffix "h264", urlSuffix<BR>""<BR>startPlaying<BR>MediaSink::startPlaying<BR>continuePlaying()<BR>buildAndSendPacket:<BR>startPlaying<BR>MediaSink::startPlaying<BR>continuePlaying()<BR>buildAndSendPacket:<BR>sending response: RTSP/1.0 200 OK<BR>CSeq: 29<BR>Date: Thu, Jan 01 1970 17:37:10 GMT<BR>Range: npt=0.000-<BR>Session: 1<BR>RTP-Info: url=rtsp://192.168.0.196:8557/h264/track1;seq=18214;rtptime=4159189830<BR>,url=rtsp://192.168.0.196:8557/h264/track2;seq=8502;rtptime=89305239<BR>-------------------------------------------------------------------------------------</td></tr></table><br>___________________________________________________ <br> 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! <br>
http://messenger.yahoo.com.tw/