Reputation: 178
I have PHP script that I am using to convert files to the mp3 extension. First the user uploads the file to an EC2 server. From there, can I use ffmpeg to process a file and directly upload it to S3?
How do I upload a file, process/convert with ffmpeg and upload to an s3 bucket?
Upvotes: 3
Views: 1897
Reputation: 6729
You can mount your s3 onto ec2 instance and then give the path to the s3 mounted folder. [Atleast on linux]. s3fs and other utilities allow you to do this. So it is feasible. however your write speed might be limited here. But if you are not doing very large files or not bothered by the performance hit to the extent this is fine.
Upvotes: 1