前言
近来在学习Red5 开源流媒体服务框架,官网上的信息足以让一个新手入门
- 有官方参考手册 -- 快速了解red5的相关信息
- 有Red5 on Stackoverflow -- 在上面可以提问或者回答red5相关问题
- 有Quick start application(s) for Red5? -- Client API、Server API、
- 有Red5 Media Server Workspace Setup Guide -- 类似于视频的文字版
- 有How to do some given task with Red5. -- red5 教学
- 有CLUSTERING WITH RED5 -- 案例教学,简单的聊天室系统
行动
到这这一步要保证你已经下载好官方的视频了,如不会下载请移步Youtube上面的Google Python Class视频下载教程,带字幕【亲测成功!】
- 参考Youtube-Auto-Subtitle-Download -- 下载字幕,如图所示
//拿到xml字幕地址. console.log(yt.getConfig("TTS_URL")) // red5拼接后的视频地址 1.https://www.youtube.com/api/timedtext?v=fIL3GnAfKkI&expire=1400082030&caps=asr&signature=DD83C494D54BBE65DC6E3D1B9DFFB74B5E9F98F6.7316FDDDC6FF241CE46067E163F22A1F5C34644C&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&asr_langs=ko%2Cde%2Cen%2Cfr%2Cja%2Cru%2Ces%2Cpt%2Cit%2Cnl&hl=zh_CN&key=yttt1&type=track&lang=en&name&kind=asr 2.https://www.youtube.com/api/timedtext?caps=asr&hl=zh_CN&signature=30C7DF04E46FF9CF6163444FE87CC0976242B013.8A0D6F3C146F4A486E9474780D11C022838A1583&asr_langs=en%2Cnl%2Cja%2Cpt%2Cde%2Cko%2Cfr%2Cru%2Ces%2Cit&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&key=yttt1&expire=1400081611&v=afvxWhYBKuA&type=track&lang=en&name&kind=asr 3.https://www.youtube.com/api/timedtext?signature=4B88A5455A260663DF38F054A048F4166F5617B3.07A761C6896BE188F816AB99B930667330F53A0D&key=yttt1&caps=asr&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&asr_langs=it%2Ces%2Cnl%2Cpt%2Cfr%2Cru%2Cko%2Cja%2Cen%2Cde&expire=1400081744&v=N3KYd_Xz_U4&hl=zh_CN&type=track&lang=en&name&kind=asr 4.https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cexpire&signature=C59BD2DDB57852B33540F0345D0C095AAE3D7DFF.3CA532C78D6998C5C936F684C0034606D2981069&v=ykpV6Q8zcRM&asr_langs=es%2Cru%2Cit%2Cfr%2Cde%2Cko%2Cnl%2Cja%2Cpt%2Cen&key=yttt1&expire=1400082056&hl=zh_CN&caps=asr&type=track&lang=en&name&kind=asr 5.https://www.youtube.com/api/timedtext?key=yttt1&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&expire=1400082169&hl=zh_CN&caps=asr&v=fkai4P3a0_E&signature=D7A3D71A3CC1DF313B09E97E7B17FF7A3E4C9F8A.A4A7519DCF6CE58F3A6802E86820F99BADEFE51B&asr_langs=ko%2Cde%2Cja%2Cpt%2Cen%2Cnl%2Cit%2Ces%2Cru%2Cfr&type=track&lang=en&name&kind=asr 6.https://www.youtube.com/api/timedtext?caps=asr&signature=9923E812B32FB9EBAD41D1F134FA11CAF17D3605.ADDBBA220773A6F3E960D924E51FEDC71631B071&hl=zh_CN&expire=1400082264&asr_langs=ja%2Cko%2Cde%2Cen%2Ces%2Cit%2Cpt%2Cnl%2Cfr%2Cru&v=8Goj0yNYr08&key=yttt1&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&type=track&lang=en&name&kind=asr 7.1https://www.youtube.com/api/timedtext?key=yttt1&hl=zh_CN&asr_langs=pt%2Cnl%2Cit%2Cru%2Ces%2Cfr%2Cen%2Cja%2Cko%2Cde&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&signature=36CE507245BA9B702FCAA68F48692A996AA9B848.B8A22B6B24A6FE54D66E74701C1629479E1FC642&caps=asr&v=0MuLnMKYe9k&expire=1400082553&type=track&lang=en&name&kind=asr 7.2https://www.youtube.com/api/timedtext?signature=2B7879DF3AD732284550E5166A3F1158591594CE.C032BE4E8FE18CACBDEDC6C34A54049C0071BD1C&hl=zh_CN&expire=1400082659&caps=asr&v=VQHZpsX_EPc&key=yttt1&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&asr_langs=en%2Cja%2Cko%2Cde%2Cnl%2Cpt%2Cru%2Cfr%2Cit%2Ces&type=track&lang=en&name&kind=asr 7.3https://www.youtube.com/api/timedtext?caps=asr&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&signature=D285A6586EA2CCA1165F59477D1A451E3B4932E8.39EB030D3F68D98567910F5D37DB69C4B60E99DD&v=ZyxJNbFdQCg&hl=zh_CN&asr_langs=es%2Cde%2Cru%2Cit%2Cko%2Cfr%2Cen%2Cpt%2Cja%2Cnl&key=yttt1&expire=1400082742&type=track&lang=en&name&kind=asr 8.1https://www.youtube.com/api/timedtext?key=yttt1&signature=89FB5A2F2CE44ECB5E7994FA776182614FE8067B.155CD3D094C867332208FBF16A212D6678A6297C&asr_langs=en%2Cnl%2Cja%2Cfr%2Cde%2Cit%2Cko%2Cpt%2Cru%2Ces&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&hl=zh_CN&v=iBAn7xLuZtU&caps=asr&expire=1400082813&type=track&lang=en&name&kind=asr 8.2https://www.youtube.com/api/timedtext?asr_langs=it%2Cru%2Cpt%2Cde%2Cfr%2Cja%2Cnl%2Cen%2Ces%2Cko&signature=0FAC14B1B34CC93E4A044160369716D3AAD6F13F.A0E2728A1EF3665F0DA902D04B72FE5C2F1B515F&key=yttt1&expire=1400082915&caps=asr&v=pRE2Vm8z7z8&hl=zh_CN&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&type=track&lang=en&name&kind=asr //要拼接的字符 &type=track&lang=en&name&kind=asr
2. 来到改完站,把上面任意一个xml文件,放入输入框中,创建好名字,点击make按钮,接口下载srt文件。