Hi Chisss,
How are you?
I haven’t tested the plugin on a Windows IIS server.
The plugin is checking for two things to determine whether it can find and use FFMPEG or not:
1. It tries to run “exec(“which “.$ext,$output);” from php where $ext equals /path/to/ffmpeg.
Can you try to run “which /path/to/ffmpeg” (with your correct path instead of “/path/to/”) via command line? It might be different in Windows environment from that of Linux. If so, you may need to substitute “which” with Windows relevant command.
2. It tries grab a thumbnail from a test video using the following command:
$str = $ffmpeg_path."ffmpeg -y -i ".$source." -vframes 1 -ss 2 -f image2 ".$source.".jpg";
You might want to try to execute the above command via a command line as well and see what output you’re getting.
You can also shoot me an email with further questions / explorations at alex @ alexiz.com.
Best regards,
Alex
Thread Starter
chisss
(@chisss)
Hi! so I got it to detect now! 😀
I’ll be as specific as possible to help other users:
First, I installed ffmpeg shared version which contains the DLL files, not the static version which only has the .exe files.
I installed it on c:\ffmpeg
I created the environmental variables to PATH to point the bin folder to the c:\ffmpeg\bin folder.
I then went into my PHP folder which in my case was c:\Program Files (x86)\PHP\v5.4\ and opened the php.ini file
I went into the part where it talks about the extensions directories and what to include. The section looks like this:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: “/path1:/path2”
;include_path = “.:/php/includes”
;
; Windows: “\path1;\path2”
;include_path = “.;c:\php\includes”
include_path = “.;c:\ffmpeg\bin”
;
; PHP’s default setting for include_path is “.;/path/to/php/pear”
; http://php.net/include-path
Notice the part in bold I added that to that section and restarted IIS.
After that, I Re-Checked and now it shows FFMEPG is found. I gotta test to see if this works now as far as encoding/decoding and see if this worked.
Thread Starter
chisss
(@chisss)
Hmm… nevermind… it finds it, then when you go back to settings/WP Video Posts, it says not found. Then you re-check and says Found but every time you go back it goes back to Not Found…
Any ideas?
Hi Chisss,
Thank you for the guidelines on how you configured ffmpeg on Windows server.
Regarding the check, it is probably failing on the 1st part I mentioned in my previous post: exec("which ".$ext,$output);
Could you please check wp_options table in your database and see what value is assigned to this option?
wpvp_ffmpeg_exists
If it’s set to 1, then ffmpeg is found, but the above “which” command is failing.
Regards,
Alex
Thread Starter
chisss
(@chisss)
Hi Alex,
Where is that file normally located? I can’t find wp_options, I find options and wpvp_options.
Thanks
Hi Chisss,
wp_options is an options table in your database. Instead of “wp_” you may have some other prefix. Then in that table you can find “wpvp_ffmpeg_exists” option. It should either have 1 or 0 as an option value, which indicates whether ffmpeg was found and a test conversion was successfully executed or not.
Best regards,
Alex
Thread Starter
chisss
(@chisss)
So i scratched the whole thing with IIS and started again with WAMP. I went into the phpmyadmin and went into the wp_options table but I do not see anything with wpvp_
I am having the same issue where it finds FFMPEG but when you refresh it says not found.
Edit: nevermind. There’s multiple wp option tables because i am using multisites. I fond the table I needed. wpvp_ffmpet_exists is set to 1
Hi Chrisss,
How are you?
If wpvp_ffmpeg_exists is set to 1 it means it actually found it correctly.
I modified the way ffmpeg detection is handled. Please update the plugin to version 3.4 and let me know if it fixes your issue.
Best regards,
Alex
Thread Starter
chisss
(@chisss)
Perfect! It is now detected! Thank you so much!
Glad I was able to help, Chris.
If you experience any other issues, feel free to shoot me an email.
Regards,
Alex