- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
As for #1, #2, and #3, I would say best practice would be to place the video file directly on S3, which is a very cost efficient way of storing data. Here is an article providing an overview regarding how to directly store on S3:
Also, you can use presigned URL to specify the minimum and maximum file size range. If you are not uploading directly to S3, you can use some python code (used in an Lambda function) to specify the minimum and maximum size of the video. See the param ContentLengthRange (the example below limits to 10 MB).
url = s3.generate_presigned_url(
'put_object',
Params={
'Bucket': bucket_name,
'Key': object_key,
'ContentLengthRange': '0-10485760',
},
ExpiresIn=expiration,
)
Upon storing the video to S3, trigger a Lambda function (or possibly am API service on a Fargate container for longer running processes) using events to do any processing, such as storing metadata or to kick off sentiment analysis (which is discussed later in this answer). Concerning Lambda, be mindful that this process must complete within 15 minutes.
Also, at time of submission of the video you may need to call a Lambda function to store incoming data (such as username, etc.) from the client. I'm assuming you'll be storing this metadata and incoming data in some type of DB. Ideally, you'll join this incoming data with any extracted metadata into a DB records to provide a complete overview of what is being submitted.
Concerning sentiment analysis of videos, I am going to assume that you're referring to the audio portion of the video. Amazon Comprehend would be an excellent way to determine the sentiment of the raw text. To get the video into the raw text format, you'll likely need to use AWS Transcoder and Amazon Transcribe.
If you're concerning about facial sentiment analysis, you'll likely need AWS Rekognition.
Hope this helps, if it does please accept this answer.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 4 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
It sounds like you have wonderful coding journey ahead of you. Don't forget to give my response a thumbs up. Happy coding!
Great advice!