短视频矩阵视频智能剪辑:
* 添加/编辑视频
*/
public function addVideoAction(){
$this->useLayout('dydqtshoppc-head.html');
$id = $this->request->getIntParam('id');
//获取视频信息
$Video_model = new App_Model_Douyin_MysqlVideoStorage();
$video_info = $Video_model->getRowByIdSid($id, $this->sid);
//视频混剪模式
$video_mixed_mode = plum_parse_config('project_mixed_mode','dydqt/project');
$this->output['video_info'] = $video_info;
$this->output['video_mixed_mode'] = $video_mixed_mode;
$this->displaySmarty('dydqtshoppc/video/addVideo.html');
}
/*
* 保存工程配置
*/
public function saveItemConfigAction() {
$dv_id = $this->request->getIntParam('dv_id');
unset($_REQUEST['q']);
unset($_REQUEST['dv_id']);
//获取视频信息
$video_model = new App_Model_Douyin_MysqlVideoStorage();
$video_info = $video_model->getRowByIdSid($dv_id, $this->sid);
if (empty($video_info)) {
$this->displayJsonError('参数错误');
}
$curr_platform = json_decode($video_info['dv_platform'], 1);
$curr_platform = is_null($curr_platform) ? [] : $curr_platform;
//发音人合集
if (isset($_REQUEST['a_vcn'])) {
$vcn = $this->request->getStrParam('a_vcn');
$vcn = explode(',', $vcn);
unset($_REQUEST['a_vcn']);
$curr_platform['vcn'] = array_combine($vcn, $vcn);
}
//随机色合集
if (isset($_REQUEST['color'])) {
$color_bg = $this->request->getArrParam('color');
$color_list = [];
foreach ($color_bg as $color => $val) {
array_push($color_list, $color);
}
unset($_REQUEST['color']);
$curr_platform['bgcolor'] = $color_list;
}
$updata['dv_platform'] = json_encode(array_merge($curr_platform, $_REQUEST));
$ret = $video_model->updateById($updata, $dv_id);
$this->showAjaxResult($ret, '保存配置');
}
/*
* 添加/编辑视频工程
*/
public function addVideoSubmitAction(){
$dv_id = $this->request->getIntParam('dv_id');
$video_name = $this->request->getStrParam('dv_title');
if (empty($video_name)) $this->displayJsonError('请输入项目名称');
$video_count = $this->request->getIntParam('dv_video_count', 1);
#$video_duration = $this->request->getIntParam('dv_video_duration', 30);
$video_transition = $this->request->getIntParam('dv_video_transition', 0);
$video_filter = $this->request->getIntParam('dv_video_filter', 0);
$video_effect = $this->request->getIntParam('dv_video_effect', 0);
$video_mixed = $this->request->getIntParam('dv_video_mode', 1); //混剪模式
$video_layout = $this->request->getIntParam('dv_video_layout', 1);//竖屏、横屏
$video_use = $this->request->getIntParam('dv_video_use', 5); //视频场景或组合数
$video_shot = $this->request->getIntParam('dv_video_shot', 5); //单镜头时长
$use_only = $this->request->getIntParam('dv_use_only', 0);
$use_platform = $this->request->getArrParam('use_platfor
1. 完整系统源码交付。包含系统的所有源码和文档,由客户自行进行安装和配置。 2. 基于虚拟机的交付。开发者使用虚拟机构建出整个系统环境,将包含系统的虚拟机交付给客户。 3. Docker 容器交付。将短视频矩阵系统源码打包成 Docker 镜像,客户可以使用 Docker 运行该镜像。 4. 云端部署交付。开发者可以将短视频矩阵系统直接部署在云端,并提供完整的云端应用服务。 5. 一键安装包交付。将短视频矩阵系统源码打包成一键安装包,客户只需双击安装即可完成安装