MPS supports rendering target paths of output files with the following variables:
Variable Name | Description |
---|---|
inputName | Input file name |
inputFormat | Input file format |
format | Output file format |
definition | Parameter template ID |
number | Output file number |
If your transcoding requirements are as follows:
AnimalWorldE01.mp4
.AnimalWorldE01_100010.mp4
, AnimalWorldE01_100020.mp4
, and AnimalWorldE01_100030.mp4
, respectively.Then, when using the ProcessMedia API to initiate transcoding:
You should specify the InputInfo.CosInputInfo.OutputObjectPath
parameter as {inputName}_{definition}.{format}
.
If your transcoding requirements are as follows:
AnimalWorldE01.mp4
.AnimalWorldE01_from_mp4.m3u8
.AnimalWorldE01_from_mp4_0.ts
, AnimalWorldE01_from_mp4_1.ts
, AnimalWorldE01_from_mp4_2.ts
, and so on.Then, when using the ProcessMedia API to initiate transcoding:
InputInfo.CosInputInfo.OutputObjectPath
parameter as {inputName}_from_{inputFormat}.{format}
.InputInfo.CosInputInfo.SegmentObjectName
parameter as {inputName}_from_{inputFormat}_{number}.{format}
.
Was this page helpful?