Short video account matrix system technology development difficulty. The underlying logic of the framework

Application process: Register an official open platform account ---- apply for a service provider ---- associated application ---- apply for permission ---- wait for approval

Access development------development function list:

Data summary box (account data comparison overview contains total number of videos, total number of plays, total number of likes, total number of shares, total number of fans data statistics overview statistics)

  $where = [
            ['name' => 'dv_s_id', 'oper' => '=', 'value' => $this->sid]
        ];
        if(!empty($time_range)){
            $add_time_range_arr = explode('~',$time_range);

            $where[]    = ['name' => 'dv_create_time', 'oper' => '>=', 'value' => strtotime($add_time_range_arr[0])];
            $where[]    = ['name' => 'dv_create_time', 'oper' => '<', 'value' => strtotime($add_time_range_arr[1]) + 86400];
        }
        if(!empty($keyword_type)){
            $where[]    = ['name' => $keyword_type, 'oper' => 'like', 'value' => "%{$keyword}%"];
        }
        if ($mode > 0) {
            $where[]    = ['name' => 'dv_video_mode', 'oper' => '=', 'value' => $mode];
        }

        $sort = ['dv_create_time' => 'DESC'];
        //获取视频列表
        $Video_model = new App_Model_Douyin_MysqlVideoStorage();
        $video_list = $Video_model->getList($where,$this->index,$this->count,$sort);
        $temp_video_model   = new App_Model_Douyin_MysqlVideoTempVideoStorage($this->sid);
        $pailie_video_model = new App_Model_Douyin_MysqlVideoMaterialPailieStorage();
        foreach ($video_list as &$item) {
            $item['cache_num']  = $temp_video_model->getTempVideoCountByItem($item['dv_id']);
            $item['pailie']     = $pailie_video_model->getRowByDvid($item['dv_id']);

            $progerss   = 40;
            if ($item['video_num'] > 0 || $item['image_num'] > 0) {
                $progerss += 10;
            }
            if ($item['audio_num'] > 0 || $item['write_num'] > 0) {
                $progerss += 10;
         

 Technical underlying code execution development details function flow:

1. Account binding operation (account management, intelligent publishing Kuaishou, video distribution Douyin, video publishing) account management, adding Douyin, Kuaishou account platform binding authorization, grouping and classifying accounts, creating POI store addresses, and Flexible editing of category names; Smart Kuaishou publishing, creation of release plans, task plan name setting, release frequency interval setting, release time selection, release account selection and creation; video distribution Douyin, customer homepage configuration, homepage display map, name, Content introduction, address, custom content configuration; video release, upload video from local or material library, set cover, select publishing platform, generate keywords, title, topic, choose timing or immediate release

  1. Video production (smart production, video template, live clip production) intelligent production, upload video material, audio selection, background music selection, transition filter, flexible selection of subtitle style, video dubbing; video template, video template is used for publishing For video function, you need to edit it in the template and choose the account to post to the account. You can use the original video library, or you can create a new video production configuration and publish it; live editing production, live video slices are used to cut highlights in the live broadcast Clips, a cutting function that can be published to your own short video platform, add live links, view videos, cut tasks, and release clips after cutting

3. Intelligent reply (video management, comment management, private message management, clue management) video management, you can filter and view data according to video title, user name, group category, and time; comment management, review comments under Douyin Reply touch; private letter management, reply management and conversion for private messages received under the account; lead management, background left fund lead collection, data export can be filtered, business transformation is convenient

4. Operation center management (hyperlinks, seo hot words, material management) hyperlinks, you can set business card links, push links, custom settings, users can directly jump to the conversion tool after clicking the link; seo hot words, main word keywords Library setting, combined with the official hot topic list, can refer to the industry subject, prefix, and suffix for reference, for example, the decoration industry, search out, renovated, new decoration, decoration style, decoration design, etc.; material management, upload Basic work of uploading local videos, pictures, music, dubbing, etc.

Intelligent quantitative creation

1. The user imports seed materials (pictures, short videos), and smart materials are roughly screened to exclude low-quality content that is not suitable for editing

2. AI detection and recognition, deep learning and analysis of the screen content and editing elements in all materials, and finally form a large number of clips suitable for editing

3. Intelligently select the most suitable editor's method according to the AI ​​selection scheme, automatically crop the video and other operations, and intelligently add packaging and other elements to the video. Improve video content and increase video expression.

4. Automatically form a complete seed video. , use the system to process the complete seed video, and use various technical means such as frame extraction, segmentation, and lens inversion to realize mass production of original videos.

5. Cloud enterprise digital person, the main realization is to be an enterprise merchant doing IP incubation and broadcasting. As long as one video is recorded, multiple different copywriting can be batch-fissioned on the system, and different background template videos can be generated

$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_platform');

//Video multiplexing platform

$platform_list = [];

foreach ($use_platform as $key => $val) {

if ($val == 'on') {

array_push($platform_list, $key);

 }

}

$video_duration = $video_use*$video_shot;

if ($video_duration < 10 || $video_duration > 120) {

$this->displayJsonError("The final film duration is recommended to be between 10 and 120 seconds");

}

//Get video information

$video_model = new App_Model_Douyin_MysqlVideoStorage();

$name_exist = $video_model->findNameLikeBySid($video_name, $this->sid);

if ($name_exist && $name_exist['dv_id'] != $dv_id) {

$this->displayJsonError("Creative project "{$video_name}" already exists, please add a new project.");

Guess you like

Origin blog.csdn.net/weixin_54001844/article/details/131103815