Hacker News new | ask | show | jobs
by reddmachine 2 days ago
Nice! So many workflows for media processing, streaming and other chunks are dependent on S3 triggers. Now everything can start executing much quicker, granted they handle part-based processing.
1 comments

I’m struggling to think of media workflows where processing some arbitrary chunk of a much larger file is ever useful. Examples?
Playback and conversion of partially uploaded audio/video streams.
Exactly how arbitrary is the chunk and how much control do I have over packing the object? How large is the file and what are our costs around bandwidth and storage? What's the smallest machine I can use to run our transformations on the fly?

It seems like an interesting tool to know about when you're looking at an infrastructure spreadsheet.

Presumably you could start processing as it comes in.
Live transcription
Thumbnail generation only needs to happen on one frame of the file.

But I think the idea behind this feature is to get a head start on long-running operations like encoding.

True but with a lot of modern high performance codecs, you may need to go back a bit to reconstruct a given frame. Certainly something that can be worked around though.
> you may need to go back a bit to reconstruct a given frame

Presumably you'd be streaming in-order.

How far is a bit? Don't most codecs have keyframes every 1-4 seconds?
It's not a function of the codec - it's a function of how the encoder is configured by the application. For example, you can configure the encoder to never emit I frames, emit I frames every 30 frames, etc etc. For wired Oculus Link we used 0 I frames since it was a reliable in-order transport there.
Trimming comes to mind
CVML on video frames - e.g. object detection.
Latency is reduced
You could do basic sanity checks based on the file headers with all kinds of different data. You could also do things like early-reject bad uploads. For things like tabular data, you could scrape just the column names from a CSV or something. There are tons of possible use cases. Start labeling that particular upload with metadata source from the in-process stream, and show it to the user instantly.