Set up your own ClipBucket on windows


 

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:)

 

  1. 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

  1. 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值