How To Download Subtitles/text Tracks Of A On Demand Vimeo Video
Maybe your like
Instantly share code, notes, and snippets.
- Download ZIP
- Star (25) You must be signed in to star a gist
- Fork (2) You must be signed in to fork a gist
- Embed Select an option
- Embed Embed this gist in your website.
- Share Copy sharable link for this gist.
- Clone via HTTPS Clone using the web URL.
No results found
Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/pjmartorell/384aa1d019f919af6b84894038bf29aa.js"></script> - Save pjmartorell/384aa1d019f919af6b84894038bf29aa to your computer and use it in GitHub Desktop.
- Embed Embed this gist in your website.
- Share Copy sharable link for this gist.
- Clone via HTTPS Clone using the web URL.
No results found
Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/pjmartorell/384aa1d019f919af6b84894038bf29aa.js"></script> Save pjmartorell/384aa1d019f919af6b84894038bf29aa to your computer and use it in GitHub Desktop. Download ZIP How to download subtitles/text tracks of a On Demand Vimeo video Raw vimeo_download_subtitles.md Download subtitles/text tracks of an On-Demand Vimeo videoIt works with on-demand videos that have the subtitles/captions included (CC symbol). You need to be registered in Vimeo in order to retrieve subtitles.
Steps
- Open Chrome Developer Tools
- Start playing the Vimeo video
- Look for any request named segment-XX.m4s (where XX is a number)
- Select the request and inspect the request payload, which is something in the form:
- Copy the value of the field called id (i.e. "id":242740761)
- Go to Vimeo API Playground: https://developer.vimeo.com/api/playground/videos/%7Bvideo_id%7D/texttracks (note that you need to be registered in Vimeo to do some API calls)
- In the Playground form, replace {video_id} for your video ID (i.e. 242740761)
- Check the checkbox that says Authenticate this call as John Doe
- Push the Make call button
- If everything works as expected, the successful HTTP request will be outputed. Something like the following:
- Copy the value of the link attribute (i.e "https://captions.cloud.vimeo.com/captions/5795943.vtt?expires=1535648880&sig=357c4574e58e805af3b5ef2df4cd075bdc1c1ba8&download=FollowingSeas+CC.srt.vtt")
- Paste it in your browser and the subtitles will start downloading :)
LeeBinder commented Sep 3, 2018
thank you for sharing, pj.martorell - however you figured that out. I saved your instructions for when I need them again.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
LeeBinder commented Jan 20, 2019
Updated:
Download subtitles/text tracks of an On-Demand Vimeo videoIt works even with rented on-demand videos that have the subtitles/ captions included (CC symbol). You need to be registered in Vimeo in order to retrieve subtitles.
Steps
-
Open Google Chrome
-
Might not be necessary, but it did not hurt, either: go to chrome://extensions/ and disable all Extensions that could interfere with Vimeo, like any Vimeo Extensions and Video Downloaders
-
Go to the web page of your Vimeo video https://vimeo.com/ondemand/yourRentedVideo, but DO NOT start playing it!
-
Might not be necessary, but it did not hurt, either: in the bottom right of your video, click onto the grey CC button and choose a subtitle (which one does not seem to matter) so it's blue now
-
Open Chrome Developer Tools: View, Developer, Developer Tools
-
Click onto the 'Network' tab
-
In the Dev Tools side bar, click onto the filename beginning with "player-stats?session-id=.." (in my test I only see 3 filenames, the mentioned file in the middle, but that might differ from vid to vid)
-
right of the side bar, make sure the 'Headers' tab is active
-
scroll all the way down until you see "Request Payload"
-
expand "autoplay", then expand the number beneath it (in my test it was a 0)
-
look for the line with "clip_id" (in my test line 16). The number following it is your video_id !!
(alternatively you can click onto "view source" right of "Request Payload", copy the entire block, paste it into a text editor and search for "clip_id" to get the clip_id number)
-
Copy the value of the field called "clip_id". i.e. 123456789 (so far it has always been a 9 digit number)
-
Log into Vimeo: https://vimeo.com/log_in
-
Create an App: https://developer.vimeo.com/apps/new?source=topnav
- App name (example): VidID
- App description: VidID
- leave "Will people besides you be able to access your app?" on "No"
- check the checkbox "I agree that [..]"
- click onto the blue "Create App" button
- Go to the "Vimeo API Reference: Videos" page: https://developer.vimeo.com/api/reference/videos#get_text_tracks
(NOTE: ** You MUST be registered in Vimeo to do the following API calls! **)
-
In the top right, click onto the blue "Try it out" button
-
In the top right, where it reads "Test your app", choose the VidID app you just created
-
Under "Path parameters", as video_id *, enter the clip_id into the form
-
In my test it did not make a difference if the checkbox that says "Authenticate this call as [your Name]" is checked or not
-
Push the blue "Make call" button
-
If everything works as expected, the successful HTTP request will be outputed. Something like the following:
-
Copy the value of the link attribute (i.e "https://captions.cloud.vimeo.com/captions/5795943.vtt?expires=1535648880&sig=357c4574e58e805af3b5ef2df4cd075bdc1c1ba8&download=FollowingSeas+CC.srt.vtt")
-
Paste it in your browser and the subtitle file will start downloading as .srt.vtt
-
Remove the .vtt so the extension is .srt, because it already is a .srt file
-
The downloaded .srt file is not structured 100% correctly. To have it's language displayed correctly in VLC, open it in
https://www.nikse.dk/subtitleedit/online#
- Subtitle, Open:
- Browse
- Frame rate: find it out via apps like MediaInfo, Invisor Lite etc. and set it correctly
- Code Page: if the ISO-8859-1 does not display your language's letters correctly: utf-8 (at the very bottom of the list) worked for me (the Code Page according to my language did NOT work)
- click onto 'Load subtile'
- Subtitle, Save/download
- Save/download
- Test in your favorite video player :)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
LeeBinder commented Jan 20, 2019
@pjmartorell : can you add my update to https://webapps.stackexchange.com/questions/85517/how-can-i-download-subtitles-for-a-vimeo-video/? I must have done something wrong accdg. to stackexchange because they don't let me post (oh well). Gracias
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
fathermocker commented Mar 11, 2019
@LeeBinder Thanks for your update. Things have changed in Vimeo (now the clip_id parameter is not there, it's called id and there's no player-stats either, it can be found in config-player) but your tutorial is very helpful.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mahdisama commented Apr 9, 2019
@LeeBinder Thanks for the information. But what about a video which has domain level policy? I could successfully extract SRT from lots of public videos but still couldn't find a way for these types of videos.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jvanderbiest commented Oct 4, 2019 • edited Loading Uh oh!
There was an error while loading. Please reload this page.
I might miss the point here but you actually don't need all those steps.
- Open Chrome Developer Tools, go to network tab.
- Load the page. and select a CC
- Select the last request in the network tab. The request is of format [number].vtt?token=[token].
- Inspect the response or open the request in another tab by right clicking it to preserve any special characters. If you check the response of the request it displays the complete WEBVTT file.
- Copy paste it to a txt file and use an online converter to change it to SRT
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
manxbiker commented Dec 5, 2019
Great instruction @jvanderbiest. Thanks for simplifying the process, it makes a lot of sense and easy to do.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jvanderbiest commented Dec 5, 2019
@manxbiker glad I saved you some time :-)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
LeeBinder commented Mar 10, 2020
@alireza Tarahomi : re. your question if this works on "private" videos: for VODs I purchased on Vimeo I use JDownloader with my Vimeo credentials entered into JDownloader/ Settings/ Account Manager/ Add -> Vimeo
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
sripriyesha commented Aug 8, 2020 • edited Loading Uh oh!
There was an error while loading. Please reload this page.
Using youtube-dl:
Step 1 Login to Vimeo and get the cookies.txt file using this Chrome plugin
Step 2 Use youtube-dl to download all the subtitles of the video. Example:
youtube-dl --all-subs "https://vimeo.com/ondemand/<video>" --cookies cookies.txt --skip-download (--skip-download to download only the subtitles and not the video itself)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
LeeBinder commented Aug 9, 2020
hey @sripriyesha - does this also download full length subs of a VOD (Video On Demand) I have NOT purchased, or in that case only the trailer subs? Or in other words, does this only work for VODs one has purchased?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jomigoco commented Nov 25, 2020
@sripriyesha works perfectly, many thanks!
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pedrosvk commented Jan 22, 2023 • edited Loading Uh oh!
There was an error while loading. Please reload this page.
This worked for me as easy solution: https://www.youtube.com/watch?v=Mk6SmkKVZzA Just copy subtitles fom dev tools -> network -> *.vtt file -> preview
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment You can’t perform that action at this time.Tag » How To Download Subtitles From Embedded Vimeo Videos
-
How Do I Download Subtitles? - Vimeo OTT Customer Support
-
Vimeo Subtitles Download - Save Closed Captions From Vimeo
-
Download A Video With Captions Or Subtitles – Help Center - Vimeo
-
Download Vimeo Subtitles Quickly And For Free - DownSub
-
How To Download Subtitles From Any Vimeo Video (September 2022)
-
Download Videos From Vimeo With Subtitles - YouTube
-
How Can I Download Subtitles For A Vimeo Video?
-
Vimeo Subtitles Download - Free Online Converter - Savesubs
-
[SOLVED] How To Download Vimeo Videos? - VidDownMadness
-
How Can I Download An Embedded Private Vimeo Video? - Quora
-
How To Download Subtitles From Embedded Vimeo Videos
-
7 Simple Steps To Add Closed Captions Or Subtitles On Vimeo - Rev
-
Player SDK: Embed Options - Vimeo's API