nikhil khare
nikhil khare

Reputation: 141

How to upload videos on Youtube using AWS S3 as Video Source

I have a VIDEO CMS hosted over AWS EC2 where user can upload videos and later share on Facebook and Youtube. I push videos to S3 after uploading and delete it from EC2.

Now I want to use S3 to share videos to both social networks. However FB provides a way to upload videos directly from S3 but Youtubes need video to be physically present on server.

I have not found any solution yet.

Thanks in advance for your help.

Upvotes: 5

Views: 2577

Answers (1)

Gaurav Mourya
Gaurav Mourya

Reputation: 177

If it is not compulsory your video should be shared on youtube from amazon S3, you can directly upload your video to youtube by using youtube api, either javascript or other backend you are using. It will be much easier way. S3 doesnot provide any way to upload your video on youtube. Also you will have to manually check for new videos added to s3 and need to manually upload to youtube.

You will have to upload video on youtbe just after user/ you uploads on EC2. It will be dynamic.

You can get Youtube vidoe insert api resource from here https://developers.google.com/youtube/v3/docs/videos/insert

Upvotes: 1

Related Questions