|视频床|视频CMS系统PlayTube 1.4.3开心版

cera cera


PlayTube 1.4.3 视频解决方案,此系统支持 FFMPEG 视频转码,还可以采集有图比,功能很强大
界面和 YouTub 很像,比较简洁
PlayTube 确实还算是比较优秀的一款国外视频 CMS 系统,就目前而言这款系统还是很不错的,当然还有许多地方需要完善,不过现阶段的版本用来做个普通的视频站是没什么问题的。

这套系统在 codecanyou 上面是售价 49 刀.
有想认做站的可以支持一下官方正版,购买地址

下载地址:https://pan.baidu.com/s/1NfHvY2j4LQiLV_Vtd9aYQQ 提取码:ftb5

nginx 伪静态规则:

  1. location / {
  2. if (!-e $request_filename){
  3. rewrite ^/$ /index.php?link1=home;
  4. }
  5. if (!-e $request_filename){
  6. rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&first=$2;
  7. rewrite ^/aj/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2;
  8. rewrite ^/aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2&second=$3;
  9. }
  10. rewrite ^/@([^\/]+)(\/|)$ /index.php?link1=timeline&id=$1;
  11. if (!-e $request_filename){
  12. rewrite ^/([^\/]+)(\/|)$ /index.php?link1=$1;
  13. }}location /reset {
  14. rewrite ^/reset-password/([^\/]+)(\/|)$ /index.php?link1=resetpassword&code=$1;}location /confirm {
  15. rewrite ^/confirm/(.*)/(.*)$ /index.php?link1=confirm&code=$1&email=$2;}location /api {
  16. rewrite ^/api/v(([09])([.][09]+))(\/|)$ /api.php?v=$1;}location /admin {
  17. rewrite ^/admin-cp$ /admincp.php;
  18. rewrite ^/admin-cp/(.*)$ /admincp.php?page=$1;}location /admincdn/ {
  19. alias /adminpanel/;}location /videos {
  20. rewrite ^/videos/category/(.*)/rss(\/|)$ /index.php?link1=videos&page=category&id=$1&feed=rss;
  21. rewrite ^/videos/category/(.*)$ /index.php?link1=videos&page=category&id=$1;
  22. rewrite ^/videos/(.*)/rss(\/|)$ /index.php?link1=videos&page=$1&feed=rss;
  23. rewrite ^/videos/(.*)$ /index.php?link1=videos&page=$1;}location /articles {
  24. rewrite ^/articles(\/|)$ /index.php?link1=articles;
  25. rewrite ^/articles/category/(\d+)(\/|)$ /index.php?link1=articles&category_id=$1;
  26. rewrite ^/articles/read/(.*)(\/|)$ /index.php?link1=read&id=$1;}location /edit {
  27. rewrite ^/edit-video/(.*)?$ /index.php?link1=editvideo&id=$1;}location /watch {
  28. rewrite ^/watch/([^\/]+)(\/|)?$ /index.php?link1=watch&id=$1;
  29. rewrite ^/watch/([^\/]+)/list/([^\/]+)(\/|)?$ /index.php?link1=watch&id=$1&list=$2;}location /embed {
  30. rewrite ^/embed/(.*)?$ /index.php?link1=embed&id=$1;}location /resend {
  31. rewrite ^/resend/(.*)/(.*)?$ /index.php?link1=resend&id=$1&u_id=$2;}location /redirect {
  32. rewrite ^/redirect/(.*)?$ /index.php?link1=redirect&id=$1;}location /settings {
  33. rewrite ^/settings/(.*)/(.*)$ /index.php?link1=settings&page=$1&user=$2;
  34. rewrite ^/settings/(.*)$ /index.php?link1=settings&page=$1;}location /terms {
  35. rewrite ^/terms/([^\/]+)(\/|)$ /index.php?link1=terms&type=$1;}location /go_pro {
  36. rewrite ^/go_pro(\/|)$ /index.php?link1=go_pro;}location /ads {
  37. rewrite ^/ads(\/|)$ /index.php?link1=ads;
  38. rewrite ^/ads/create(\/|)$ /index.php?link1=create_ads;
  39. rewrite ^/ads/edit/(\d+)(\/|)$ /index.php?link1=edit_ads&id=$1;}location /contact {
  40. rewrite ^/contact-us(\/|)$ /index.php?link1=contact;}

配置好伪静态后,找到对应你 PHP 版本的设置,在“禁用函数”里面把 shell_exec 这个函数删掉
然后创建数据库,打开网址安装,安装时会先检测安装环境,Purchase code 代码不要改,保持默认即可,否则无法正常安装:

安装成功:

该程序支持 FFMPEG 转码,但不是刚需。如果你不安装 FFMPEG 那么这款程序只支持上传 MP4 格式的视频,如果安装了 FFMPEG 那么按照作者所说的,上传视频的格式会支持更多,具体支持的格式如下:mp4,mov,webm,mpeg,3gp,avi,flv,ogg,mkv,mk3d,mks,wmv
所以,现在我们安装一下 FFMPEG:

使用静态ffmpeg二进制文件秒安装 ffmpeg
安装文档:https://www.johnvansickle.com/ffmpeg/faq
系统要求:CentOSDebianUbuntu等内核至少为2.6.32Linux系统(内核查看命令uname -r)。

首先我们找到适合自己VPS服务器架构的ffmpeg二进制文件,文件地址:点击查看,建议优先使用git版本,毕竟更新快,如果git没有对应的版本就使用release版本。

安装命令:

  1. #x86 下载二进制文件
  2. wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
  3. #x86_64 下载二进制文件
  4. wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
  5.  
  6. #解压文件
  7. tar xvf ffmpeggit-*-static.tar.xz && rm rf ffmpeggit-*-static.tar.xz
  8.  
  9. #将 ffmpeg 和 ffprobe 可执行文件移至/usr/bin 方便系统直接调用
  10. mv ffmpeggit-*/ffmpeg ffmpeggit-*/ffprobe /usr/bin/
  11.  
  12. #查看版本
  13. ffmpeg
  14. ffprobe

最后基本上算安装完成了。

一般我们除了视频程序需要用到ffmpeg外,还可以直接拿来使用,比如转换视频格式、提取音频、合并视频等等,具体命令可以自行百度/谷歌。

登录到系统后台,找到如下图所示的地方,保存一下设置即可,这样程序就支持上传更多的视频格式了:

后记:

1、官方演示站:https://playtubescript.com/

2、这款程序支持多语言,需要中文的话可以自己到后台添加翻译。

3、目前我个人觉得这个程序最不友好的地方就是“分类”不能在后台添加/删除/修改。要改“分类”只能自己改源码。(官方给出了修改方法)不过我还是觉得很麻烦。

4、这套程序除了支持用户从本地上传视频以外,还支持从 Youtube 直接采集导入视频。

cera cloudiplc tengxunyun

相关推荐

mjjping.com cera cera cloudiplc