[Live-devel] H264 multicast streaming question

spopo316 at yahoo.com.tw spopo316 at yahoo.com.tw
Thu Sep 10 01:47:48 PDT 2009


Hi,

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?

I have read the discussion "[Live-devel] H264 video frame problem" that mentioned 
[ The "sprop-parameter-sets" string in your SDP description is wrong. 
You must pass a proper "sprop_parameter_sets_str" parameter to 
"H264VideoRTPSink::createNew()". This "sprop_parameter_sets_str" 
should be the Base64-encoded strings for the PPS and SPS NAL units, 
separated by a comma (',') character.]. 

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?

Thanks
Best Regards

--------------------------------------------------------------------------------
multicast:
parseRTSPRequestString() returned cmdName "OPTIONS", urlPreSuffix "", urlSuffix
"h264"
sending response: RTSP/1.0 200 OK
CSeq: 20
Date: Thu, Jan 01 1970 15:05:41 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE

RTSPClientSession[0x1dda00]::incomingRequestHandler1() read 155 bytes:DESCRIBE r
tsp://192.168.0.196:8554/h264 RTSP/1.0
CSeq: 21
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)


parseRTSPRequestString() returned cmdName "DESCRIBE", urlPreSuffix "", urlSuffix
"h264"
sending response: RTSP/1.0 200 OK
CSeq: 21
Date: Thu, Jan 01 1970 15:05:41 GMT
Content-Base: rtsp://192.168.0.196:8554/h264/
Content-Type: application/sdp
Content-Length: 513

v=0
o=- 54340067602 1 IN IP4 192.168.0.196
s=Session streamed by "test h.264"
i=h264
t=0 0
a=tool:LIVE555 Streaming Media v2008.04.02
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 192.168.0.196
a=rtcp-unicast: reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "test h.264"
a=x-qt-text-inf:h264
m=video 18888 RTP/AVP 96
c=IN IP4 232.245.108.238/255
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=000042;sprop-parameter-sets=h264
a=control:track1
RTSPClientSession[0x1dda00]::incomingRequestHandler1() read 188 bytes:SETUP rtsp
://192.168.0.196:8554/h264/track1 RTSP/1.0
CSeq: 22
Transport: RTP/AVP;multicast;client_port=18888-18889
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)


parseRTSPRequestString() returned cmdName "SETUP", urlPreSuffix "h264", urlSuffi
x "track1"
fIsMulticast RTP_UDP
sending response: RTSP/1.0 200 OK
CSeq: 22
Date: Thu, Jan 01 1970 15:05:41 GMT
Transport: RTP/AVP;multicast;destination=232.245.108.238;source=192.168.0.196;po
rt=18888-18889;ttl=255
Session: 1

RTSPClientSession[0x1dda00]::incomingRequestHandler1() read 158 bytes:PLAY rtsp:
//192.168.0.196:8554/h264/ RTSP/1.0
CSeq: 23
Session: 1
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)


parseRTSPRequestString() returned cmdName "PLAY", urlPreSuffix "h264", urlSuffix
""
sending response: RTSP/1.0 200 OK
CSeq: 23
Date: Thu, Jan 01 1970 15:05:41 GMT
Range: npt=0.000-
Session: 1
RTP-Info: url=rtsp://192.168.0.196:8554/h264/track1;seq=14331;rtptime=236795800

--------------------------------------------------------------------------------



--------------------------------------------------------------------------------
unicast:
parseRTSPRequestString() returned cmdName "OPTIONS", urlPreSuffix "", urlSuffix
"h264"
sending response: RTSP/1.0 200 OK
CSeq: 25
Date: Thu, Jan 01 1970 17:37:10 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE

RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 155 bytes:DESCRIBE r
tsp://192.168.0.196:8557/h264 RTSP/1.0
CSeq: 26
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)


parseRTSPRequestString() returned cmdName "DESCRIBE", urlPreSuffix "", urlSuffix
"h264"
sending response: RTSP/1.0 200 OK
CSeq: 26
Date: Thu, Jan 01 1970 17:37:10 GMT
Content-Base: rtsp://192.168.0.196:8557/h264/
Content-Type: application/sdp
Content-Length: 466

v=0
o=- 63404909982 1 IN IP4 192.168.0.196
s=RTSP/RTP stream from IPNC
i=h264
t=0 0
a=tool:LIVE555 Streaming Media v2008.04.02
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:RTSP/RTP stream from IPNC
a=x-qt-text-inf:h264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=000042;sprop-parameter-sets=h264
a=control:track1
m=audio 0 RTP/AVP 0
c=IN IP4 0.0.0.0
a=control:track2
RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 184 bytes:SETUP rtsp
://192.168.0.196:8557/h264/track1 RTSP/1.0
CSeq: 27
Transport: RTP/AVP;unicast;client_port=1644-1645
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)


parseRTSPRequestString() returned cmdName "SETUP", urlPreSuffix "h264", urlSuffi
x "track1"
sending response: RTSP/1.0 200 OK
CSeq: 27
Date: Thu, Jan 01 1970 17:37:10 GMT
Transport: RTP/AVP;unicast;destination=192.168.0.198;source=192.168.0.196;client
_port=1644-1645;server_port=6970-6971
Session: 1

RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 196 bytes:SETUP rtsp
://192.168.0.196:8557/h264/track2 RTSP/1.0
CSeq: 28
Transport: RTP/AVP;unicast;client_port=1646-1647
Session: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)


parseRTSPRequestString() returned cmdName "SETUP", urlPreSuffix "h264", urlSuffi
x "track2"
sending response: RTSP/1.0 200 OK
CSeq: 28
Date: Thu, Jan 01 1970 17:37:10 GMT
Transport: RTP/AVP;unicast;destination=192.168.0.198;source=192.168.0.196;client
_port=1646-1647;server_port=6972-6973
Session: 1

RTSPClientSession[0x19f9b0]::incomingRequestHandler1() read 158 bytes:PLAY rtsp:
//192.168.0.196:8557/h264/ RTSP/1.0
CSeq: 29
Session: 1
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)


parseRTSPRequestString() returned cmdName "PLAY", urlPreSuffix "h264", urlSuffix
""
startPlaying
MediaSink::startPlaying
continuePlaying()
buildAndSendPacket:
startPlaying
MediaSink::startPlaying
continuePlaying()
buildAndSendPacket:
sending response: RTSP/1.0 200 OK
CSeq: 29
Date: Thu, Jan 01 1970 17:37:10 GMT
Range: npt=0.000-
Session: 1
RTP-Info: url=rtsp://192.168.0.196:8557/h264/track1;seq=18214;rtptime=4159189830
,url=rtsp://192.168.0.196:8557/h264/track2;seq=8502;rtptime=89305239
-------------------------------------------------------------------------------------

___________________________________________________ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090910/bfa32d65/attachment.html>


More information about the live-devel mailing list