文件转换器。它们如何工作?
文件转换器如何工作? IE:制作一个几乎可以立即将 mp3 转换为 ogg 的 Web 应用程序。这一直让我感兴趣。
how do file converters work? IE: Making a web application that will convert mp3 to ogg nearly instantly. This has always interested me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
服务器安装了一个执行转换的程序。文件被接受、运行(可能使用 exec('mp3-to-ogg tmpfile.mp3'); 或类似命令),然后传回下载。实际上,这非常简单,只要您将该程序安装在服务器上可以运行的某个位置即可。
The server has a program installed that does the conversion. The file is accepted, run (possibly with
exec('mp3-to-ogg tmpfile.mp3');
or similar), and passed back to be downloaded. It's quite simple, really, just as long as you have the program installed somewhere on the server where it can be run.