问题描述
我们需要「视频管理系统」来管理我们下载的电影,作为自建视频网站,用于日常的视频播放、观影休闲。(我们没有选用家庭影院方案,因为我们希望在电脑上可以直接通过网页打开播放。基于 Web 的视频管理系统是最贴近我们需求的工具)
因此,我们创建该笔记,用来整理部分“比较好用的”(能够满足我们需求的)视频管理系统。
解决方案
最开始我们想使用国外的视频管理系统,但是后来经过查找,还是国内的比较好。因为国内的系统集成多种采集插件:
苹果 cms 官方蓝奏网盘(适合萌新) https://www.lanzous.com/u/magicblack
飞飞 cms 官网 https://www.feifeicms.org
另一个飞飞 cms http://www.ffcms.cn
赤兔 cms 官网 http://www.ctcms.cn
海洋 cms 官网(不建议使用) https://www.seacms.net/index.php
赞片 cms 官网 https://www.zanpiancms.com
movcms 官网 https://www.movcms.com
雷风 cms http://www.lfdycms.com
魅思 cms http://www.msvod.cc
马克思 cms http://www.makesicms.com
米酷 cms https://micool.net
晴天 cms http://www.qingtiancms.com/movie
“苹果 CMS”(MACCMS)、“帝国 CMS”、“织梦 CMS”、“飞飞 CMS”,其中,我们被安利 “苹果 CMS”,那就用 “苹果 CMS” 吧;
方案一、苹果 CMS(MACCMS)
第一步、部署 MACCMS10 系统
下载地址:https://github.com/magicblack/maccms_down
安装方法:类似于其他 PHP CMS 系统(这里不再赘述)。
第二步、配置 Nginx 反向代理
使用如下 Nginx 配置(其中,webadmin.php 是 admin.php(由于安全原因 admin.php 被重命名))
server {listen 80;server_name videos.k4nz.com;root /srv/maccms10/;indexindex.php index.html index.htm;location /asdfasdfasfdsafsfsafsadf {rewrite ^(.*)$ /index.php?s=$1 last;}location / {if (!-e $request_filename) {rewrite ^/index.php(.*)$ /index.php?s=$1 last;rewrite ^/webadmin.php(.*)$ /webadmin.php?s=$1 last;rewrite ^/api.php(.*)$ /api.php?s=$1 last;rewrite ^(.*)$ /index.php?s=$1 last;break;}}location ~ \.php$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;}}
通过如下方法进行伪静态配置:
1)管理后台 / 系统 / URL地址配置 / 路由伪静态设置 / 伪静态状态:开启
2)使用如下 Nginx 配置:
server {listen 80;server_name videos.k4nz.com;root /srv/maccms10/;indexindex.php index.html index.htm;location /asdfasdfasfdsafsfsafsadf {rewrite ^(.*)$ /index.php?s=$1 last;}location / {if (!-e $request_filename) {# 管理后台后台rewrite ^/admin/(.*)$ /webadmin.php?s=/admin/$1 last;# 对外接口rewrite ^/provide/(.*)$ /api.php?s=/provide/$1 last;# 页面显示rewrite ^/index.php/(.*)$ /index.php?s=$1 last; # 修复在页面中的硬编码rewrite ^(.*)$ /index.php?s=$1 last;break;}}location ~ \.php$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;}}
第三步、添加采集站点
我们还需要设置“视频采集接口”,以从互联网采集各种视频。
打开后台地址,在 采集 / 自定义资源 中进行设置。
如下表格,是我们采集视频用到的站点(可能还有其他站点,日后将补充):
注意事项
该系统只能采集视频信息,但是不能采集视频下载链接
常见问题汇总
对接微信公众号:苹果 CMS 搭建视频网站,定时采集视频
TODO 浏览模式非静态,无法生成
相关文章
「VLC」- 使用 ROOT 用户运行
「Videos」- 爬取电影天堂全部下载链接
参考文献
7 Best Free / Open source Video CMS For Sharing Videos
搭建在线视频网站,怎么弄? - 知乎
零基础 搭建 影视站