2016-01-30 19:43:28 +0000 2016-01-30 19:43:28 +0000
97
97
Advertisement

blob urlで動画をダウンロードする方法は?

Advertisement

私はsrc urlで動画をダウンロードしようとしています blob:https%3A//www.youtube.com/23aea5c8-9ae2-40dc-9417-e675ea99b386

このタイプのすべての動画をダウンロードするために従うことができるプロセスはありますか?

Advertisement
Advertisement

回答 (4)

74
74
74
2016-10-02 10:39:27 +0000

私は、blob urlVimeoのビデオをダウンロードする方法を見つけました。ここに簡単な手順を書いておきます。Google Chromeを使用しています。開く More ToolsDeveloper Tools 2. 動画タグの中にこのようなものがあるかどうかを確認する:

  1. iframeタグのsrcをコピーして、もしあれば、あなたがそれを見つけた場合は、ポイント7にまっすぐ行くことができますhttp://player.vimeo.com/video/XYZのような何か、そうでなければ手順4、5、6に従ってください。今すぐページ内のこの文字列を探してください(開発者ビューを使用して)、あなたはこのようなjavascriptの関数の中にそれを見つける必要があります:

5.新しいChromeタブ上のURLフィールド内のリンクをコピーしてください、例えばhttps://skyfire.vimeocdn.com/.../master.json?base64_init=1エンドブラウザでそれを開いてください、それはあなたにこのようなjsonファイルを開きます:

  1. 今すぐこのようなあなたのID https://48skyfiregce-a.akamaihd.net/.../master.json?base64_init=1でURLを構成します: XYZ

7.その最後のURL(前のステップ#6で作成されたもの)でビデオタグ内のhttps://player.vimeo.com/video/XYZを置換します。今、あなたは魔法のように video タグの中の src フィールドが変更されたことに気づくでしょう(変更されない場合は、ステップ 7 を複数回試してみてください)…

  1. この新しいリンクを使って直接ダウンロードしてください。
11
11
11
2017-03-22 12:48:11 +0000

Ta odpowiedź jest przeznaczona dla adresów URL Twittera -

  1. Kliknij prawym przyciskiem myszy na filmik i kliknij “Sprawdź elementy” -

Znajdziesz kod jak ten

<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=```
{
    "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"
}
```quot;http:\/\/twitter.com\/download\/iphone```
https://video.twimg.com/ext_tw_video/844504104512749568/pu/pl/e91Du5N2TZ09ZaW_.m3u8
```quot; rel=&001quot;nofollow&001quot;\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">

2.Skopiuj Powyższy kod w notatniku++. Zastąp wszystkie &quot; z " i \/ z / w notatniku++. (Użyj CTRL+H)

Dostaniesz coś w stylu

&001

Od góry format JSON, zobacz wartość video_url

&001

Tutaj jest, po 1 sierpnia 2016, Twitter nie używa już . Wideo mp4, ale konwersja do nowego formatu HLS, adaptacyjny strumień, z rozszerzeniem pliku .m3u8.

.m3u8 pliki są w zasadzie tylko opakowaniem pliku tekstowego, są super małe (300-500 bajtów), a kiedy otworzysz je za pomocą edytora tekstowego, zawierają linki do różnych rozmiarów wideo

  1. Otwórz plik m3u8 w notatniku++, będzie on zawierał kod jak ten

EXTM3U EXT-X-INDEPENDENT-SEGMENTS EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=256000,RESOLUTION=180x320,CODECS=“mp4a.40 .2,avc1.42001f” /ext\_tw_video/844504104512749568/pu/pl/180x320/_Z42SY5zwMlLdFYx.m3u8 EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=832000,REZOLUCJA=360x640,CODECS=“mp4a.40 .2,avc1.42001f” /ext\_tw_video/844504104512749568/pu/pl/360x640/-Phfjbbx2yinirLi.m3u8

  1. 1. Skopiuj odpowiedni link z góry zgodnie z potrzebami twojej rozdzielczości. Powtarzaj ten sam krok do momentu uzyskania pliku .ts. Pobierz plik .ts (plik wideo).
10
Advertisement
10
10
2018-11-14 22:33:25 +0000
Advertisement
<video src="blob:https://www.example.tv/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">
  <source src="https://cdn.example.tv/api/media/tv/xyzxyz/index" type="application/x-mpegurl">
</video>

blob: にも video/@src の URL が入っていたのですが、再生中に Developer tools > Network を見ると、video/source/@srcm3u8 のプレイリストの URL であることが判明しました。

m3u8の動画は、以下のいずれかの方法で簡単にダウンロードすることができます:

  • ffplay -i "https://cdn.example.tv/api/media/tv/xyzxyz/1080/index.m3u8"
  • ffmpeg -i "https://cdn.example.tv/api/media/tv/xyzxyz/1080/index.m3u8" -codec copy file.mkv

_tl;dr - blob URLは、あなたが取得したいバイナリのように聞こえますが、ビデオを取得するためのより簡単な方法があるかもしれません。あなたが実際に取得しているものを確認するためにビデオを再生しながら、ちょうど開発ツールのネットワークタブをチェックアウトします。

0
0
0
2017-09-26 14:09:05 +0000

私はblob urlVimeoでビデオをダウンロードする別の方法を見つけました(このページの 他の回答 を参照してください)。

*このソリューションは、あなたが音なしでビデオだけをしたい場合にのみ適しています! *

だから、あなたが(多くの場合、音なしで)Vimeoのビデオだけをダウンロードしたい場合、私はこのGoogle Chromeの拡張機能が本当に良い動作することを確認することができます。 フラッシュビデオダウンローダー

Advertisement

関連する質問

21
6
9
4
10
Advertisement