I want to use the SRC url
blob:https%3A//www.youtube.com/23aea5c8-9ae2-40dc-9417-e675ea99b386 code> download video, but I don't know how to do it.
Is there a general way to download this kind of video?
Recommended solutions
I found a way to download a video using the blob url
in Vimeo
(I didn't know how until I read this article). I'm using Google Chrome. Here are the steps:
open More Tools
> Developer Tools
check if there is something like this in the video tag:
<video preload="" src="blob:https://player.vimeo.com/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"></video>
Copy the iframe SRC (if any) value of the label, such as http://player.vimeo.com/video/XYZ code>, if you find that it can be replicated, jump straight to point 7, otherwise in accordance with the step 4 and 6 to continue operating. Now find the string in the page https://skyfire.vimeocdn.com/... /master.json?Base64_init =1
(using the Developer View), it should be found in the javascript function, like this:
(function(e,a){var t={"cdn_url":"https://f.vimeocdn.com","view":1,"request":{"files":{"dash":{"origin":"gcs","url":"https://48skyfiregce-a.akamaihd.net/.../master.json?base64_init=1","cdn":"
Force a.akamaihd.net/... copy the link from the url field above to a new Chrome TAB, such as https://48skyfiregce-a.akamaihd.net/... /master.json?Base64_init =1
, then open it with a browser, it will open a json file like this:
{
"clip_id": XYZ,
"base_url": "../",
"video": [
{ ... ... ...
Use id now XYZ code> combination structure a URL, as shown in the following: https://player.vimeo.com/video/XYZ code> are replaced with the final URL video tag within the blob:https://player.vimeo.com/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX code> (created in the previous step # 6). Now you can see that, magically, the SRC field inside the video tag has changed (if not, try Step 7 multiple times)...
<video preload="none" src="https://fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/XX/XXX/X/XXXXXXXX/XXXXXXXXX.mp4?token=abcdefg"></video>
Finally, using the new link to download it directly, like this: https://fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/XX/XXX/X/XXXXXXXX/XXXXXXXXX.mp4?token=abcdefg
Other solutions
The answer is for the Twitter url -
right click on the video, then click check element -
You'll find code like this
<div id="playerContainer" class="player-container full-screen-enabled" data-config="{"is_360":false,"duration":28617,"scribe_widget_origin":true,"heartbeatEnabled":true,"video_url":"https:\/\/video.twimg.com\/ext_tw_video\/844504104512749568\/pu\/pl\/e91Du5N2TZ09ZaW_.m3u8","disable_embed":"0","videoInfo":{"title":null,"description":null,"publisher":{"screen_name":"MountainButorac","name":"Mountain Butorac","profile_image_url":"https:\/\/pbs.twimg.com\/profile_images\/808318456701521920\/vBvlAASx_normal.jpg"}},"cardUrl":"https:\/\/t.co\/SdSorop3uN","content_type":"application\/x-mpegURL","owner_id":"14120461","looping_enabled":true,"show_cookie_override_en":true,"visit_cta_url":null,"scribe_playlist_url":"https:\/\/twitter.com\/MountainButorac\/status\/844505243538931714\/video\/1","source_type":"consumer","image_src":"https:\/\/pbs.twimg.com\/ext_tw_video_thumb\/844504104512749568\/pu\/img\/FFt3qkbeOh0RlGfZ.jpg","heartbeatIntervalInMs":5000.0,"use_tfw_live_heartbeat_event_category":true,"video_loading_timeout":45000.0,"status":{"created_at":"Wed Mar 22 11:05:14 +0000 2017","id":844505243538931714,"id_str":"844505243538931714","text":"Took my Goddaughter to meet the pope. She stole his hat! https:\/\/t.co\/SdSorop3uN","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[],"media":[{"id":844504104512749568,"id_str":"844504104512749568","indices":[57,80],"media_url":"http:\/\/pbs.twimg.com\/ext_tw_video_thumb\/844504104512749568\/pu\/img\/FFt3qkbeOh0RlGfZ.jpg","media_url_https":"https:\/\/pbs.twimg.com\/ext_tw_video_thumb\/844504104512749568\/pu\/img\/FFt3qkbeOh0RlGfZ.jpg","url":"https:\/\/t.co\/SdSorop3uN","display_url":"pic.twitter.com\/SdSorop3uN","expanded_url":"https:\/\/twitter.com\/MountainButorac\/status\/844505243538931714\/video\/1","type":"photo","sizes":{"small":{"w":340,"h":604,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"large":{"w":576,"h":1024,"resize":"fit"},"medium":{"w":576,"h":1024,"resize":"fit"}}}]},"source":"\u003ca href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter for iPhone\u003c\/a\u003e","in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"favorite_count":0,"favorited":false,"retweeted":false,"possibly_sensitive":false,"lang":"en"},"show_cookie_override_all":true,"video_session_enabled":false,"media_id":"844504104512749568","view_counts":null,"statusTimestamp":{"local":"4:05 AM - 22 Mar 2017"},"media_type":1,"user":{"screen_name":"MountainButorac","name":"Mountain Butorac","profile_image_url":"https:\/\/pbs.twimg.com\/profile_images\/808318456701521920\/vBvlAASx_bigger.jpg"},"watch_now_cta_url":null,"tweet_id":"844505243538931714"}" data-source-type="consumer">
Copy the above code and paste it into Notepad++ (Notepad++), then replace all & with "
; quot;
, replace all and \/
with /
. (use CTRL + H
)
You'll get something like this
{
"is_360": false,
"duration": 28617,
"scribe_widget_origin": true,
"heartbeatEnabled": true,
"video_url": "https://video.twimg.com/ext_tw_video/844504104512749568/pu/pl/e91Du5N2TZ09ZaW_.m3u8",
"disable_embed": "0",
"videoInfo": {
"title": null,
"description": null,
"publisher": {
"screen_name": "MountainButorac",
"name": "Mountain Butorac",
"profile_image_url": "https://pbs.twimg.com/profile_images/808318456701521920/vBvlAASx_normal.jpg"
}
},
"cardUrl": "https://t.co/SdSorop3uN",
"content_type": "application/x-mpegURL",
"owner_id": "14120461",
"looping_enabled": true,
"show_cookie_override_en": true,
"visit_cta_url": null,
"scribe_playlist_url": "https://twitter.com/MountainButorac/status/844505243538931714/video/1",
"source_type": "consumer",
"image_src": "https://pbs.twimg.com/ext_tw_video_thumb/844504104512749568/pu/img/FFt3qkbeOh0RlGfZ.jpg",
"heartbeatIntervalInMs": 5000.0,
"use_tfw_live_heartbeat_event_category": true,
"video_loading_timeout": 45000.0,
"status": {
"created_at": "Wed Mar 22 11:05:14 +0000 2017",
"id": 844505243538931714,
"id_str": "844505243538931714",
"text": "Took my Goddaughter to meet the pope. She stole his hat! https://t.co/SdSorop3uN",
"truncated": false,
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": [],
"media": [{
"id": 844504104512749568,
"id_str": "844504104512749568",
"indices": [57, 80],
"media_url": "http://pbs.twimg.com/ext_tw_video_thumb/844504104512749568/pu/img/FFt3qkbeOh0RlGfZ.jpg",
"media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/844504104512749568/pu/img/FFt3qkbeOh0RlGfZ.jpg",
"url": "https://t.co/SdSorop3uN",
"display_url": "pic.twitter.com/SdSorop3uN",
"expanded_url": "https://twitter.com/MountainButorac/status/844505243538931714/video/1",
"type": "photo",
"sizes": {
"small": {
"w": 340,
"h": 604,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"large": {
"w": 576,
"h": 1024,
"resize": "fit"
},
"medium": {
"w": 576,
"h": 1024,
"resize": "fit"
}
}
}]
},
"source": "\u003ca href=\"http://twitter.com/download/iphone\" rel=\"nofollow\"\u003eTwitter for iPhone\u003c/a\u003e",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweet_count": 0,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"lang": "en"
},
"show_cookie_override_all": true,
"video_session_enabled": false,
"media_id": "844504104512749568",
"view_counts": null,
"statusTimestamp": {
"local": "4:05 AM - 22 Mar 2017"
},
"media_type": 1,
"user": {
"screen_name": "MountainButorac",
"name": "Mountain Butorac",
"profile_image_url": "https://pbs.twimg.com/profile_images/808318456701521920/vBvlAASx_bigger.jpg"
},
"watch_now_cta_url": null,
"tweet_id": "844505243538931714"
}
From the JSON format above, you can see the value of video_URL
https://video.twimg.com/ext_tw_video/844504104512749568/pu/pl/e91Du5N2TZ09ZaW_.m3u8
The problem here is that after August 1, 2016, Twitter stopped using.MP4 video and instead converted to a new HLS, adaptive streaming format with a.m3u8 file extension.
The.m3u8 files are basically just a wrapper around the text, and they are very small (300-500 bytes). When you open them with a text editor, they contain links to different video sizes
in Notepad++ (Notepad++) open the file m3u8, which will contain the code
EXTM3U EXT-X-INDEPENDENT-SEGMENTS EXT - X - STREAM - INF: PROGRAM - ID = 1, BANDWIDTH = 256000, RESOLUTION = 180 x320 CODECS = "mp4a. 40.2, avc1.42001 f"/ext_tw_video/844504104512749568/pu/pl/180 x320/_Z42SY5zwMlLdFYx m3u8 EXT - X - STREAM - INF: PROGRAM - ID = 1, BANDW IDTH = 832000, 360 x640 RESOLUTION =, CODECS = "mp4a. 40.2, avc1.42001 f"/ext_tw_video/844504104512749568/pu/pl/360 x640/- Phfjbbx2yinirLi. M3u8
copy the corresponding link from above according to the resolution you need. Repeat the same steps until you have a.ts file. Download the.TS file (video file).
Read More:
- Python implementation of bilibilibili (B station) video download
- How do I download or save a YouTube video to my computer?
- Remove video with video byte 0, uncaught (in promise) domexception: failed to load because no supported source was f
- Video JS can’t play the prompt( CODE:4 MEDIA_ ERR_ SRC_ NOT_ SUPPORTED) No compatible source was found for this video.
- To solve the problem of increasing video memory when training network (torch)
- Apple computer download file automatically with suffix problem solving
- Using uniapp uni.downloadFile Download picture to photo album times error unknown problem
- Condahttpererror: http 000 connection failed for URL problem in CONDA installation package
- Refused to apply style from <URL> because its MIME type (‘text/html‘) is not a supported stylesheet
- To solve the problem of nginx accessing PHP file into download
- Content rendering error: a solution to the problem of zero Download document cannot be opened
- urlopen error unknown url type:httpë/HTTP Error 400:Bad Request
- Keil prompts the stlink download program to prompt error: Flash download failed – target DLL has been cancelled
- Solve the problem of using the default content type of JMeter
- Bug: unable to download source code in idea, error cannot download sources sources not found for:XXX
- NPM modify download dependency (modify global download and cache path)
- Reading and saving opencv Python video
- Easywasmlayer reports an error uncaught (in promise) domexception when playing a video
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- Error message for HLS Video Fusion for the second time when using mars3d