Live data from Hacker News

YouTube video has its own URL in it

youtube.com

11–20 of 160 posts

Re: YouTube video has its own URL in it

#11

Interestingly, there's a frame or two at the very beginning that shows a document open that could suggest an exploit of some kind. Screenshot: https://i.imgur.com/3oTXTDK.png

From: Pi

To: Pi

Subject: Project Time Machine - Test #3

It sounds like someone's trying to create some fun meta-fiction - it looks like a letter from the creator's future self to his past-self, describing future-self's experience going through some iteration of the time-loop ("Don't talk about fate. You did it once and it was cringy.")

Re: YouTube video has its own URL in it

#15
post #9
post #6

Earlier quoted context omitted.

Just a guess but I assume this was done by starting an upload with the API which gave the guy the ID but then not streaming the actual video file until it was recorded. Looking at an example of the API in use ( https://developers.google.com/youtube/v3/docs/videos/insert#... ) that certainly seems plausible although I would imagine that there would be a timeout making it difficult. edit: after looking at the other guy…

The ID returns once your upload is completed. Edit: I don't know the answer but I assume from all the APIs I worked with in the past, but if you get the URL before the upload is completed then yeah it's pretty easy to "fake".

Have you confirmed this? In the example the ID is retrieved from the finished upload response, but on the actual YouTube website does tell you the video link with the ID in advance, and the API parameter 'part' does appear to allow you to get the ID.

Re: YouTube video has its own URL in it

#16
post #2

Anybody knows how?

Start uploading a video, pause the upload, you could already get the ID of the vid, render rest of the video and then continue the upload that now contains the ID of the video :D

And then cut away the beginning.

Re: YouTube video has its own URL in it

#17
post #9
post #6

Earlier quoted context omitted.

Just a guess but I assume this was done by starting an upload with the API which gave the guy the ID but then not streaming the actual video file until it was recorded. Looking at an example of the API in use ( https://developers.google.com/youtube/v3/docs/videos/insert#... ) that certainly seems plausible although I would imagine that there would be a timeout making it difficult. edit: after looking at the other guy…

The ID returns once your upload is completed. Edit: I don't know the answer but I assume from all the APIs I worked with in the past, but if you get the URL before the upload is completed then yeah it's pretty easy to "fake".

Maybe with this API, but when uploading a YouTube video through YouTube, you definitely get the URL before the actual upload finishes. I don't imagine it'd be terribly hard to reverse-engineer that API.

My guess is that you can start an upload, get the ID, and then stream unimportant and non-comitall video headers and chunks (e.g. subtitle tracks or other metadata) slowly enough to keep the server from closing the connection on you. Then you can just record your video and start uploading actual video chunks once ready.

Or maybe YouTube doesn't have a huge timeout for starting your upload, so you don't even have to do all of that.

Re: YouTube video has its own URL in it

#18
post #9
post #6

Earlier quoted context omitted.

Just a guess but I assume this was done by starting an upload with the API which gave the guy the ID but then not streaming the actual video file until it was recorded. Looking at an example of the API in use ( https://developers.google.com/youtube/v3/docs/videos/insert#... ) that certainly seems plausible although I would imagine that there would be a timeout making it difficult. edit: after looking at the other guy…

The ID returns once your upload is completed. Edit: I don't know the answer but I assume from all the APIs I worked with in the past, but if you get the URL before the upload is completed then yeah it's pretty easy to "fake".

Presumably that is not always the case, though. What about live video, for example?

Re: YouTube video has its own URL in it

#19
post #2

Anybody knows how?

Start uploading a video, pause the upload, you could already get the ID of the vid, render rest of the video and then continue the upload that now contains the ID of the video :D

This is probably it, I'm going to say Bingo.

Re: YouTube video has its own URL in it

#20
post #2

Anybody knows how?

Start uploading a video, pause the upload, you could already get the ID of the vid, render rest of the video and then continue the upload that now contains the ID of the video :D

How to pause? and re upload pending part with new video?
Post reply on HN