News for hackers. Stuff that matters.
Re:Ask HN: How do you handle user-generated content in your ... by Zealotux on Monday August 23, 2021 @08:16AM (#28274672)
I'm using AWS' presigned URLs to let my users upload directly to an S3 bucket, with a lambda function to generate thumbnails, I keep track of the user's uploads through my app's database. This is as close as I imagine an "affordable API for audio, video, and images".
Re:Ask HN: How do you handle user-generated content in your ... by view on Monday August 23, 2021 @08:49AM (#28274951)
Thanks for the feedback! How long did it take you to implement this and are you also encoding videos for adaptive streaming?
Re:Ask HN: How do you handle user-generated content in your ... by Zealotux on Monday August 23, 2021 @10:04AM (#28275890)
I had never worked with such API before so it took me roughly two days, the AWS documentation is abysmal, and I could've one that in just a few hours if only they cared about documenting their APIs better. My biggest mistake was going for a kind of presigned URL that was not giving me much control over the size of files sent (I don't find it anymore for some reason, looks like the documentation changed). Go with PresignedPost, it allows quite a lot of control and it's an amazing way to avoid load on your servers.

>are you also encoding videos for adaptive streaming?

Can't help you with that, I only worked with images, best of luck!

Re:Ask HN: How do you handle user-generated content in your ... by mooreds on Tuesday August 24, 2021 @11:24AM (#28290078)
I have played around with AWS Elastic Transcoder: https://aws.amazon.com/elastictranscoder/

If video is of interest, I'd definitely take a look at that and see if it meets your needs. It's one of those specialized serverless offerings from AWS that you pay as you use.