Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
我假设您正在寻找 ogg 视频,而不是音频。如果你想要音频,只需删除 vcodec 的东西即可。
添加以下参数:
vcodec libtheora acodec libvorbis
因此您的命令将变为:
exec("/usr/bin/ffmpeg -i ".$_FILES['thefile1']['tmp_name']." -vcodec libtheora -acodec libvorbis ./ogg/$file_name".".ogg");
您必须确保已安装 libtheora 和 libvorbis。如果您执行该命令并且没有安装它们,ffmpeg 将抛出错误。您可以检查使用
ffmpeg -codecs
和搜索 libtheora 和 libvorbis。
I'm going to assume that you're looking for ogg video, not audio. If you wanted audio, just remove the vcodec stuff.
Add the following parameters:
So your command would become:
You have to make sure that you have libtheora and libvorbis installed. ffmpeg will throw an error if you execute that command and you don't have them installed. You can check using
and searching for libtheora and libvorbis.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
我假设您正在寻找 ogg 视频,而不是音频。如果你想要音频,只需删除 vcodec 的东西即可。
添加以下参数:
因此您的命令将变为:
您必须确保已安装 libtheora 和 libvorbis。如果您执行该命令并且没有安装它们,ffmpeg 将抛出错误。您可以检查使用
和搜索 libtheora 和 libvorbis。
I'm going to assume that you're looking for ogg video, not audio. If you wanted audio, just remove the vcodec stuff.
Add the following parameters:
So your command would become:
You have to make sure that you have libtheora and libvorbis installed. ffmpeg will throw an error if you execute that command and you don't have them installed. You can check using
and searching for libtheora and libvorbis.