Set up your own ClipBucket on windows
2008-11-06 07:05
513 查看
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.
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.
相关文章推荐
- How to Set Up Your Own Home Seedbox (in Windows)
- Set Up Your Own IP-PBX
- Software to set up your own WIKI
- How to Set Up an Rsync Daemon on Your Linux Server
- How to Set Up Chinese Characters on Windows 7
- notes/Set up development environment on windows
- Set Up Git on windows also use github
- set up SMTP server on Windows 2008[备忘]
- Step by step guide to set up master and slave machines on Windows
- Build your own PHP on Windows
- How to set up your own private RTMP server using nginx
- Set up your own PBX with Asterisk
- caffe train your own data on windows
- Set up of Qt/Embedded 4.5 on ubuntu 9.04----2
- Mac下安装使用phpMyAdmin. Set up phpMyAdmin on MacOSX
- CentOS下安装使用phpMyAdmin. Set up phpMyAdmin on CentOS
- 转载:Configuring Kiosk Mode on Your Windows XP Computer
- 【链接】Developing Your Own OS On IBM PC
- Set up Splunk on linux