With a data processing workflow, you can quickly and flexibly create video processing processes as needed. A workflow is bound to a path of an input bucket. When a video file is uploaded to the path, the media workflow will be automatically triggered to perform the specified processing operation, with the processing result automatically saved to the specified path of the destination bucket.
You can use a data processing workflow to implement the following features: audio/video transcoding (including top speed codec transcoding and broadcast media format transcoding), video frame capturing, video-to-animated image conversion, intelligent thumbnail, audio/video splicing, voice separation (also known as voice/sound separation), highlights generation (also known as video montage), adaptive multi-bitrate, SDR to HDR, video enhancement, super resolution, audio/video segmentation, custom function, and image processing.
Note:
- Currently, workflows can process 3GP, ASF, AVI, DV, FLV, F4V, M3U8, M4V, MKV, MOV, MP4, MPG, MPEG, MTS, OGG, RM, RMVB, SWF, VOB, WMV, WEBM, MP3, AAC, FLAC, AMR, M4A, WMA, and WAV files. When initiating a media processing request, you must enter the complete file name and extension; otherwise, the format cannot be recognized and processed.
- Currently, the workflow feature can only manipulate video files being uploaded. To perform media operations on cloud data, use the job feature.
/
. If it is not specified, the workflow will be triggered for all paths in the input bucket. After the media workflow is enabled, when a video file is uploaded to this path, the workflow will be automatically triggered.Workflows are disabled by default. To enable a workflow, click the toggle in the Enable column. Once enabled, the workflow will take effect in five minutes. Then, it will automatically perform media processing operations on video files uploaded subsequently. After processing files, it will output the new generated files to the specified file path.
You can view the list of created workflows on the workflow management page.
The workflow list displays the names, IDs, input paths, creation times, and statuses of workflows. You can search for workflows by name and ID to view, edit, or delete specified workflows.
Note:Workflows are disabled by default. To enable a workflow, click the toggle in the Enable column. Once enabled, the workflow will take effect in 5 minutes.
Note:You cannot edit or delete an enabled workflow.
An execution instance will be generated after a workflow is executed for each video file. The execution instance page displays the source file address, workflow execution status, and execution time.
Go to the workflow management page and click View Execution Instance in the Operation column of the target workflow to enter the execution instance list page.
On the list page, click Details in the Operation column of the target instance to enter the instance details page.
On the instance details page, you can view the job ID, execution status, start time, and end time of each workflow node.
After a workflow is created, it can be automatically triggered for files uploaded to the specified bucket or manually triggered for existing files in the bucket.
Workflows support rendering destination file names and URLs with the following variables:
Variable Name | Description |
---|---|
InputName | Filename of the input file (without file extension) |
InputNameAndExt | Filename of the input file (with file extension) |
InputPath | File input path |
RunId | Execution instance ID |
Ext | Destination file format |
Number | Destination file number |
If the names of your input files are test1.mp4
and test2.mp4
, and you want to convert them to the FLV format (the final filenames will be test1.flv
and test2.flv
), then set the parameter format of the destination filename to ${InputName}.${Ext}
.
If the parameter format of the destination filename is set to ${InputNameAndExt}_${RunId}.${Ext}
:
When the workflow generates two instances (000001
and 000002
) during execution, the final filenames will be test1.mp4_000001.flv
and test2.mp4_000002.flv
.
Apakah halaman ini membantu?