我只是想知道这些网站(以及其他许多从音频剪辑、图像、文档生成flash电影的软件)是如何工作的?他们如何在服务器上将媒体文件(音频/图像/视频)编译成flv电影?使用一些开源技术也可以做到这一点吗?
发布于 2010-03-21 10:13:40
http://osflash.org/open_source_flash_projects
发布于 2010-03-21 10:16:13
他们可能只是上传文件,然后在他们身上运行像FFmpeg这样的工具。
将任何音频文件( ffmpeg可以处理)转换为mp3的php示例如下所示:
<?php
// upload audio file and save its file name as $file_name
$short_name = substr($file_name, 0, strpos($file_name, ".")); // get the file name without the file extension
system("ffmpeg -i \"$file_name\" \"$short_name.mp3\"");
?>
You can download your file <a href="output.mp3">here</a>您可能想让它更安全,但这应该是可行的。实际上,我对ffmpeg命令行选项不太确定,但您可以在此处找到更多信息:http://ffmpeg.org/ffmpeg-doc.html
https://stackoverflow.com/questions/2485550
复制相似问题