ffmpegwindows-vista

FFMPEG: preset not found in Windows Vista


I download FFMPEG from http://www.videohelp.com/tools/ffmpeg#download and saved it in my c:\program files\ffmpeg (Windows Vista). My Path's first 2 entries are:

c:\program files\ffmpeg\bin;c:\program files\ffmpeg\presets;

I found the following command on the net (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

When I run this on command line, I get the following error:

File for preset main not found

Any ideas what might be wrong?


Solution

  • According to http://ffmpeg-users.933282.n4.nabble.com/Presets-location-on-Windows-td2253144.html basically the current ffmpeg distro has its presets in the "wrong location" so you need to set the FFMPEG_DATADIR environment variable, or specify the full path to the preset, like

     ffmpeg.exe -i a.avi -fpre g:\installs\ffmpeg-20120519-git-31dfe20-win32-static\ffpresets\libvpx-1080p.ffpreset -f webm yo.webm
    

    Though these days ffmpeg doesn't come bundled with file based presets you typically use internal ones