tencent cloud

Video on Demand

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Product Features
Features
Strengths
Scenarios
Solutions
Professional Edition
Introduction to Video On Demand Professional Edition
Quick Start
Console Guide
Development Guide
Purchase Guide
Billing Overview
Billing Modes
Purchase Guide
Viewing Bills
Renewal
Overdue Policy
Refund Policy
Getting Started
Console Guide
Console Overview
Service Overview
Application Management
Media Management
Package Management
License Management
Real-Time Log Analysis
Practical Tutorial
Media Upload
Smart Cold Storage of VOD Media Asset Files
Video Processing
Distribution and Playback
How to Receive Event Notification
How to Migrate Files from Origin Server to VOD
Live Recording
How to Pull from Custom Origin Servers
How to Use EdgeOne to Distribute Content in VOD
Development Guide
Media Upload
Media Processing
Video AI
Event Notification
Video Playback
Media Encryption and Copyright Protection
Broadcast Channel
CAM
Media File Download
Subapplication System
Error Codes
Player SDK
Overview
Basic Concepts
Features
Free Demo
Free Trial License
Purchase Guide
SDK Download
Licenses
Player Guide
Integration (UI Included)
Integration (No UI)
Advanced Features
API Documentation
Player Adapter
Player SDK Policy
Server APIs
History
Introduction
API Category
Other APIs
Media Processing APIs
Parameter Template APIs
Task Management APIs
Media Upload APIs
Media Management APIs
Event Notification Relevant API
Media Categorization APIs
Domain Name Management APIs
Distribution APIs
AI-based Sample Management APIs
Region Management APIs
Data Statistics APIs
Carousel-Related APIs
Just In Time Transcode APIs
No longer recommended APIs
Making API Requests
AI-based image processing APIs
Task Flow APIs
Data Types
Error Codes
Video on Demand API 2024-07-18
FAQs
Mobile Playback
Fees
Video Upload
Video Publishing
Video Playback
Web Playback
Full Screen Playback
Statistics
Access Management
Cold Storage
Agreements
Service Level Agreement
VOD Policy
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Video Editing

PDF
Focus Mode
Font Size
Last updated: 2020-12-09 15:24:13
Video editing is an offline task that clips and splices videos in VOD. Specifically, it includes the following features:
Video clipping: this refers to clipping a file in VOD to generate a new video.
Video splicing: this refers to splicing multiple files in VOD to generate a new video.
Video clip splicing: this refers to clipping multiple files in VOD and then splicing the clips to generate a new video.
Live stream transcoding: this refers to transcoding a stream in VOD to generate a new video.
Live stream clipping: this refers to clipping a stream in VOD to generate a new video.
Live stream splicing: this refers to splicing multiple streams in VOD to generate a new video.
Live stream clip splicing: this refers to clipping multiple streams in VOD and then splicing the clips to generate a new video.
Note:
If you want to clip, splice, or perform other operations on a live stream, please be sure to manipulate it after it ends; otherwise, the generated video may be incomplete.
The container format of the generated video is MP4. When initiating a video editing task, you can specify whether to perform a task flow on the new video.

Task Initiation

You can initiate a video editing task by calling a server API. The return result of the API contains the task ID, which is used to associate with the corresponding task result when getting result.

Result Getting

After initiating an editing task, you can wait for result notification asynchronously or perform task query synchronously to get the task execution result. Below is an example of getting the result notification in normal callback mode after the editing task is initiated (the fields with null value are omitted):
{
"EventType":"EditMediaComplete",
"EditMediaCompleteEvent":{
"TaskId":"EditMedia-f5ac8127b3b6b85cdc13f237c6005d8",
"Status":"FINISH",
"ErrCode":0,
"Message":"SUCCESS",
"Input":{
"InputType":"File",
"FileInfoSet":[
{
"FileId":"24961954183381008",
"StartTimeOffset":0,
"EndTimeOffset":300
},
{
"FileId":"24961954183381009",
"StartTimeOffset":0,
"EndTimeOffset":300
},
{
"FileId":"24961954183381010",
"StartTimeOffset":0,
"EndTimeOffset":300
}
]
},
"Output":{
"FileType":"mp4",
"FileId":"24961954183923290",
"FileUrl":"http://125676836723.vod2.myqcloud.com/xxx/xxx/f0.mp4"
},
"ProcedureTaskId":""
}
}
In the callback result, Input.InputType is File, indicating that the type of the edited video is of a file type. Input.FileInfoSet contains three elements, of which StartTimeOffset is 0 and EndTimeOffset is 300, indicating to clip the first 5 minutes of each of the three videos and then splice them into a 15-minute video. Output.FileId is the FileId of the generated video, whose playback URL is the value in FileUrl.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback