VikeLabs / lecshare

A React application with typescript implementation: Making lectures more accessible for students with auditory, visual, or learning impairments; and Improving learning outcomes for students in lecture-based courses.
https://vikelabs.github.io/lecshare/
GNU General Public License v3.0
5 stars 3 forks source link

Use data streaming in audio encode process. #69

Closed aomi closed 4 years ago

aomi commented 4 years ago

The current code does the following:

To make this process more efficient (and therefore reduce our Lambda execution time = less money), we can take advantage of streaming data!

Instead of downloading the entire data, we can stream it into stdin for the ffmpeg process and stream out the data into S3. This way, we can maximize all aspects of the lambda execution!

Some useful keywords to Google stuff with.

aomi commented 4 years ago

If you look at the timing, you can see the waste time spend and idle time doing nothing.

aomi commented 4 years ago

While done in theory, the actual benefits are hard to see but this is good enough for now.