I was creating an application in react for uploading video and using a REST API to send that to the server and store in S3. I also wanted the simple audio version of the video for some other tasks and I am confused as to what might be the better way:
- Creating audio file on the fly when it is needed using node-ffmpeg package and not store it anywhere
- Start converting the video file to audio on the browser client only, and posting that to the server for storage along with the video.
- Just post the video to the server and use queue system for creating a new task for video conversion to audio and then save that to the S3 storage. The second method seems to be saving some compute power on the server but it might be a problem if the video upload completes, audio conversion is still going on and the client disconnects. Would appreciate some help, thanks.