Short video seo source code development and deployment technology analysis

What technologies are needed for short video seo development

  1. Application optimization technology: including the optimization and setting of various elements of the application (such as title, description, keywords, icons, etc.), as well as the reasonable layout and setting of internal links and navigation of the application.

  2. Video content optimization technology: including optimization settings for video titles, descriptions, tags, cover images, playback volume, etc., as well as editing and optimization of video content, such as video clarity, duration, and picture quality.

  3. User experience optimization technology: including the optimization of application interface design, fluency, response speed, content classification, etc., so that users can find the content they need faster and more accurately.

  4. Data analysis technology: including the collection, analysis and application of application user behavior data and other relevant data, in order to better understand user needs and optimize applications.

  5. Social media marketing skills: including the use of various social media platforms, such as Weibo, WeChat, Douyin, etc., to promote and promote short videos, increasing the exposure rate and user traffic of short videos.

Development requirements and implementation process

Scope: video.create needs to apply for permissions  and needs to be authorized by the user.  This interface is used to upload video files to the file server and obtain video files video_id(the ID is an encrypted ID). This interface is suitable for Douyin .

Notice:

  • Douyin's OAuth API starts with https://open.douyin.com/.
  • Videos over 50m are recommended to be uploaded in pieces, which can reduce failures caused by gateway timeouts. Videos exceeding 128m must be uploaded in multiple parts . The total size of the video is within 4GB. A single fragment is recommended to be 20MB, with a minimum of 5MB.

Video file requirements:

  • For a better viewing experience, it is recommended to upload a vertical video with a resolution of 16:9 and a resolution of 720p (1280x720) or above.
  • Commonly used video formats are supported, and mp4 and webm are recommended.
  • The video file size should not exceed 128M, and the duration should be within 15 minutes.
  • Videos with brand logos or brand watermarks will hit the review logic of Douyin, which has a relatively high probability of causing the sharing video recommendation to be downgraded/shared video removed from the shelf/shared account banned. It is strongly recommended that third-party applications handle non-compliant watermarks in shared content by themselves.
  • The video review logic is consistent with that on the end.

Development code display

 //计算分页
        $template_list_all = $cache_model->getCount($where);
        $page_libs = new Libs_Pagination_Paginator($template_list_all,$this->count,'jquery',true);
        $pageHtml = $page_libs->render();

        $this->output['template_list']  = $template_list;
        $this->output['pageHtml']       = $pageHtml;
        $this->output['dv_id']          = $dv_id;
        $this->output_materail_link($dv_id, 0, $video_info);
        //点数展示
        $collect_model  = new App_Model_Douyin_MysqlCollectShopStorage();
        $collect_info   = $collect_model->getCollectSurplusBySid($this->sid);
        $this->output['collect_info']   = $collect_info;
        //预约列表
        $appoint_model  = new App_Model_Task_MysqlAppointTaskStorage();
        $appoint_where  = [
            ['name' => 'va_ds_id', 'oper' => '=', 'value' => $this->sid],
            ['name' => 'va_dv_id', 'oper' => '=', 'value' => $dv_id],
            #['name' => 'va_status', 'oper' => '<>', 'value' => 2],
        ];
        $appoint_sort   = ['va_status' => 'ASC'];
        $appoint_list   = $appoint_model->getList($appoint_where, 0, 1, $appoint_sort);
        $this->output['appoint_list']   = $appoint_list;
        $this->output['platform_list']  = $this->platform;
        $this->output['appoint_status'] = [
            0   => '<span style="color: #ff875c;">待执行</span>',
            1   => '<span style="color: darkgreen">执行中</span>',
            2   => '<span style="color: red">已结束</span>',
            3   => '<span style="color: #db4040;">异常中断</span>',
        ];

        $this->displaySmarty('dydqtshoppc/video/edit-project.tpl');
    }
    /*
     * 生成预览视频
     */
    public function previewVideoAction() {
        $dv_id  = $this->request->getIntParam('dv_id');
        $temp_id    = $this->request->getIntParam('temp_id', 0);
        $cache_model    = new App_Model_Douyin_MysqlVideoTempVideoStorage();
        $cache_video    = $cache_model->getPreviewVideo($dv_id);

        //判断点数
        $collect_model  = new App_Model_Douyin_MysqlCollectShopStorage();
        $collect_info   = $collect_model->getCollectSurplusBySid($this->sid);

        if (!$collect_info['cs_surplus']) {
            $this->displayJsonError('无可用点数,无法合成预览视频');
        }

        if (empty($temp_id)) {
            if ($cache_video) {
                $this->displayJsonSuccess(['path' => $cache_video['dvtv_video_path']], true, '合成成功');
            } else {
                $this->createTempVideoAction($dv_id, 1);
                $this->displayJsonSuccess(null, true, '预览视频正在努力合成中……');
            }
        } else {
            $cache_id   = empty($cache_video) ? 0 : $cache_video['dvtv_id'];
            if ($temp_id == $cache_id) {
                $this->displayJsonSuccess(null, true, '预览视频正在努力合成中……');
            } else {
                $this->displayJsonSuccess(['path' => $cache_video['dvtv_video_path']], true, '合成成功');
            }
        }
    }
}

When developing Douyin seo source code, you need to pay attention to the following points:

When developing Douyin SEO source code, you need to pay attention to the following points:

  1. Pay attention to Douyin's official algorithm: Douyin's official algorithm will be updated continuously, and you need to pay attention to the latest algorithm changes in order to optimize the SEO source code.

  2. Keyword research: Keyword is the core of SEO optimization, which requires in-depth research to determine the search volume, competition and other factors of keywords.

  3. Content quality: Douyin users are increasingly pursuing content, and they need to ensure the quality and creativity of content in order to gain more viewers.

  4. Reasonable use of tags: Tags are one of the key factors affecting video display. Reasonable tags need to be used to increase the exposure of videos.

  5. Optimize video title and description: Title and description are important elements of video display, which need to be optimized to increase the click-through rate of the video.

  6. Video size and length: Douyin has certain restrictions on video size and length. You need to understand these restrictions to ensure that the optimized video can be played normally.

  7. Focus on user experience: User experience is one of the most important factors in SEO optimization. It is necessary to ensure the quality and speed of video display and improve user satisfaction.

Guess you like

Origin blog.csdn.net/wangwentao611/article/details/131257872