FAIL with ffmpeg in Windows Server 2008R2

538 views
Skip to first unread message

Xabi Pico

unread,
Apr 21, 2015, 10:38:14 AM4/21/15
to resour...@googlegroups.com
Hi,

I followed all the steps in the wiki or resourcespace to install in Windows server 2008. To install ffmpeg I Download the static x64 version and extract the contents of the FFmpeg 7z file to c:\ffmpeg.

If I do installation check i have this message in ffmpeg: FAIL:
Unexpected output when executing "c:/ffmpeg/bin\ffmpeg.exe" -version command. Output was ''

If i run -version in cmd i have good response. You can see in the capture.

Any idea how I can solve this?

Thanks,
Captura de pantalla 2015-04-21 a las 16.31.10.png
Captura de pantalla 2015-04-21 a las 16.32.20.png

Heidi Hendry

unread,
Apr 22, 2015, 3:41:48 AM4/22/15
to resour...@googlegroups.com
Have you configured your php.ini with this:
[PHP_FFMPEG]
extension=php_ffmpeg.dll

And have you got the php_ffmpeg.dll file in c:\php\ext\

Heidi Hendry

unread,
Apr 22, 2015, 3:42:59 AM4/22/15
to resour...@googlegroups.com
And have a look at your config.php and see what the path is there for FFMPEG.

eg:
$ffmpeg_path = 'c:/ffmpeg/bin';

Heidi Hendry

unread,
Apr 22, 2015, 3:44:06 AM4/22/15
to resour...@googlegroups.com
Also, I put these settings in my config.php:

# Create a preview video for ffmpeg compatible files? A FLV (Flash Video) file will automatically be produced for supported file types (most video types - AVI, MOV, MPEG etc.)
$ffmpeg_preview_options="-f flv -ar 22050 -b:v 650k -b:a 32k -ac 1 -fs 6000000 -pix_fmt yuv420p";
$ffmpeg_preview_max_width=240;
$ffmpeg_preview_max_height=135;
$ffmpeg_snapshot_seconds=600;
$ffmpeg_preview_seconds=10800; # how many seconds to preview
$enable_thumbnail_creation_on_upload=true; 

Xabi Pico

unread,
Apr 22, 2015, 4:29:07 AM4/22/15
to resour...@googlegroups.com
And where I can download php_ffmpeg.dll. Because in the wiki does not say.

Heidi Hendry

unread,
Apr 22, 2015, 4:31:58 AM4/22/15
to resour...@googlegroups.com
From your command line, try this:
>c:\ffmpeg\bin\ffmpeg.exe -i "C:\temp\VideoFile.mp4" -f flv -ar 22050 -b:v 650k -b:a 32k -ac 1 -fs 6000000 -pix_fmt yuv420p "C:\temp\VideoFileOutput.flv"

Where c:\temp\VideoFile.mp4 is the video file that you want to convert and c:\temp\VideoFileOutput.flv is the video file output that you want.

If this works, then you know that FFMPEG is installed correctly and the problem lies with the configuration in RS.

If it doesn't then you know that you need to reinstall FFMPEG.

Xabi Pico

unread,
Apr 22, 2015, 5:11:30 AM4/22/15
to resour...@googlegroups.com
I write this command and they see me unknown encoder '32k'. You can see in the attached file.



--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Captura de pantalla 2015-04-22 a las 10.53.04.png

Xabi Pico

unread,
Apr 22, 2015, 6:01:16 AM4/22/15
to resour...@googlegroups.com
I installed FFMPEG and I have the same problem.

Any idea?

Why don't say anything bout extension=php_ffmpeg.dll in wiki installation?

Xabi Pico

unread,
Apr 23, 2015, 4:10:04 PM4/23/15
to resour...@googlegroups.com
Anyone can help me?

--

Heidi Hendry

unread,
Apr 23, 2015, 10:56:39 PM4/23/15
to resour...@googlegroups.com
Hi Xabi,
My version of FFMPEG is ffmpeg version N-71608-ga924b83 and it was built with gcc 4.9.2
Based on your commend line picture, maybe the version of FFMPEG that you have is too old?

I also agree that the Wiki for Windows is out of date, but I think there are not many of us Windows users. If we can work out what needs to be updated, I'm sure that the RS wiki volunteers will update it.

Regards
Heidi
Message has been deleted

Heidi Hendry

unread,
Apr 24, 2015, 1:44:02 AM4/24/15
to resour...@googlegroups.com
I was going to give you all my parameters, but unfortunately my uploading has just broken. 
I've attached my php_ffmpeg.dll but I can't guarantee that it works, as my setup is broken at the moment. And I can't recall where I got that and I found it difficult to retrace what I had done to find it.

If I get mine working again, then I'll give you the details.
FYI this is what I have.

Windows 2008 R2 64 bit.
PHP 5.4.40 VC9 non thread safe x86: http://windows.php.net/download/
FFMPEG: ffmpeg-20150421-git-a924b83-win64-static from here: https://ffmpeg.zeranoe.com/builds/

Let me know if you get yours working....
php_ffmpeg_dll.zip

Xabi Pico

unread,
Apr 24, 2015, 9:11:10 AM4/24/15
to resour...@googlegroups.com
I copied your .dll and I put your same ffmpeg version and now from the command line works fine, but in the ResourceSpace installation check they say me: FAIL:
Unexpected output when executing "c:\ffmpeg\bin\ffmpeg.exe" -version command. Output was ''.

And if I'm going to edit resource and try to retry preview creation, didn't nothing. 

In my config.php the path of the ffmpeg is that:
$ffmpeg_path='c:\ffmpeg\bin';

And I have ffmpeg library in c:\ffmpeg

Any explanation?

2015-04-24 7:42 GMT+02:00 Heidi Hendry <hhe...@unishanoi.org>:
I was going to give you all my parameters, but unfortunately my uploading has just broken. 
I but I can't guarantee that it works, as my setup is broken at the moment. And I can't recall where I got that and I found it difficult to retrace what I had done to find it.


If I get mine working again, then I'll give you the details.
FYI this is what I have.

Windows 2008 R2 64 bit.
PHP 5.4.40 VC9 non thread safe x86: http://windows.php.net/download/
FFMPEG: ffmpeg-20150421-git-a924b83-win64-static from here: https://ffmpeg.zeranoe.com/builds/

Let me know if you get yours working....

--

Xabi Pico

unread,
Apr 29, 2015, 10:10:38 AM4/29/15
to resour...@googlegroups.com
Anyone can help me?
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespace+unsubscribe@googlegroups.com.

Heidi Hendry

unread,
Jun 3, 2015, 6:48:38 AM6/3/15
to resour...@googlegroups.com
Hey Xabi,
I'm not sure if you have continued down this route. I found that there were lots of little gotchas with a Windows install, but I do have it working now.
We made the decision to pay for the Montala support and I recommend that you consider it.

Regards

Luke McKee

unread,
May 12, 2016, 10:12:25 AM5/12/16
to ResourceSpace, hhe...@unishanoi.org
 Heidi Still at Niteco?

Personally I prefer LibAV to FFMPEG since the developers got in a spat and had a fork.
Reply all
Reply to author
Forward
0 new messages