简体   繁体   English

使用ffmpeg直接上传到s3?

[英]Use ffmpeg to upload directly to s3?

I have PHP script that I am using to convert files to the mp3 extension. 我有PHP脚本,我用来将文件转换为mp3扩展。 First the user uploads the file to an EC2 server. 首先,用户将文件上载到EC2服务器。 From there, can I use ffmpeg to process a file and directly upload it to S3? 从那里,我可以使用ffmpeg处理文件并直接将其上传到S3吗?

How do I upload a file, process/convert with ffmpeg and upload to an s3 bucket? 如何上传文件,使用ffmpeg进行处理/转换并上传到s3存储桶?

You can mount your s3 onto ec2 instance and then give the path to the s3 mounted folder. 您可以将s3挂载到ec2实例上,然后将路径指向s3挂载的文件夹。 [Atleast on linux]. [在Linux上的Atleast]。 s3fs and other utilities allow you to do this. s3fs和其他实用程序允许您这样做。 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. 但是如果你没有做非常大的文件或者没有受到性能影响的困扰,那么这很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM