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.
Downloads S3 audio file to be concerted to /tmp (execution context)
Encodes the audio file using a ffmpeg process which opens said file and dumps the converted file to disk.
Uploads the converted file to S3.
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!
The current code does the following:
/tmp
(execution context)ffmpeg
process which opens said file and dumps the converted file to disk.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 theffmpeg
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.
ffmpeg
pipe.io.Reader
/io.Writer
interface usage.