FFMPEG + XAMPP (Windows7) = No video?

Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Mon, 2011-10-24 14:52

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?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7890
Posted: Mon, 2011-10-24 15:22

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

 
Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Mon, 2011-10-24 17: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.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7890
Posted: Mon, 2011-10-24 17:39

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

 
Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Mon, 2011-10-24 17:52

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7890
Posted: Mon, 2011-10-24 20:12

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

 
Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Mon, 2011-10-24 20:18

It seems all users already have Execure Permissions.
Weird.. My settings are alright, right?

 
Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Mon, 2011-10-24 20:23

Oh, the website is rome2011.no-ip.org btw.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7890
Posted: Mon, 2011-10-24 20:59

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

 
Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Tue, 2011-10-25 07: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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7890
Posted: Tue, 2011-10-25 13:58
Quote:
But now I can only upload .flv files

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

 
Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Tue, 2011-10-25 14:08

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.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7890
Posted: Tue, 2011-10-25 14:22

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

 
Lolmewn

Joined: 2011-10-24
Posts: 13
Posted: Tue, 2011-10-25 18:30

Thanks for the help anyway.

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 199
Posted: Sat, 2011-12-24 05:51

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7890
Posted: Sat, 2011-12-24 13:19

@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

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 199
Posted: Sat, 2011-12-24 14:55

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 (