View Single Post
  #6  
Old 01-16-2013, 07:29 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: get the subtitles


This website transmits subtitles embedded in rtmp stream. you can check the file saved by rtmpsuck or rtmpdump for onTextData fields in AMF packet which contains plain-text subtitles. rtmpdump with -V switch will show you the subtitle data being dumped as shown below.

Code:
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:     onTextData>
DEBUG: Property: <Name:            no-name, ECMA_ARRAY>
DEBUG: (object begin)
DEBUG: Property: <Name:            trackid, NUMBER:     3.00>
DEBUG: Property: <Name:               text, STRING:     Gerry: Ah, he's doing fairly wewell, 'k, he could stay on task>
DEBUG: (object end)
DEBUG: (object end)
538.506 kB / 10.01 sec (0.7%)
DEBUG: RTMP_ClientPacket, received: invoke 40 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:     _onbwdone>
DEBUG: Property: <Name:            no-name, NUMBER:     0.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, NUMBER:     1010.00>
DEBUG: Property: <Name:            no-name, NUMBER:     119.00>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_onbwdone>
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:     onTextData>
DEBUG: Property: <Name:            no-name, ECMA_ARRAY>
DEBUG: (object begin)
DEBUG: Property: <Name:            trackid, NUMBER:     3.00>
DEBUG: Property: <Name:               text, STRING:     >
DEBUG: (object end)
DEBUG: (object end)
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:     onTextData>
DEBUG: Property: <Name:            no-name, ECMA_ARRAY>
DEBUG: (object begin)
DEBUG: Property: <Name:            trackid, NUMBER:     3.00>
DEBUG: Property: <Name:               text, STRING:     a little more. Sometimes he loses focus, but overall he's a>
DEBUG: (object end)
DEBUG: (object end)
Reply With Quote