Upload and embed video on site - javascript

I'm trying to build a site where users can upload videos, which will be embedded for other users to view and download. I have tried using Vimeo, but I would need Vimeo Pro in order to store others' videos on my account which is too expensive for my organization. How can I do this?

Here's one way to do it:
Convert the videos to JW Player files, upload them to an S3 bucket, and point the bucket to a CloudFront Web distribution. More on this here.
In that tutorial the videos are uploaded manually to an S3 bucket. Because your use case needs the upload to happen programmatically, you need to use an SDK for S3 in your code. Here's a tutorial on how to do it in PHP (with other languages available in the sidebar).
These services are not free but cheap.
Suppose you upload 100 videos, 1 GB each in one month. This will cost you about $2.85 for S3.
Suppose the users view the total of 100 GB, with an average object size of 1 GB, and 100% of users are in United States. This will cost you about $7.10 for CloudFront.

Related

Reduce bytes downloaded by all clients on Firebase Hosting?

I'm hosting a website on Firebase Hosting for free and I want that to stay that way :D.
It's a simple 1 page landing page. My problem is that today under hosting it says 3GB was downloaded by all the clients. (free is 10GB/month). How can I limit the client side download in any way? I have a looping background video with a size of 100MB but its only have to download it once right? so that 100MB/user but that shouldn't add up to 3GB in 1 day since I only send it to like 4 people to test it out. And I also have like 5 embed YouTube video but are those count toward client side data downloaded? and some pictures under 1mb but that should matter also.
Also here is a screenshot from the Network tab after Crtl+Shift+R reaload.

Designing a website with basic upload and download functionality for live photos

I am looking to build a website that allows a user to upload multiple live photos at once, and then extracts the video files for the user to download them.
Do I need a full backend / S3 bucket here or can I keep it more lightweight with just html + js?
Basic assumptions would be less then 100 photos

Streaming media from AWS to the Web Browser

I have some large audio files in the S3 bucket.
I want to play them in a browser on-demand.
I don't want to firstly download the whole file and only then play it.
I want to achieve something like YouTube, where the whole video is not immediately downloaded but rather downloaded in small pieces.
Are there any native out-of-the-box solutions provided by AWS? Can a pre-signed S3 URL be used for this purpose? Do I need other services like AWS MediaLive or AWS IVS?
Also, maybe there are advanced JavaScript (browser based) players, that support this type of workflow?
Thank you.

Upload tens of thousands of images via web interface

I have a task where it needs to be possible to upload thousands of images in one go via a web interface.
The user selects the folder and the upload begins.
What is the best way to manage this from a UI point of view? Current UI uploaders seem inadequate.
How can I manage uploading a folder of images (recursively) to the server?
Additionally, how can error handling occur for failed uploads?
Edit:
This is for a citizen science project for a museum. The people (curators) mass uploading photos of collections (usually photos of fossils) need a simple way of uploading them to the server - FTP etc aren't suitable. A method through the web UI is needed.

Recording audio to internet - SoundCloud API?

So I need to allow clients to record audio to the internet. Best solution I've found so far which keeps them on our site is the Soundcloud API and I just give them our account details and they use a version of the Soundcloud recorder (Flash/Javascript) hacked together for out site.
Main issue is, these recordings are long. Maybe up to an hour. Because Soundcloud API records in the browser then uploads the audio and transcodes on its server there's a lot to go wrong in the upload process which takes a long time with a big file. It's ok if we just record the audio in say 20 min chunks but it's just not that reliable.
We tried to build our own using wami-recorder, but that meant transcoding from wav to MP3 in the browser before upload to make the file smaller, but taking more time on the client machine - at least Soundcloud does the transcoding server-side.
Given the size of the files should I be looking at a server side recorder/streaming solution based on red5 or something, or is a client side recorder with upload a better proposal?
thanks a lot!

Categories

Resources