[rtmpdump] Videos captured from www.kuke.com corrupted
Frank Wang
yafrank at 139.com
Sun Oct 12 16:53:11 CEST 2014
Hi,
First, I'd like to thank you for writing such an useful toolkit. However, for a site I'm particular interested recently - www.kuke.com, every video captured is corrupted.
For example in http://www.kuke.com/#t=v/kuke/video/play?cataid=GI-11, the generated command is "rtmpdump -r "rtmp://221.123.178.142:1935/vod" -a "vod" -f "WIN 15,0,0,152" -W "http://video.kuke.com/player/VideoPlayer.swf" -p "http://video.kuke.com/kuke/video/play?cataid=GI-11" -C S:KukeFlashClient -C S:CS8966728 -y "GI-11.700kb.part1.mp4" -o GI-11.700kb.part1.flv" and the video can be downloaded. During the playback via mplayer with OSD timer turned on, the first 5:05 is OK, then it started incomprehensive stammering audio, and video is still smoothly played until around 15:00. During meanwhile, mplayer raises continues "Too many video packets in the buffer: (4096 in XXXXXXXX bytes)" You can see the A: is gradually lagging further and further behind the V: in the raised prompt. Then at around 15:00 video is frozen and audio resumes normal for a few minutes. Finally, at around 15:10 all audio and video playback resumes to normal.
Other videos downloaded from the site have similar problem - only the first few minutes is OK then sound playback starts incomprehensive stammering. All videos can be smoothly watched online without problem, so the source should be OK. I tried to search the list archive but haven't found similar problem so far. So I guess I'll post the "rtmpdownload -V" output here, hopefully someone can help me.
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host : 221.123.178.142
DEBUG: Parsed app : vod
DEBUG: Protocol : RTMP
DEBUG: Hostname : 221.123.178.142
DEBUG: Port : 1935
DEBUG: Playpath : GI-11.700kb.part1.mp4
DEBUG: tcUrl : rtmp://221.123.178.142:1935/vod
DEBUG: swfUrl : http://video.kuke.com/player/VideoPlayer.swf
DEBUG: pageUrl : http://video.kuke.com/kuke/video/play?cataid=GI-11
DEBUG: app : vod
DEBUG: flashVer : WIN 15,0,0,152
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: SWFSHA256:
DEBUG: b7 f5 4c 7c 03 3f 06 65 6b fe c1 00 3d 21 6c 21
DEBUG: 61 1e 80 b7 bc 68 94 0e 86 db e4 fa de 42 0d 92
DEBUG: SWFSize : 1077079
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 03
DEBUG: HandShake: Client digest offset: 430
DEBUG: HandShake: Initial client digest:
DEBUG: 9d 93 f7 93 30 c8 d4 4a 15 48 07 67 07 05 61 b4
DEBUG: 5e 9c 76 fc 97 bb a8 ca 1c ca e8 bd 2b 93 82 5f
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : -50580552
DEBUG: HandShake: FMS Version : 13.14.10.13
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: 01 68 3c fb ba a0 50 a4 b6 33 7e c3 fb a4 08 73
DEBUG: 4e be 94 5e c4 29 7c 78 97 b1 b9 20 4d 9a 80 b5
DEBUG: HandShake: Client signature calculated:
DEBUG: f6 a2 91 50 ca 6a 2a 72 0f f7 17 4a 62 d6 e3 36
DEBUG: 35 0c ad 04 39 be dc d1 95 33 52 28 aa 4b 68 57
DEBUG: HandShake: Server sent signature:
DEBUG: 13 9b 2a 6c 7f dd 9a 90 e4 4d 7f 81 d8 37 e4 91
DEBUG: fb fa 15 5f 3d 86 af 43 15 ed 7c d6 e5 7a fa d9
DEBUG: HandShake: Digest key:
DEBUG: 51 c9 c3 16 61 4a 40 84 a8 74 b8 ab 8c 87 ee 20
DEBUG: e1 52 e3 59 19 b0 61 0c 35 0f 24 66 7d b4 af ed
DEBUG: HandShake: Signature calculated:
DEBUG: 13 9b 2a 6c 7f dd 9a 90 e4 4d 7f 81 d8 37 e4 91
DEBUG: fb fa 15 5f 3d 86 af 43 15 ed 7c d6 e5 7a fa d9
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 5000000
DEBUG: HandleClientBW: client BW = 5000000 2
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 190 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,0,1,123>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: (object end)
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
DEBUG: Property: <Name: description, STRING: Connection succeeded.>
DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking createStream
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: GI-11.700kb.part1.mp4
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 1
DEBUG: RTMP_ClientPacket, received: invoke 107 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetStream.Play.Start>
DEBUG: Property: <Name: description, STRING: Start video on demand>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Start
Starting download at: 0.000 kB
DEBUG: HandleCtrl, received ctrl. type: 4, len: 6
DEBUG: HandleCtrl, Stream IsRecorded 1
DEBUG: RTMP_ClientPacket, received: notify 188 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: width, NUMBER: 640.00>
DEBUG: Property: <Name: height, NUMBER: 480.00>
DEBUG: Property: <Name: displayWidth, NUMBER: 640.00>
DEBUG: Property: <Name: displayHeight, NUMBER: 480.00>
DEBUG: Property: <Name: duration, NUMBER: 1039.61>
DEBUG: Property: <Name: videocodecid, NUMBER: 7.00>
DEBUG: Property: <Name: audiocodecid, NUMBER: 10.00>
DEBUG: Property: <Name: audiosamplerate, NUMBER: 44100.00>
DEBUG: (object end)
DEBUG: (object end)
INFO: Metadata:
INFO: width 640.00
INFO: height 480.00
INFO: displayWidth 640.00
INFO: displayHeight 480.00
INFO: duration 1039.61
INFO: videocodecid 7.00
INFO: audiocodecid 10.00
INFO: audiosamplerate 44100.00
0.269 kB / 0.00 sec (0.0%)
...
DEBUG: HandleCtrl, received ctrl. type: 1, len: 6
DEBUG: HandleCtrl, Stream EOF 1
DEBUG: RTMP_ClientPacket, received: notify 102 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: code, STRING: NetStream.Play.Complete>
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: duration, NUMBER: 1037978.00>
DEBUG: Property: <Name: bytes, NUMBER: 0.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: RTMP_ClientPacket, received: invoke 92 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetStream.Play.Stop>
DEBUG: Property: <Name: description, STRING: Stopped>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Stop
DEBUG: Invoking deleteStream
DEBUG: Got Play.Complete or Play.Stop from server. Assuming stream is complete
103731.195 kB / 1038.00 sec (99.8%)
DEBUG: RTMP_Read returned: 0
Download may be incomplete (downloaded about 99.80%), try resuming
DEBUG: Closing connection.
If any further information required. Please just let me know.
Thanks for your patience.
Regards,
Frank Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20141012/104b4cd3/attachment.html>
More information about the rtmpdump
mailing list