alwaysbegrowing / media-pipeline

Rendering code and configuration
0 stars 0 forks source link

Automatically Create Compilations and post to YT #40

Open RusseII opened 3 years ago

RusseII commented 3 years ago

About

I want to do an experiment and see if we get any youtube views by publishing the videos we create to our own public youtube channel. Starting out I want to do this for dota2 streamers with all videos being published to one youtube account. With this method a max of 5 videos per day can be posted.

Considerations

Youtube API only allows us to upload private videos - I would have to manually go in and change from private to public. If I'm doing that - It probably makes sense to always release the videos at the same time everyday and can be done in batch instead of as soon as the streamers go offline

Tech details

We have a endpoint that will handle creating the videos - we just need to make the api call to the /clips endpoint with the user who's making the request (me) and an array of the timestamps for the compliation

Generating the timestamps

We need to add the users to mongodb so we automatically create clip timestamps for all of their vods

Creating the clips

chand1012 commented 3 years ago

Youtube API only allows us to upload private videos - I would have to manually go in and change from private to public.

You can't change it from private to public, YouTube won't let you at all. I've tried it before. You could potentially script a way to upload the videos via a browser wrapper like Selenium but that would be a huge pain.

RusseII commented 3 years ago

You can't change it from private to public, YouTube won't let you at all. I've tried it before. You could potentially script a way to upload the videos via a browser wrapper like Selenium but that would be a huge pain.

What!! Very bad luck. It's awesome you knew this - saved a big headache!

Do you know why they are locked? Is there a better issue / description anywhere?

How can we fix this? (Getting our app verified only way?)

image

chand1012 commented 3 years ago

This is all I could find, but you may be able to find something better with some more googling. https://support.google.com/youtube/answer/7300965?hl=en

On Sat, Sep 4, 2021, 7:39 PM Russell Ratcliffe @.***> wrote:

You can't change it from private to public, YouTube won't let you at all. I've tried it before. You could potentially script a way to upload the videos via a browser wrapper like Selenium but that would be a huge pain.

What!! Very bad luck. It's awesome you knew this - saved a big headache!

Do you know why they are locked? Is there a better issue / description anywhere?

How can we fix this? (Getting our app verified only way?)

[image: image] https://user-images.githubusercontent.com/15036618/132110462-0385a2c7-eab0-4c6d-9150-c31b6357b7ed.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pillargg/media-pipeline/issues/40#issuecomment-913055291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA23YLQVMV6CJJTC5GODG4TUAKU45ANCNFSM5DNYDRWQ .

RusseII commented 3 years ago

image

Looks like I got an email too

gatesyp commented 3 years ago

You can't change it from private to public, YouTube won't let you at all. I've tried it before. You could potentially script a way to upload the videos via a browser wrapper like Selenium but that would be a huge pain.

OOC, Is there a link to this or something in their documentation you know about ?

If true, are there implications with our users for that? Eg we wouldn't be able to post to their channel directly via API?

RusseII commented 3 years ago

I assume it is this @gatesyp

https://developers.google.com/youtube/v3/docs/videos/insert

All videos uploaded via the videos.insert endpoint from unverified API projects created after 28 July 2020 will be restricted to private viewing mode. To lift this restriction, each API project must undergo an audit to verify compliance with the Terms of Service. Please see the API Revision History for more details.