[Live-devel] VLC playback problem using live555MediaServer with RTP over TCP
詹明
zhanm at join.net.cn
Thu Aug 2 02:35:35 PDT 2012
Hi Ross,
With the latest live555MediaServer , when I use VLC test a mp3 stream, it
works fine when VLC’s live55 stream transport mode setting is HTTP.
However, if the setting is changed to RTP over RTSP(TCP) .
live555MediaServer does receive the request, produce and send back the
stream output. But live555MediaServer will fail in sending packets back
before the stream finish, and I can’t hear any sound. I don’t know what
might caused the issue, could you give advice?
FYI, here is some live555MediaServer output shown below:
accept()ed connection from 127.0.0.1
Liveness indication from client at 127.0.0.1
Liveness indication from client at 127.0.0.1
RTSPClientSession[00397058]::handleRequestBytes() read 224 new bytes:GET
/sample.mp3 HTTP/1.0
CSeq: 1
User-Agent: LibVLC/2.0.3 (LIVE555 Streaming Media v2011.12.23)
x-sessioncookie: 807ad86b495889a5551c5b9
Accept: application/x-rtsp-tunnelled
Pragma: no-cache
Cache-Control: no-cache
parseRTSPRequestString() failed
parseHTTPRequestString() succeeded, returning cmdName "GET", urlSuffix
"sample.mp3", sessionCookie "807ad86b495889a5551c5b9", acceptStr
"application/x-rtsp-tunn
elled"
Handled HTTP "GET" request (client output socket: 172)
sending response: HTTP/1.0 200 OK
Date: Thu, 19 Aug 1982 18:30:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/x-rtsp-tunnelled
accept()ed connection from 127.0.0.1
Liveness indication from client at 127.0.0.1
Liveness indication from client at 127.0.0.1
RTSPClientSession[00CC0068]::handleRequestBytes() read 457 new bytes:POST
/sample.mp3 HTTP/1.0
CSeq: 1
User-Agent: LibVLC/2.0.3 (LIVE555 Streaming Media v2011.12.23)
x-sessioncookie: 807ad86b495889a5551c5b9
Content-Type: application/x-rtsp-tunnelled
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 32767
Expires: Sun, 9 Jan 1972 00:00:00 GMT
T1BUSU9OUyBydHNwOi8vbG9jYWxob3N0L3NhbXBsZS5tcDMgUlRTUC8xLjANCkNTZXE6IDINClVz
ZXItQWdlbnQ6IExpYlZMQy8yLjAuMyAoTElWRTU1NSBTdHJlYW1pbmcgTWVkaWEgdjIwMTEuMTIu
MjMpDQoN
Cg==
parseRTSPRequestString() failed
parseHTTPRequestString() succeeded, returning cmdName "POST", urlSuffix
"sample.mp3", sessionCookie "807ad86b495889a5551c5b9", acceptStr ""
Handled HTTP "POST" request (client input socket: 432)
Liveness indication from client at 127.0.0.1
RTSPClientSession[00397058]::handleRequestBytes() read 164 new
bytes:T1BUSU9OUyBydHNwOi8vbG9jYWxob3N0L3NhbXBsZS5tcDMgUlRTUC8xLjANCkNTZXE6ID
INClVzZXItQWdlbnQ6IEx
pYlZMQy8yLjAuMyAoTElWRTU1NSBTdHJlYW1pbmcgTWVkaWEgdjIwMTEuMTIuMjMpDQoNCg==
Base64-decoded 164 input bytes into 121 new bytes:OPTIONS
rtsp://localhost/sample.mp3 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.0.3 (LIVE555 Streaming Media v2011.12.23)
parseRTSPRequestString() succeeded, returning cmdName "OPTIONS",
urlPreSuffix "", urlSuffix "sample.mp3", CSeq "2", Content-Length 0, with 0
bytes following the
message.
sending response: RTSP/1.0 200 OK
CSeq: 2
Date: Thu, Aug 02 2012 09:10:18 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER
Liveness indication from client at 127.0.0.1
RTSPClientSession[00397058]::handleRequestBytes() read 196 new
bytes:REVTQ1JJQkUgcnRzcDovL2xvY2FsaG9zdC9zYW1wbGUubXAzIFJUU1AvMS4wDQpDU2VxOi
AzDQpVc2VyLUFnZW50OiB
MaWJWTEMvMi4wLjMgKExJVkU1NTUgU3RyZWFtaW5nIE1lZGlhIHYyMDExLjEyLjIzKQ0KQWNjZXB
0OiBhcHBsaWNhdGlvbi9zZHANCg0K
Base64-decoded 196 input bytes into 147 new bytes:DESCRIBE
rtsp://localhost/sample.mp3 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.0.3 (LIVE555 Streaming Media v2011.12.23)
Accept: application/sdp
parseRTSPRequestString() succeeded, returning cmdName "DESCRIBE",
urlPreSuffix "", urlSuffix "sample.mp3", CSeq "3", Content-Length 0, with 0
bytes following th
e message.
sending response: RTSP/1.0 200 OK
CSeq: 3
Date: Thu, Aug 02 2012 09:10:18 GMT
Content-Base: rtsp://127.0.0.1:8554/sample.mp3/
Content-Type: application/sdp
Content-Length: 395
v=0
o=- 1343898618406946 1 IN IP4 192.168.1.36
s=MPEG-1 or 2 Audio, streamed by the LIVE555 Media Server
i=sample.mp3
t=0 0
a=tool:LIVE555 Streaming Media v2012.07.18
a=type:broadcast
a=control:*
a=range:npt=0-89.572
a=x-qt-text-nam:MPEG-1 or 2 Audio, streamed by the LIVE555 Media Server
a=x-qt-text-inf:sample.mp3
m=audio 0 RTP/AVP 14
c=IN IP4 0.0.0.0
b=AS:160
a=control:track1
Liveness indication from client at 127.0.0.1
RTSPClientSession[00397058]::handleRequestBytes() read 240 new
bytes:U0VUVVAgcnRzcDovLzEyNy4wLjAuMTo4NTU0L3NhbXBsZS5tcDMvdHJhY2sxIFJUU1AvMS
4wDQpDU2VxOiA0DQpVc2V
yLUFnZW50OiBMaWJWTEMvMi4wLjMgKExJVkU1NTUgU3RyZWFtaW5nIE1lZGlhIHYyMDExLjEyLjI
zKQ0KVHJhbnNwb3J0OiBSVFAvQVZQL1RDUDt1bmljYXN0O2ludGVybGVhdmVkPTAtMQ0KDQo=
Base64-decoded 240 input bytes into 179 new bytes:SETUP
rtsp://127.0.0.1:8554/sample.mp3/track1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.0.3 (LIVE555 Streaming Media v2011.12.23)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
parseRTSPRequestString() succeeded, returning cmdName "SETUP", urlPreSuffix
"sample.mp3", urlSuffix "track1", CSeq "4", Content-Length 0, with 0 bytes
following
the message.
sending response: RTSP/1.0 200 OK
CSeq: 4
Date: Thu, Aug 02 2012 09:10:18 GMT
Transport:
RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=0-1
Session: E7490178
Liveness indication from client at 127.0.0.1
RTSPClientSession[00397058]::handleRequestBytes() read 216 new
bytes:UExBWSBydHNwOi8vMTI3LjAuMC4xOjg1NTQvc2FtcGxlLm1wMy8gUlRTUC8xLjANCkNTZX
E6IDUNClVzZXItQWdlbnQ
6IExpYlZMQy8yLjAuMyAoTElWRTU1NSBTdHJlYW1pbmcgTWVkaWEgdjIwMTEuMTIuMjMpDQpTZXN
zaW9uOiBFNzQ5MDE3OA0KUmFuZ2U6IG5wdD0wLjAwMC0NCg0K
Base64-decoded 216 input bytes into 162 new bytes:PLAY
rtsp://127.0.0.1:8554/sample.mp3/ RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.0.3 (LIVE555 Streaming Media v2011.12.23)
Session: E7490178
Range: npt=0.000-
parseRTSPRequestString() succeeded, returning cmdName "PLAY", urlPreSuffix
"sample.mp3", urlSuffix "", CSeq "5", Content-Length 0, with 0 bytes
following the me
ssage.
RTCPInstance[00CCB698]::RTCPInstance()
schedule(1.549158->1343898619.982103)
mp3GetADUInfoFromFrame: hdr: fffba040, frameSize: 522, part2_3_lengths: 0,0,
0,0, aduSize: 0, backpointer: 0
m->a:read frame 0<-0, fs:522, sis:32, dh:486, (descriptor size: 0)
m->a:outputting ADU 0<-0, nbr:36, sis:32, dh:486, (descriptor size: 1)
mp3GetADUInfoFromFrame: hdr: fffba040, frameSize: 522, part2_3_lengths: 0,0,
0,0, aduSize: 0, backpointer: 0
a->m:read frame 0<-0, fs:522, sis:32, dh:486, (descriptor size: 1)
mp3GetADUInfoFromFrame: hdr: fffba040, frameSize: 522, part2_3_lengths: 0,0,
0,0, aduSize: 0, backpointer: 0
m->a:read frame 0<-0, fs:522, sis:32, dh:486, (descriptor size: 0)
m->a:outputting ADU 0<-0, nbr:36, sis:32, dh:486, (descriptor size: 1)
mp3GetADUInfoFromFrame: hdr: fffba040, frameSize: 522, part2_3_lengths: 0,0,
0,0, aduSize: 0, backpointer: 0
a->m:read frame 0<-0, fs:522, sis:32, dh:486, (descriptor size: 1)
a->m:outputting frame for 0<-0 (fs 522, dh 486), (descriptorSize: 1)
a->m:outputting 486 zero bytes (486, 0, 486, 0)
mp3GetADUInfoFromFrame: hdr: fffba260, frameSize: 523, part2_3_lengths: 0,0,
0,0, aduSize: 0, backpointer: 438
m->a:read frame 0<-438, fs:523, sis:32, dh:487, (descriptor size: 0)
m->a:outputting ADU 0<-438, nbr:36, sis:32, dh:487, (descriptor size: 1)
mp3GetADUInfoFromFrame: hdr: fffba260, frameSize: 523, part2_3_lengths: 0,0,
0,0, aduSize: 0, backpointer: 438
a->m:read frame 0<-438, fs:523, sis:32, dh:487, (descriptor size: 1)
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths: 207,
2177,165,1749, aduSize: 538, backpointer: 437
m->a:read frame 538<-437, fs:522, sis:32, dh:486, (descriptor size: 0)
m->a:outputting ADU 538<-437, nbr:574, sis:32, dh:486, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths: 207,
2177,165,1749, aduSize: 538, backpointer: 437
a->m:read frame 538<-437, fs:522, sis:32, dh:486, (descriptor size: 2)
a->m:outputting frame for 0<-0 (fs 522, dh 486), (descriptorSize: 1)
a->m:outputting 48 zero bytes (48, 0, 486, 438)
sendRTPOverTCP: 1060 bytes over channel 0 (socket 172)
sendRTPOverTCP: completed
sending response: RTSP/1.0 200 OK
CSeq: 5
Date: Thu, Aug 02 2012 09:10:18 GMT
Range: npt=0.000-
Session: E7490178
RTP-Info:
url=rtsp://127.0.0.1:8554/sample.mp3/track1;seq=17164;rtptime=160052885
a->m:outputting frame for 0<-438 (fs 523, dh 487), (descriptorSize: 1)
a->m:outputting 50 zero bytes (50, 0, 487, 437)
a->m:outputting 437 bytes from 538<-437
mp3GetADUInfoFromFrame: hdr: fffba240, frameSize: 523, part2_3_lengths:
1889,69,1950,160, aduSize: 509, backpointer: 385
m->a:read frame 509<-385, fs:523, sis:32, dh:487, (descriptor size: 0)
m->a:outputting ADU 509<-385, nbr:545, sis:32, dh:487, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba240, frameSize: 523, part2_3_lengths:
1889,69,1950,160, aduSize: 509, backpointer: 385
a->m:read frame 509<-385, fs:523, sis:32, dh:487, (descriptor size: 2)
a->m:outputting frame for 538<-437 (fs 522, dh 486), (descriptorSize: 2)
a->m:outputting 101 bytes from 538<-437
a->m:outputting 385 bytes from 509<-385
sendRTPOverTCP: 1061 bytes over channel 0 (socket 172)
sendRTPOverTCP: completed
mp3GetADUInfoFromFrame: hdr: fffba040, frameSize: 522, part2_3_lengths:
22,42,914,1128, aduSize: 264, backpointer: 363
m->a:read frame 264<-363, fs:522, sis:32, dh:486, (descriptor size: 0)
m->a:outputting ADU 264<-363, nbr:300, sis:32, dh:486, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba040, frameSize: 522, part2_3_lengths:
22,42,914,1128, aduSize: 264, backpointer: 363
a->m:read frame 264<-363, fs:522, sis:32, dh:486, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba240, frameSize: 523, part2_3_lengths:
1777,1309,1598,1536, aduSize: 778, backpointer: 438
m->a:read frame 778<-438, fs:523, sis:32, dh:487, (descriptor size: 0)
m->a:outputting ADU 778<-438, nbr:814, sis:32, dh:487, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba240, frameSize: 523, part2_3_lengths:
1777,1309,1598,1536, aduSize: 778, backpointer: 438
a->m:read frame 778<-438, fs:523, sis:32, dh:487, (descriptor size: 2)
a->m:outputting frame for 509<-385 (fs 523, dh 487), (descriptorSize: 2)
a->m:outputting 124 bytes from 509<-385
a->m:outputting 264 bytes from 264<-363
a->m:outputting frame for 264<-363 (fs 522, dh 486), (descriptorSize: 2)
a->m:outputting 48 zero bytes (48, 0, 486, 438)
a->m:outputting 438 bytes from 778<-438
sendRTPOverTCP: 1061 bytes over channel 0 (socket 172)
sendRTPOverTCP: completed
...
...
schedule(4.364644->1343898627.575027)
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths:
1160,1223,633,605, aduSize: 453, backpointer: 157
m->a:read frame 453<-157, fs:522, sis:32, dh:486, (descriptor size: 0)
m->a:outputting ADU 453<-157, nbr:489, sis:32, dh:486, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths:
1160,1223,633,605, aduSize: 453, backpointer: 157
a->m:read frame 453<-157, fs:522, sis:32, dh:486, (descriptor size: 2)
a->m:outputting frame for 459<-129 (fs 523, dh 487), (descriptorSize: 2)
a->m:outputting 330 bytes from 459<-129
a->m:outputting 157 bytes from 453<-157
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths:
1248,1177,651,623, aduSize: 463, backpointer: 190
m->a:read frame 463<-190, fs:522, sis:32, dh:486, (descriptor size: 0)
m->a:outputting ADU 463<-190, nbr:499, sis:32, dh:486, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths:
1248,1177,651,623, aduSize: 463, backpointer: 190
a->m:read frame 463<-190, fs:522, sis:32, dh:486, (descriptor size: 2)
a->m:outputting frame for 453<-157 (fs 522, dh 486), (descriptorSize: 2)
a->m:outputting 296 bytes from 453<-157
a->m:outputting 190 bytes from 463<-190
sendRTPOverTCP: 1061 bytes over channel 0 (socket 172)
sendRTPOverTCP: failed!
mp3GetADUInfoFromFrame: hdr: fffba240, frameSize: 523, part2_3_lengths: 976,
969,959,964, aduSize: 484, backpointer: 213
m->a:read frame 484<-213, fs:523, sis:32, dh:487, (descriptor size: 0)
m->a:outputting ADU 484<-213, nbr:520, sis:32, dh:487, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba240, frameSize: 523, part2_3_lengths: 976,
969,959,964, aduSize: 484, backpointer: 213
a->m:read frame 484<-213, fs:523, sis:32, dh:487, (descriptor size: 2)
a->m:outputting frame for 463<-190 (fs 522, dh 486), (descriptorSize: 2)
a->m:outputting 273 bytes from 463<-190
a->m:outputting 213 bytes from 484<-213
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths:
1203,1211,672,636, aduSize: 466, backpointer: 216
m->a:read frame 466<-216, fs:522, sis:32, dh:486, (descriptor size: 0)
m->a:outputting ADU 466<-216, nbr:502, sis:32, dh:486, (descriptor size: 2)
mp3GetADUInfoFromFrame: hdr: fffba060, frameSize: 522, part2_3_lengths:
1203,1211,672,636, aduSize: 466, backpointer: 216
a->m:read frame 466<-216, fs:522, sis:32, dh:486, (descriptor size: 2)
a->m:outputting frame for 484<-213 (fs 523, dh 487), (descriptorSize: 2)
a->m:outputting 271 bytes from 484<-213
a->m:outputting 216 bytes from 466<-216
sendRTPOverTCP: 1061 bytes over channel 0 (socket 172)
sendRTPOverTCP: failed!
...
...
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120802/0dd2413e/attachment-0003.html>
More information about the live-devel
mailing list