久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

從 YouTube 視頻中提取自動字幕

Extract automatic captions from YouTube video(從 YouTube 視頻中提取自動字幕)
本文介紹了從 YouTube 視頻中提取自動字幕的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在從 YouTube 視頻中提取自動字幕時遇到問題.

I'm having problems extracting automatic captions from YouTube videos.

我嘗試使用 http://video.google.com/timedtext?type=track&v=3wszM2SA12E&name=Automatic&lang=en 方法,但該方法僅適用于那些具有命名軌道的視頻.例如,這個沒有任何命名軌道(只有自動字幕)并且不會加載:rrkrvAUbU9Y

I tried using the http://video.google.com/timedtext?type=track&v=3wszM2SA12E&name=Automatic&lang=en method, but that one only works for those videos, which have named tracks. For example, this one doesn't have any named tracks (only automatic caption) and doesn't load up: rrkrvAUbU9Y

有幾個網絡應用程序可以做到這一點(例如 http://www.serpsite.com/youtube-subtitles-download-tool/ 和 http://mo.dbxdb.com/),但我需要一個腳本,因為我想用它進行研究.

There are several web-applications out there which can do it (like http://www.serpsite.com/youtube-subtitles-download-tool/ and http://mo.dbxdb.com/), but I need a script, because I want to use it for my research.

任何人都知道獲得這個的正確方法是什么?YouTube 的 API 有一些關于字幕的內容,但僅適用于注冊用戶,而上述應用程序適用于所有視頻,我懷疑它們只是從頁面中捕獲 html 代碼(盡管這也是可能的).一定有辦法……請幫忙!

Anyone has any ideas what is the correct way to get this? YouTube's API has something about captions, but only for registered users, while the apps above work for all videos and I doubt they just capture the html code from the page (although that's possible too). There must be a way... please help!

推薦答案

需要先調用另一個API:http://video.google.com/timedtext?type=list&v=3wszM2SA12E

You need to call another API first: http://video.google.com/timedtext?type=list&v=3wszM2SA12E

這將為您提供可用曲目的列表.在您的情況下,只能獲得一首曲目:id=0";名稱=自動"lang_code="en";lang_original=英語"lang_translated="英文"lang_default="true"

This will give you the list of the tracks available. In your case only one track can be obtained: id="0" name="Automatic" lang_code="en" lang_original="English" lang_translated="English" lang_default="true"

在這個特定的視頻中,我可以按名稱獲取曲目name=Automatic:

In this particular video I could get the track by name name=Automatic:

https://video.google.com/timedtext?type=track&v=3wszM2SA12E&name=Automatic&lang=en

但是對于另一個視頻 id= 工作正常:

But for another video id= worked fine:

http://video.google.com/timedtext?type=track&v=zenMEj0cAC4&id=0&lang=en

http://video.google.com/timedtext?type=track&v=zenMEj0cAC4&id=0&lang=en

這篇關于從 YouTube 視頻中提取自動字幕的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Action View Helper in Zend - Work around?(Zend 中的動作視圖助手 - 解決方法?)
Is this a good way to match URI to class/method in PHP for MVC(這是將 URI 與 PHP 中用于 MVC 的類/方法匹配的好方法嗎)
Where do I save partial (views) in Zend Framework, to be accessible for all Views in my App?(我在哪里保存 Zend Framework 中的部分(視圖),以便我的應用程序中的所有視圖都可以訪問?) - IT屋-程序員軟件開發技術
Having a single entry point to a website. Bad? Good? Non-issue?(有一個網站的單一入口點.壞的?好的?沒問題?)
Is MVC + Service Layer common in zend or PHP?(MVC + 服務層在 Zend 或 PHP 中常見嗎?)
Hello World example in MVC approach to PHP(PHP MVC 方法中的 Hello World 示例)
主站蜘蛛池模板: 久久久久9999 | www.国产视频 | www.狠狠干| 99亚洲视频 | 国产精品一区二 | 久久999| 欧美精品一区二区三区在线 | caoporn国产精品免费公开 | 日本三级电影在线观看视频 | 日韩成人国产 | 亚洲日日| 亚洲成人一区二区 | 亚洲精品18 | 在线看黄免费 | 99久久成人 | 国产www成人 | 成人免费视频网站在线看 | 亚洲日韩中文字幕一区 | 亚洲精品丝袜日韩 | 涩涩视频网站在线观看 | 国产日韩欧美精品 | 男女一区二区三区 | 亚洲高清在线观看 | 天堂视频中文在线 | 国产乱肥老妇国产一区二 | www.日日干| 国产精品久久久久久久久久 | 亚洲一区国产 | 色视频在线观看 | 精品久久久久久久久久久久久久 | 国产99久久精品一区二区300 | 福利av在线 | 亚洲电影免费 | 狠狠久久综合 | 亚洲网站在线观看 | 亚洲精品av在线 | 欧美精品久久久 | 天天天堂 | 日韩国产在线 | 欧美在线播放一区 | 国产91色在线 | 亚洲 |