字幕表 動画を再生する AI 自動生成字幕 字幕スクリプトをプリント 翻訳字幕をプリント 英語字幕をプリント Every YouTube video has a unique ID. すべてのYouTube動画には固有のIDがあります。 It's up in the URL: a string of eleven characters それはURLにアップされています:11文字の文字列 that uniquely identifies which video you want. あなたが望むビデオを一意に識別することができます。 Now, YouTube has millions and millions of videos. 今、YouTubeには何百万、何百万と のビデオを見てみましょう。 The last stats that they released said they have 最後に発表された統計によると ある 400 hours of video being uploaded every minute. 毎分400時間の動画がアップロードされている So: are they ever going to run out of those IDs? だから:彼らは今までにそれらを使い切るつもりはありますか? IDは? Well, to find out, let's talk about counting systems. さて、それを知るために、カウントの話をしましょう。 システムを使用しています。 People count in Base 10. 0 to 9. ベース10で人を数える。0から9まで That'll be, hopefully, familiar to you. うまくいけば、あなたの身近な存在になるでしょう。 Computers count in base 2, in binary, コンピュータは2進数でカウントします。 but that's difficult for humans to read, が、それは人間には読みにくい。 it gets too long to write really, really quickly, 長くなりすぎて、本当にすぐに書けなくなる。 so often computers will display it in base 16, hexadecimal. コンピュータはそれをベースに表示することがよくあります 16進数で16進数 You have 0 to 9, and then A to F, 0から9まであって、AからFまであるんですね。 and then you start adding to the next column. と、次の列に追加していきます。 Humans can't understand that easily, 人間はそんな簡単には理解できない。 but it's efficient if we have to type it in somewhere, で入力するのが効率的ですが どこかで and 16 - 2 to the power of 4 - is also easy for computers to deal with. と16 - 4の力に2 -も簡単です。 コンピュータが対処するために So how about Base 64? では、Base 64はどうでしょうか? That'd be a ridiculous counting system, right? Except. そんなことしたら、とんでもないカウントシステムになってしまいますよね。 それを除けばね 64 is another one of those easy numbers for computers, 64は、もう一つの簡単な数字の一つです。 コンピューターを使用しています。 it is 2 to the power of 6. 6の2乗である。 And humans can get to 64 very easily: そして人間は簡単に64まで行ける 0 to 9, then capital letters A to Z, 0から9まで、次に大文字のAからZまで。 then small letters a to z, and two other characters. その後、小さな文字のaからzまでと、他の2つの文字。 Most Base 64 uses slash and plus, ほとんどのBase 64ではスラッシュとプラスが使われています。 but they don't work so well in URLs, が、URLではあまり効果がありません。 so YouTube uses hyphen and underscore. ということで、YouTubeではハイフンとアンダースコアを使用しています。 That YouTube URL, that unique ID, そのYouTubeのURL、ユニークなID。 is really just a random number in base 64. は本当にベース64の乱数に過ぎません。 They could have have picked base 10 or base 16, ベース10かベース10を選んだかもしれない 16, but they didn't: they went with 64, しかし、彼らはそうしなかった:彼らは64で行った。 because it will let you cram a huge number into a small space 膨大な数を詰め込むことができるからです。 狭間に and still make it vaguely human readable. そして、それでも漠然と人間が読めるようにする。 Author and programmer Sam Hughes, by the way, ちなみに作家でプログラマーのサム・ヒューズ。 pushed this to the limit, and invented Base 65,536, はこれを限界まで追求し、Baseを発明しました。 65,536, which includes basically every character from every language. のすべてのキャラクターが含まれています。 すべての言語。 It is ridiculous and unnecessary, 馬鹿げているし、必要ない。 but when has that ever stopped programmers? しかし、いつからプログラマーを止めたのでしょうか? So why didn't YouTube just start counting at 1 and work up? なぜYouTubeはカウントを始めなかったのか 1の時に、そして上を目指すか? Well, first, they would have to synchronise their counting まず、彼らは同期しなければならない 数え方 between all the servers handling the video uploads, ビデオを扱うすべてのサーバー間で をアップロードします。 or they'd have to assign each server a block of numbers. でないと、各サーバーにブロックを割り当てる必要があります。 数字の Either way, there's a lot of tracking to do, どっちにしても追跡が多いからな a lot of making sure that it's never duplicated. 重複しないようにすることが多い Instead, they just generate a random number for each video, 代わりに乱数を生成して それぞれの動画のために see if it's already taken, and if not, use it. を使用して、すでに撮影されているかどうかを確認し、撮影されていない場合は それを And secondly, it is a really, really bad idea そして第二に、それは本当に、本当に悪い考えです。 to just count 1, 2, 3 and so on in URLs. を使って、URLの中の1,2,3などを数えるだけにしてみましょう。 Incremental counters, as they're called, can be a big security flaw: インクリメンタルカウンターは、その名の通り 大きなセキュリティ上の欠陥になる if you see video 283 up there, then you might wonder: 283のビデオを見てみろ 疑問に思う。 what's video 284? Or video 282? 284って何だ?それともビデオ282? It's easy to enumerate, as it's called, いわゆる列挙するのは簡単です。 to run through the entire list. をクリックしてリスト全体を実行します。 YouTube Unlisted videos, the ones that don't appear publicly YouTube 非表示にしている動画、していないもの 顔を出す but that you can send the link to people, those wouldn't work. しかし、リンクを人に送ることができること。 それじゃダメなんだ And by the way? Lots of badly designed sites do use incremental counters. ところで?デザインの悪いサイトがたくさん はインクリメンタルカウンタを使用します。 And it is a terrible idea. そして、とんでもないことになっています。 It might tell your competitors exactly how many customers you have, それはあなたの競合他社に正確な方法を教えてくれるかもしれません。 あなたは多くの顧客を持っています。 'cos they can just count them. 数えることができるからだ It might let people download all your records easily, あなたの記録をすべてダウンロードさせるかもしれない 簡単に。 'cos they can just run through them. 彼らは彼らの中を走り抜けることができるからだ。 And in one site that someone in Florida emailed me about this week, そして、フロリダの誰かがメールしたあるサイトでは 今週のことです。 it lets you look at other people's personal details. 他の人の個人的な 詳細はこちらをご覧ください。 Don't use incremental counters if you're building a web site. Use a random number. もし、あなたが とあるWebサイト。乱数を使う。 Which brings me to the question: それで質問が出てきました。 just how big are the numbers that YouTube uses? YouTubeの数字がどれだけ大きいかというと 使うのか? Well, let's work it out. まあ、なんとかしよう。 One character of base 64 lets you have 64 ID numbers. ベース64の1文字で64を持つことができます。 ID番号です。 Two characters? That's 64 by 64, or 4,096. 2文字?64×64、つまり4096ですね。 Three characters? 64 times 64 times 64 -- or 64 to the power of 3. 三文字?64回64回64回......か 64の3乗になります。 That is already more than a quarter of a million. それはもう25万人以上の人がいる。 And if we go to four? Well, now we're above 16 million. 4人になったら?今は上にいる 1,600万だ If you use Base 64, then you can assign an ID number Base 64を使用している場合は アイディーナンバー to everyone who lives in London down there twice over, ロンドンに住んでいるすべての人に 二度手間になる。 and you'll only need four characters. と、4文字で済むようになっています。 This gets big fast. We can keep on doing this, 早く大きくなるぞ私たちはこれを続けることができます。 and by seven characters we're already at four quadrillion. そして七文字ですでに四文字になっている 4兆円 Now, I assume that YouTube checks through a dictionary, 今、私はYouTubeがチェックしていると仮定して 辞書。 and doesn't allow any actual words to appear up there -- と実際の言葉が出てこないようにしています。 あそこに... particularly anything rude. 特に失礼なことは But that is going to be a tiny minority of the URLs, しかし、それはごく少数派になりそうです。 のURLを指定します。 so for our purposes, we can pretty much just ignore that. なので、私たちの目的のためには それを無視して At YouTube's 11 characters, we are at 73 quintillion 786 quadrillion YouTubeの11文字の時点で73五分五分 786兆 976 trillion 294 billion 838 million 976兆2,940億2,940億8,800万 206 thousand and 464 videos. 206千と464の動画。 That's enough for every single human on planet Earth 地球上の全ての人間のために十分だ 地球 to upload a video every minute for around 18,000 years. 分ごとに動画をアップロードして 18,000年です。 YouTube planned ahead. YouTubeは先に計画した。 Can they run out of URLs? Technically, yes. URLを使い切ることはできますか?技術的には可能です。 Practically? No. And if they did? 現実的に?いや、もしそうだったら? They could just add one more character. もう一人キャラを増やせばいいんじゃないかな [Translating these subtitles? Add your name here!] [この字幕を翻訳しているのか?] Ha! One take! One take! Yes! はっ!ワンテイク!ワンテイク!やった!
B1 中級 日本語 英 文字 youtube ベース id カウント アップロード YouTubeは動画IDを使い果たすのか? 811 38 Samuel に公開 2018 年 05 月 25 日 シェア シェア 保存 報告 動画の中の単語