Hmm.. I have a windows server running, installed Gallery on it (works great!), but now I am trying to get ffmpeg to work.
I downloaded it (a lot of .c and .h files), and set the path in the Gallery settings.
gallery ffmpeg_path D:/xampplite/htdocs/ffmpeg-0.8.5
How can I fix this?
Posts: 7890
You need a windows binary not a *nix binary
Get a decent one here.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Ok, I got the first one from the list and set the settings to the htdocs/ffmpeg/ folder, but the 'add video' button still isn't showing up.
I got the first one from your link btw.
Posts: 7890
first, you should store external programs outside of htdocs, there are usually no-exec perms on files in there.
move ffmpeg.exe and any supporting files to c:\ffmpeg or d:\ffmpeg
Then test the binary and see if it works on your machine.
open a command prompt
C:\> cd C:\ffmpeg
C:\ffmpeg> ffmpeg -formats
you should get a display of supported formats.
Next I'd suggest adding ffmpeg to your system PATH so it can be executed from anywhere without typing the full path to the binary
Right-click Computer -> Properties -> Advanced system settings -> Advanced Tab -> Environmental Variables -> System Variables window -> scroll to PATH -> Edit -> add your ffmpeg path:
individual paths are separated by semi-colon so to add ffmpeg to end ;C:\ffmpeg
Save
Then try re-adjusting your path in gallery.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Thank you for your reply.
I indeed got a huge list with file formats.
I've also added it to the PATH variable. (when typing ffmpeg in CMD it shows the correct thing, so I know it worked)
I've set the settings to gallery ffmpeg_path D:/ffmpeg/
And for some reason it still won't work.. :O
Posts: 7890
I have not tried w/ XAMP as windows servers are quite troublesome.
But back when I had a Windows IIS6 server several years ago, you had to give exec() permissions to the webserver user both to ffmpeg.exe and C:\windows\system32\cmd.exe
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
It seems all users already have Execure Permissions.
Weird.. My settings are alright, right?
Posts: 13
Oh, the website is rome2011.no-ip.org btw.
Posts: 7890
BTW, I don't think there is a special 'add video' button.
Just click upload photo and pick a supported video format.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Oh ye, I see. But now I can only upload .flv files (I think I already could), which means it's still not working, right?
And well, they do upload, but won't be shown.
To see what I mean: http://rome2011.no-ip.org/index.php/VideoTest
Posts: 7890
you should also be able to upload mp4, but that has nothing to do w/ ffmpeg.
There is a "Other movie formats" module on gallerymodules.com
But as no thumbnails are getting extracted and no dimensions are being set (which is why your videos do not play try the video dimensions module) leads me to believe your ffmpeg is still not being executed.
FYI you need to set your ffmpeg_path as D:/ffmpeg/ffmpeg.exe or wherever you put it.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Nope, it indeed seems that ffmpeg still isn't found.
I've set the path to what you said (since that is the folder where it's located), no changes.
On my old Gallery website which I had a year ago or something, I did have ffmpeg. Then, under "add photo's" and "add album", there also was "add video", which isn't there now.
I think it works when that appears.
Posts: 7890
I have no "Add Video" button on my gallery3 test site AND I do have ffmpeg/video support.
I still develop for Gallery2 and there has never been an "Add Video" button.
BUT its been to long to remember if Gallery1 had such a button.
But these three applications are totally different codebases, no inter-compatibility what-so-ever.
AND gallery3 was not developed to work on windows servers (although others have succeeded).
I'd search around these forums for galler3/windows threads and check what others have discovered about the combination and how to overcome these hurdles.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Thanks for the help anyway.
Posts: 199
Check that IUSR_(machine name) has FULL permissions.
2008+ only needs IUSR account.
Also FAST-CGI out performs a linux box in 2008 R2 *provided* the admin knows what they are doing. Ditch XAMP. ;)
http://codex.gallery2.org/Gallery3:Installation_on_Windows_Server_2008_and_IIS7
=======================================
*I provide ONLY Windows support* ;)
Provide OS, Service Pack, 32 or 64bit.
IIS Version
Mysql (32/64bit)
PHP version
Rang3r187 = AIM
Rang3r_187= yahoo
Posts: 7890
@Ranger187 that only applies to IIS this thread is about windoes/apache
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 199
I was half awake, and still am. Did 20 hours at work on base, came home and vegged out on the laptop. I forgot he uses XAMP (blah)...... My bad.
;)
=======================================
http://codex.gallery2.org/Gallery3:Installation_on_Windows_Server_2008_and_IIS7
*I provide ONLY Windows support* ;)
Provide OS, Service Pack, 32 or 64bit.
IIS Version
Mysql Version (32/64bit)
PHP version (