t-r Where works. It returns the full path to ffmpeg.exe but requires that folder C:\Program Files\ffmpeg\bin\ is set to the PATH environment variable.
Good!
t-r If "where" fails could "video_ffmpeg_path" be tested?
'video_ffmpeg_path' => 'C:\Program Files\ffmpeg\bin\ffmpeg.exe'
Once I have this fixed for Windows (next release), it would work like that anyway. It would basically do where "$video_ffmpeg_path"
, which in your case would be:
where "C:\Program Files\ffmpeg\bin\ffmpeg.exe"
In your case, since you have assigned the path environment, it should work by assigning option 'video_ffmpeg_path' => 'ffmpeg'
instead of using the full path.
Anyway, to get this working for you (Windows) in current Files app, you will need to edit index.php
. Search and replace the following in 3 locations:
exec('type -P ' . config::$config['video_ffmpeg_path'])
Replace with:
exec('where "' . config::$config['video_ffmpeg_path'] . '"')
There might be a better way to detect FFmpeg availability, but we kinda need to check that it's there before attempting to make requests. If it works, I will add the above to next release, perhaps combined with some server OS testing.