My develop environment is windows XP(64bit), Apache 2.2, Php 5.2.6 , Mysql 5.0.22.
But here it says the CB(clipbucket) only support linux. What a sad news for windows users like me :(
I like CB very much, but I don't have linux to support it. So I tried to run it on windows.
At first, I followed the install instructions step by step. And fortunately after a little modification, it works! I can upload FLV file in admin_area, and it plays well. But there's no duration and just default "Processing" thumb. The other upload files like "avi,mpg" don't play at all and they just show a dark loading screen... That's not so good for a video site.
I spend 5 hours on it {delayed by some very little problems:( }, and finally it seems I succeed. I'd like to share my experience here for other guys on windows. And also any better suggestion will be appreciated.
Here we go:)
- The example is on my local computer, so change the settings to your own.
The most important settings are the Paths section. Mine is as below:
pic
The ffmpeg the package provides seems not work on windows. So I find a new one "ffmpeg.exe".
The link is: http://ffdshow.faireal.net/mirror/ffmpeg/ffmpeg.rev12665.7z
- Let's modify codes. Here is the file we need to change : includes/classes/ffmpeg.class.php,
ffmpeg.class.php:
(1) we should change function exec( $cmd ) to:
function exec( $cmd )
{
return shell_exec( $cmd );
}
In windows we don't need bash at all.
(2) commands won't work with single quote, so change single quote to double quote. i.e:
At about line 290 :
$output = $this->exec( "$ffmpeg -i /"$path_source/" -acodec copy -vcodec copy -f null /dev/null 2>&1" );
At about line 255:
$this->exec( "$ffmpeg -i /"{$p['path_source']}/" $opt_av /"{$p['path_target']}/" " );
(3) about the thumb, CB uses filename-1.jpg as default. Sometimes -1.jpg is just black, it depends on your video. I found that filename-3.jpg is more clear, so I change all thumbs to filename-3.jpg.
Ok, I can't remember other things now. I must miss something… show you my site here:
pic
Anyway, guys, you can try on your windows. I would like to answer any question from you here and by e-mail.
My mail is : hjinzhao@moultonlogistics.com
And also any better suggestion will be appreciated.