我从 http://www.videohelp.com/tools/ffmpeg#download 下载 FFMPEG并将其保存在我的 c:\program files\ffmpeg (Windows Vista) 中。我的 Path
的前 2 个条目是:
c:\program files\ffmpeg\bin;c:\program files\ffmpeg\presets;
我在网上找到了以下命令(http://paulrouget.com/e/converttohtml5video/)
ffmpeg -i input.avi -acodec libvorbis -ab 96k -vcodec libx264 -vpre main -level 21 -refs 2 -b 345k -bt 345k -threads 0 -s 320x240 output.mp4
当我在命令行上运行它时,我收到以下错误:
File for preset main not found
有什么想法可能是错的吗?
最佳答案
根据http://ffmpeg-users.933282.n4.nabble.com/Presets-location-on-Windows-td2253144.html基本上当前的 ffmpeg 发行版在“错误的位置”有它的预设,所以你需要设置 FFMPEG_DATADIR 环境变量,或者指定预设的完整路径,比如
ffmpeg.exe -i a.avi -fpre g:\installs\ffmpeg-20120519-git-31dfe20-win32-static\ffpresets\libvpx-1080p.ffpreset -f webm yo.webm
关于FFMPEG:在 Windows Vista 中找不到预设,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10621048/