S3 Bucket non-encrypted HLS works, but CloudFront of it doesn’t - amazon-s3

As the title says. S3 Bucket non-encrypted HLS works, but CloudFront of it doesn’t. I have been trying to get it to work for hours without any success. I followed all the docs closely. I set up header whitelist on CloudFront as well. Please help? When playing the video I get Network error message. It plays without any problem with the S3 Bucket URL. I tried various HLS streaming test websites.

HLS encryption does not work with Sign URL. With HLS encryption we break the video in multiple files (.ts) so if we want our playlist file (.m3u8) can able to access all those .ts files then we need to access those .ts files through signed cookie only.

Related

Widevine Modular with Video.js

I'm trying to play a Widevine encrypted MPEG-DASH video, on my webpage, using Video.js. I have the generated .mpd file in S3 and pass the url as I'm supposed to, but get a 403 forbidden error. It's not a permissions issue with AWS, since if I point directly to the .mp4 proxy file, Video.js plays the encrypted version of the video. When I look at the mpd file it seems to separately specify the audio and video files.
Does the audio file need to be separate from the video file in S3?

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.
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

Migrate videos from Vimeo to S3

I have a large quantity of videos on my Vimeo account that I would like to migrate to my AWS S3 account.
Rather than go through the time consuming process of downloading from Vimeo to my local machine then uploading from my local machine to S3, is there a way where I can do a direct transfer from Vimeo to S3?
If possible, I would want to create a script to iterate through each video via Vimeo API and set up the path to where it would go into S3 then initiate a direct transfer. Any ideas or suggestions would be much appreciated!
If you have a PRO account or higher, you can use the API to get download links for videos on your account, including download links for the original source file. Those download file links should be able to be used for importing into S3. Note that the links provided via the Vimeo API are expiring HTTP 302 redirects to the video file resource, so make sure you take note of the expiration time also provided in the response.
Download links are returned with the rest of a video's metadata, so I suggest using the fields parameter to only return the metadata needed.
http://developer.vimeo.com/api/common-formats#json-filter
https://developer.vimeo.com/api/reference/videos#GET/users/{user_id}/videos

Amazon S3: how to use/load an mp3 file simultaneously

I'm using Amazon S3 to store some mp3 files.
My web application, uses the Soundmanager2 javascript library to load the files from the Amazon bucket, and play them to users.
When the first user clicks on an mp3, soundmanager starts playing the file, and as intended, caches the rest of the song as it is being played.
Problem is, if a second user clicks on the same mp3, he must wait until the first user caches the whole song, which is unacceptable for my website.
I understand that Amazon S3 somehow 'streams' the file exclusively to the first request. Is there a way to be able to use that file simultaneously, i.e. users be able to play the same mp3's at the same time?
Also, would the CloudFront functionality solve this issue?
Thank you for your help!
Alex
(By the way, my application is built on Ruby on Rails 3, and hosted on Heroku)
There is no limitation in S3 that restricts simultaneous downloads of a single object.
I would suggest that you use a tool, like Charles, to inspect the HTTP requests and see if another service is causing the second client's request to be delayed.

how to link a video from amazon s3 account into my website

I have an amazon s3 account. As i am expecting a large amount of traffic to my site i want to put the videos to be placed in my s3 account and stream it up to my website. How can i do that?
Thanks
Prady
The simplest way is to upload it using the AWS Management Console for S3, use that to set its permissions to be publicly accessible, and then just access the usual S3 URL for it:
http://bucket-name.s3.amazonaws.com/key-name
Depending on exactly how much traffic you're getting, you can look into using Amazon's CloudFront distribution network. That will speed things up for your users, especially if they span the globe.