上传后自动将 WAV 音频文件转换为服务器上的 MP3?
我正在开发一个项目,使用在虚拟专用服务器上运行的 Python/Django,这允许我有一个空白的 Linux 服务器盒子,我几乎可以安装我需要的任何东西。该项目必须允许用户上传未压缩的 WAV 文件以供其他人下载。这些很可能会使用 Amazon S3 提供。我并不期望有大量的人使用这个网站,但显然需要考虑可扩展性。
我是一名中级开发人员,在 Django 中使用 Amazon S3 一直是我的一大难题。因此,我正在寻找一种尽可能简单可靠的解决方案来解决我的问题...
一旦用户上传了未压缩的 WAV 文件,我想要将其转换为 MP3,以便在其他文件之前在网站上用作预览用户选择下载它。我不太确定如何去实现这样的功能......就像我说的,一个简单的解决方案对我来说是最好的。我可以轻松地理解的东西! (特别是实施)
任何人都可以提供解决方案吗?我希望对这个过程有一个很好的解释,这样我就可以朝着正确的方向前进。非常感谢任何帮助。
I'm working on a project, using Python/Django running on a Virtual Private Server, which allows me a blank Linux server box that I can pretty much install whatever I need. The project must allow users to upload an uncompressed WAV file for others to download. These will most probably be served up using Amazon S3. I'm not expecting a massive amount of people to use this site, but obviously scalability is to be thought of.
I'm an intermediate developer, where wrapping my head around using Amazon S3 in Django has been a little bit of a struggle. So I'm looking for a simple and reliable as possible solution to my problem...
Once a user has uploaded an uncompressed WAV file, I would like something to convert this into an MP3 to be used as a preview on the site before another user choices to download it. I'm not really sure how to go about implementing such a feature... Like I say, a simple solution to this would be best for me. Something I can wrap my head around easily! (and to especially implement)
Could anyone offer a solution to this? I would appreciate a good explanation to the process so I can take it in the right direction. Any help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试ffmpeg 例如这样的东西可能会起作用
参见文档 了解更多详细信息
Try ffmpeg e.g. something like this may work
See docs for more details
一旦安装了适当的编解码器,gst 可以帮助您进行转换。
gst can help you with the conversion, once the appropriate codecs are in place.