Short video matrix video intelligent editing source code. Source code

 Short video matrix video smart editing:

 

* Add/edit video
     */
    public function addVideoAction(){         $this->useLayout('dydqtshoppc-head.html');         $id = $this->request->getIntParam('id');

        //Get video information
        $Video_model = new App_Model_Douyin_MysqlVideoStorage();
        $video_info = $Video_model->getRowByIdSid($id, $this->sid);

        //Video mixed cutting mode
        $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);             $this->displayJsonError('Parameter error');         if (empty($video_info)) {








        }
        $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, 'Save configuration');
    }

    /*
     * 添加/编辑视频工程
     */
    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); //Mixed cutting mode
        $video_layout = $this->request->getIntParam('dv_video_layout', 1); //Vertical screen, horizontal screen
        $video_use = $this->request->getIntParam('dv_video_use', 5); //Number of video scenes or combinations
        $video_shot = $this->request->getIntParam('dv_video_shot', 5); //Single shot duration
        $use_only = $this->request->getIntParam('dv_use_only', 0);
        $use_platform = $this->request->getArrParam('use_platfor

1. Complete system source code delivery. Contains all source code and documentation of the system, which is installed and configured by the customer. 2. Virtual machine-based delivery. Developers use virtual machines to build the entire system environment and deliver the virtual machine containing the system to customers. 3. Docker container delivery. The short video matrix system source code is packaged into a Docker image, and customers can use Docker to run the image. 4. Cloud deployment and delivery. Developers can deploy the short video matrix system directly on the cloud and provide complete cloud application services. 5. One-click installation package delivery. The short video matrix system source code is packaged into a one-click installation package. Customers only need to double-click the installation to complete the installation.

Guess you like

Origin blog.csdn.net/xiaosaina/article/details/131086691