When you start a resumable upload session with YouTube, you have to specify a byte count for what the sent file will be, as well as the necessary authentication information to upload a video on behalf of a user.
This request can include things like the title of the video, the description, whether it will be uploaded as a public video, etc. In other words, all the things you would normally set when uploading a video through the web interface.
I noted that the pre-edited parts of the video when concatenated was about 190MB in size. As such, I told YouTube in my request to expect a 400MB file, just to play it absolutely safe.
The response from this request includes two important pieces of information. One, it includes the URL for sending the video information to. And two, the information about where the resulting video will end up, such as it's ID.
Once a resumable upload session is initialized, it has quite a reasonable window of time to start sending the binary video data. As far as I could tell, that window was roughly 15 minutes, but I never tested to see how far I could push it.
Using FFmpeg muxing and concatenation to skip encoding anything other than the ID part, I was able to have the video containing the ID created well before the window of time had closed.
When sending the data to the upload URL that YouTube specified, I created a buffer of exactly 400MB in size, and imported the video into the front of the buffer, leaving the rest of the buffer filled with null characters. Those null characters don't corrupt the video, but they still contribute to the byte count.
Since the buffer matches the byte count I told YouTube, and has plenty of room to fit the video inside of it, YouTube accepts the information, parses it and treats it like any normal video being uploaded.
Yes, I could probably go into more detail and explain things a bit more clearly for the less tech-savvy, but I made this on a whim and put myself behind on work as a result, so I might end up making a better video later.
When you start a resumable upload session with YouTube, you have to specify a byte count for what the sent file will be, as well as the necessary authentication information to upload a video on behalf of a user.
This request can include things like the title of the video, the description, whether it will be uploaded as a public video, etc. In other words, all the things you would normally set when uploading a video through the web interface.
I noted that the pre-edited parts of the video when concatenated was about 190MB in size. As such, I told YouTube in my request to expect a 400MB file, just to play it absolutely safe.
The response from this request includes two important pieces of information. One, it includes the URL for sending the video information to. And two, the information about where the resulting video will end up, such as it's ID.
Once a resumable upload session is initialized, it has quite a reasonable window of time to start sending the binary video data. As far as I could tell, that window was roughly 15 minutes, but I never tested to see how far I could push it.
Using FFmpeg muxing and concatenation to skip encoding anything other than the ID part, I was able to have the video containing the ID created well before the window of time had closed.
When sending the data to the upload URL that YouTube specified, I created a buffer of exactly 400MB in size, and imported the video into the front of the buffer, leaving the rest of the buffer filled with null characters. Those null characters don't corrupt the video, but they still contribute to the byte count.
Since the buffer matches the byte count I told YouTube, and has plenty of room to fit the video inside of it, YouTube accepts the information, parses it and treats it like any normal video being uploaded.
Yes, I could probably go into more detail and explain things a bit more clearly for the less tech-savvy, but I made this on a whim and put myself behind on work as a result, so I might end up making a better video later.Taskmaster NZ - The Bucket CutHate To Say It2021-09-08 | All of Taskmaster NZ Season 2, except only bucket.
Here is the criteria I followed for what frames to keep in: - Laura's bucket, it's shadow, or reflection is in shot. - The string holding Laura's bucket is clearly visible in shot. - Anyone is saying the word bucket.
------------ This is not an officially endorsed edit of the show. All rights to the content belong to Avalon Entertainment Limited, Kevin & Content Limited and Television New Zealand Limited.
Full seasons of the show can be streamed for free in NZ from TVNZ On Demand: tvnz.co.nz/shows/taskmaster-nz ------------Hate To Say It Live StreamHate To Say It2021-04-09 | ...