21 July 2022
over 2 years ago by Encoding.com Product Team #2
Stream type selection for captions extraction
Added option to select from what type of source stream closed captions will be extracted.
Format parameters
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<source>[SourceFile]</source> <!-- required-->
<format>
<output>[OutputFormat]</output> <!-- required-->
<closed_captions>
<cea_stream>[video|text|auto]</cea_stream>
<!-- closed captions params -->
</closed_captions>
<!-- Multiple closed captions params may be included in output format -->
<closed_captions>
<!-- closed captions params -->
</closed_captions>
<!-- format params -->
</format></query>
{
"query": {
"userid": "<<id>>", // required
"userkey": "<<key>>", // required
"action": "[Action]", // required
"source": "[SourceFile]", // required
"format": {
"output": "[OutputFormat]", // required
"closed_captions": [
{
"cea_stream": "[video|text|auto]"
// closed captions params
},
{
// closed captions params
}
]
// format params
}
}
}
Caption to Caption Conversion
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>AddMedia</action> <!-- required-->
<source>[ClosedCaptionsSourceFile]</source> <!-- required-->
<format>
<output>closed_captions</output> <!-- required-->
<destination>[DestinationURL]</destination> <!-- required-->
<cea_stream>[video|text|auto]</cea_stream>
<!-- format params-->
</format>
</query>
{
"query": {
"userid": "<<id>>", // required
"userkey": "<<key>>", // required
"action": "AddMedia", // required
"source": "[ClosedCaptionsSourceFile]", // required
"format": {
"output": "closed_captions", // required
"destination": "[DestinationURL]", // required
"cea_stream": "[video|text|auto]"
// format params
}
}
}
Parameter | Description | Allowed Values | Default Value |
---|---|---|---|
cea_stream | Stream type for closed captions extraction | video, text, auto | auto |