前言:
适用于抖音seo源码,抖音矩阵源码,抖音短视频seo源码,抖音短视频矩阵源码开发与实践等。
产品开发代码展示:
<?php
/**
* Created by PhpStorm.
* User: ikinvin
* Date: 2021/2/24
* Time: 11:32 AM
*/
class App_Controller_Dydqtshoppc_VideoController extends App_Controller_Dydqtshoppc_InitController
{
const VIDEO_PLAY_POSTER = "/public/dydqt/img/video-zw.png";
//支持的视频平台
private $platform = [
'dou_yin' => '抖音',
'kuai_shou' => '快手',
'bai_jia_hao' => '好看视频',
'xiao_hong_shu' => '小红书',
'xi_gua' => '西瓜',
'tou_tiao' => '头条',
'bili_bili' => '哔哩哔哩',
];
//视频截断位置枚举
private $video_posi_enum = [
0 => 'header',
1 => 'middle',
2 => 'tail',
];
/*
* AI视频创意工作台
*/
public function indexAction()
{
//视频数量统计
$collect_model = new App_Model_Douyin_MysqlCollectShopStorage();
$collect_data = $collect_model->getCollectSurplusBySid($this->sid);
//视频创意统计
$video_model = new App_Model_Douyin_MysqlVideoStorage();
$vt_where = [
['name' => 'dv_s_id', 'oper' => '=', 'value' => $this->sid]
];
$video_total = $video_model->getCount($vt_where);
//素材数量统计
$attachment_model = new App_Model_Douyin_MysqlShopAttachmentStorage();
$attachment_count = $attachment_model->getTotalByGroup($this->sid);
$count_data = [
'image_count' => 0,
'image_size' => '0B',
'audio_count' => 0,
'audio_size' => '0B',
'video_count' => 0,
'video_size' => '0B',
];
foreach ($attachment_count as $count) {
switch ($count['dsa_type']) {
case 1 :
$count_data['image_count'] = $count['total'];
$count_data['image_size'] = plum_compute_byte($count['size']);
break;
case 2 :
$count_data['audio_count'] = $count['total'];
$count_data['audio_size'] = plum_compute_byte($count['size']);
break;
case 3 :
$count_data['video_count'] = $count['total'];
$count_data['video_size'] = plum_compute_byte($count['size']);
break;
}
}
$count_data['video_remain'] = $collect_data['cs_surplus'];
$count_data['video_create'] = $collect_data['cs_rest_num'];
$count_data['video_release'] = $collect_data['cs_scan_count'];
$count_data['video_download'] = $collect_data['cs_download_num'];
$count_data['video_total'] = $video_total;
$this->output['count_data'] = $count_data;
//视频混剪模式
$video_mixed_mode = plum_parse_config('project_mixed_mode', 'dydqt/project');
$this->output['video_mixed_mode'] = $video_mixed_mode;
//余量
$count_obj = new App_Helper_Count($this->sid);
$remain = $count_obj->checkFuncRemain('auth', 'item');
$this->output['remain_num'] = $remain['all']['remain'];
if ($this->front_module == 'eui') {
$this->displaySmarty('dspui/video/index.html');
} else {
$this->displaySmarty('dydqtshoppc/video/index.tpl');
}
}
功能设计:
1. AI视频批量剪辑(文字转语音,自动配声,转场,视频背景等自定义配置)
2. 多平台账号一站式授权管理(支持抖音、快手、B站等主流短视频平台,账号分组管理等)
3. 视频一键分发(支持任务创建,定时分发,计划预览,计划内数据统计,账号分组投放等)
4. 视频数据统计(近7天,15天,30天数据统计,视频播放,点赞。评论,转发等数据统计)
5. 粉丝画像分析(粉丝地域,年龄,增长情况等数据统计分析)
6. 企业号智能营销(私信,群聊等消息自动回复,留资线索收集,粉丝沉淀转化等)
7. 抖音小程序私域化运营(seo关键词搜索,企业信息展示,视频,直播等挂载,线索收集推送等)
8. 同城拓客(支持活动信息配置,用户扫码发布,团单挂载转化等)
产品开发代码及后台页面展示