{"id":171,"date":"2010-03-06T21:30:53","date_gmt":"2010-03-06T12:30:53","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=171"},"modified":"2010-03-06T21:30:53","modified_gmt":"2010-03-06T12:30:53","slug":"phpmotion%e3%81%a7%e5%8b%95%e7%94%bb%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%82%92%e7%ab%8b%e3%81%a6%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/171","title":{"rendered":"phpmotion\u3067\u52d5\u753b\u30b5\u30fc\u30d3\u30b9\u3092\u7acb\u3066\u308b"},"content":{"rendered":"<p>CentOS5\u74b0\u5883\u3067MyNETS\u304c\u52d5\u3044\u3066\u3044\u308b\u3068\u3053\u308d\u304b\u3089\u306e\u5dee\u5206&#8230;\u306a\u30cf\u30ba\u3002<\/p>\n<p>2009\/6\/25\u306b\u4f5c\u696d\u3057\u305f\u8a18\u9332\u306a\u306e\u3067\u65e5\u4ed8\u4ed8\u304d\u30d5\u30a1\u30a4\u30eb\u306eURL\u306f\u9069\u5b9c\u6700\u65b0\u306b\u8aad\u307f\u66ff\u3048\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003URL<br \/>\nhttp:\/\/d.hatena.ne.jp\/con_mame\/20080926<br \/>\nhttp:\/\/menta.orz.hm\/phpmotion.sh.txt<\/p>\n<p># \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n[code]yum -y install subversion<br \/>\nyum -y install automake<br \/>\nyum -y install gcc<br \/>\nyum -y install gcc-c++<br \/>\nyum -y install libtool<br \/>\nyum -y install php-devel[\/code]<\/p>\n<p># x264\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306agit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n[code]echo &#8220;[dag]&#8221; >> \/etc\/yum.repos.d\/CentOS-Base.repo<br \/>\necho &#8220;name=Dag RPM Repository for Redhat EL5&#8221; >> \/etc\/yum.repos.d\/CentOS-Base.repo<br \/>\necho &#8216;baseurl=http:\/\/apt.sw.be\/redhat\/el$releasever\/en\/$basearch\/dag&#8217; >> \/etc\/yum.repos.d\/CentOS-Base.repo<br \/>\necho &#8220;gpgcheck=1&#8221; >> \/etc\/yum.repos.d\/CentOS-Base.repo<br \/>\necho &#8220;enabled=0&#8221; >> \/etc\/yum.repos.d\/CentOS-Base.repo<br \/>\necho &#8220;gpgkey=http:\/\/dag.wieers.com\/packages\/RPM-GPG-KEY.dag.txt&#8221; >> \/etc\/yum.repos.d\/CentOS-Base.repo[\/code]<\/p>\n<p># git\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]yum -y &#8211;enablerepo=dag install yasm git[\/code]<\/p>\n<p># \u4f5c\u696d\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n[code]mkdir \/tmp\/install\/<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># mplayer\u306e\u305f\u3081\u306e\u30b3\u30fc\u30c7\u30c3\u30af\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<br \/>\n[code]wget http:\/\/www3.mplayerhq.hu\/MPlayer\/releases\/codecs\/essential-20071007.tar.bz2<br \/>\ntar jxvf essential-20071007.tar.bz2<br \/>\nmkdir \/usr\/local\/lib\/codecs<br \/>\nmv \/tmp\/install\/essential-20071007\/* \/usr\/local\/lib\/codecs\/<br \/>\nchmod -R 755 \/usr\/local\/lib\/codecs\/[\/code]<\/p>\n<p># x264\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/download.videolan.org\/pub\/videolan\/x264\/snapshots\/x264-snapshot-20090625-2245.tar.bz2<br \/>\ncd x264-snapshot-20090625<br \/>\n.\/configure &#8211;enable-shared<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># xvid\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/downloads.xvid.org\/downloads\/xvidcore-1.2.1.tar.gz<br \/>\ntar zxvf xvidcore-1.2.1.tar.gz<br \/>\ncd xvidcore\/build\/generic<br \/>\n.\/configure &#8211;prefix=\/usr<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install\/<\/p>\n<p>wget wget http:\/\/jaist.dl.sourceforge.net\/sourceforge\/lame\/lame-3.97.tar.gz<br \/>\ntar zxvf lame-3.97.tar.gz<br \/>\ncd lame-3.97<br \/>\n.\/configure &#8211;prefix=\/usr<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install[\/code]<\/p>\n<p># libogg\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/downloads.xiph.org\/releases\/ogg\/libogg-1.1.3.tar.gz<br \/>\ntar zxvf libogg-1.1.3.tar.gz<br \/>\ncd libogg-1.1.3<br \/>\n.\/configure &#8211;prefix=\/usr<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># faad\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/jaist.dl.sourceforge.net\/sourceforge\/faac\/faad2-2.6.1.tar.gz<br \/>\ntar zxvf faad2-2.6.1.tar.gz<br \/>\ncd faad2<br \/>\nsh bootstrap<br \/>\n.\/configure &#8211;prefix=\/usr<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># flvtool\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/rubyforge.org\/frs\/download.php\/17497\/flvtool2-1.0.6.tgz<br \/>\ntar zxvf flvtool2-1.0.6.tgz<br \/>\ncd flvtool2-1.0.6<br \/>\nruby setup.rb config<br \/>\nruby setup.rb setup<br \/>\nruby setup.rb install<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># rpmforge\u3092\u8ffd\u52a0<br \/>\n[code]wget http:\/\/apt.sw.be\/redhat\/el5\/en\/i386\/RPMS.dag\/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br \/>\nrpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br \/>\nrm -f rpmforge-release-0.3.6-1.el5.rf.i386.rpm[\/code]<\/p>\n<p># \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u6709\u52b9\u306b\u3057\u306a\u3044\u3088\u3046\u306b<br \/>\n[code]sed -i &#8220;s\/enabled = 1\/enabled = 0\/g&#8221; \/etc\/yum.repos.d\/rpmforge.repo[\/code]<\/p>\n<p># \u6b8b\u308a\u306e\u30b3\u30fc\u30c7\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]yum -y &#8211;enablerepo=rpmforge install a52dec-devel faac-devel[\/code]<\/p>\n<p># \u30b3\u30fc\u30c7\u30c3\u30af\u3092\u6709\u52b9\u306b\u3059\u308b<br \/>\n[code]echo &#8220;\/usr\/local\/lib&#8221; >> \/etc\/ld.so.conf.d\/lib.conf<br \/>\nldconfig[\/code]<\/p>\n<p># mplayer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/www.mplayerhq.hu\/MPlayer\/releases\/mplayer-export-snapshot.tar.bz2<br \/>\ncd mplayer-export-2009-06-25<br \/>\n.\/configure &#8211;prefix=\/usr<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># ffmpeg\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/ffmpeg.org\/releases\/ffmpeg-export-snapshot.tar.bz2<br \/>\ncd ffmpeg-export-2009-06-25<br \/>\n.\/configure &#8211;enable-libmp3lame &#8211;enable-libx264 &#8211;enable-libxvid &#8211;enable-libfaac &#8211;enable-libfaad &#8211;enable-pthreads &#8211;enable-gpl &#8211;enable-shared &#8211;enable-nonfree &#8211;prefix=\/usr<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># ffmpeg-php\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/voxel.dl.sourceforge.net\/sourceforge\/ffmpeg-php\/ffmpeg-php-0.6.0.tbz2<br \/>\ntar jxvf ffmpeg-php-0.6.0.tbz2<br \/>\ncd ffmpeg-php-0.6.0<br \/>\nvi ffmpeg_frame.c \uff08\u2192RGBA32\u3092RGBA\u306b\u5168\u3066\u66f8\u304d\u63db\u3048\uff09<br \/>\nphpize<br \/>\n.\/configure &#8211;prefix=\/usr<br \/>\nmake &#038;&#038; make install<br \/>\ncd \/tmp\/install\/[\/code]<\/p>\n<p># ffmpeg-php\u306e\u6709\u52b9\u5316<br \/>\n[code]echo &#8220;extension=ffmpeg.so&#8221; >> \/etc\/php.ini[\/code]<\/p>\n<p># \u8a2d\u5b9a\u3092\u6709\u52b9\u5316\u3059\u308b\u305f\u3081\u306bapache\u306e\u518d\u8d77\u52d5\uff08reload\u3067\u3082\u304a\uff4b\uff09<br \/>\n[code]\/etc\/init.d\/httpd restart[\/code]<\/p>\n<p># phpmotion\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]wget http:\/\/downloads.phpmotion.com\/V3.0\/php5\/phpmotion.zip<br \/>\nunzip phpmotion.zip<br \/>\nmv phpmotion \/var\/www\/html\/video<br \/>\ncd \/var\/www\/html\/<br \/>\nchown -R apache:apache video<br \/>\nchmod -R 0755 video\/cgi-bin[\/code]<\/p>\n<p># http:\/\/example.com\/video\/\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30d1\u30b9\u8a2d\u5b9a\u3092\u4ee5\u4e0b\u306b\u8ffd\u52a0<\/p>\n<p>[code]vi cgi-bin\/uu_default_config.pm<br \/>\nvi cgi-bin\/audio\/uu_default_config.pm<br \/>\nvi audio_uploader_conlib.php<br \/>\nvi uploader_conlib.php<br \/>\nvi .htaccess[\/code]<\/p>\n<p># mysql\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0<br \/>\n[code]mysql -u root -p<br \/>\nmysql> CREATE DATABASE `video` DEFAULT CHARACTER SET utf8mb4 ;<br \/>\nmysql> grant all privileges on video.* to user@localhost identified by &#8216;passwd&#8217;;<br \/>\nmysql> quit;[\/code]<\/p>\n<p># \u7ba1\u7406\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9<br \/>\n[code]http:\/\/example.com\/video\/setup\/[\/code]<\/p>\n<p># \u8a2d\u5b9a\u5f8c<br \/>\n[code]mv \/var\/www\/html\/video\/setup \/var\/www\/html\/video\/setup.bk[\/code]<\/p>\n<p>\u203b\u305f\u3057\u304b\u4e00\u90e8\u4e0d\u6b63\u78ba\u306a\u8a18\u8ff0\u304c\u3042\u3063\u305f\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u3051\u3069&#8230;\u601d\u3044\u51fa\u305b\u306a\u3044\u3002<br \/>\n\u518d\u691c\u8a3c\u3059\u308b\u6c17\u529b\u306f\u306a\u3044\u306e\u3067\u305d\u306e\u307e\u307e\u8ee2\u8a18\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS5\u74b0\u5883\u3067MyNETS\u304c\u52d5\u3044\u3066\u3044\u308b\u3068\u3053\u308d\u304b\u3089\u306e\u5dee\u5206&#8230;\u306a\u30cf\u30ba\u3002 2009\/6\/25\u306b\u4f5c\u696d\u3057\u305f\u8a18\u9332\u306a\u306e\u3067\u65e5\u4ed8\u4ed8\u304d\u30d5\u30a1\u30a4\u30eb\u306eURL\u306f\u9069\u5b9c\u6700\u65b0\u306b\u8aad\u307f\u66ff\u3048\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002 \u53c2\u8003URL http:\/\/ &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/171\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;phpmotion\u3067\u52d5\u753b\u30b5\u30fc\u30d3\u30b9\u3092\u7acb\u3066\u308b&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[44],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-linux","tag-phpmotion"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":1,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/171\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}