10 March 2022
almost 3 years ago by Encoding.com Product Team #2
Black frames padding IDR
Added option to add IDR to the appended black frames.
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>addMedia</action>
<source>[SourceFile]</source> <!-- required-->
<format> <!-- required -->
<output>[output]</output> <!-- required -->
<black_padding_start>[FramesPadding]</black_padding_start>
<black_padding_end>[FramesPadding]</black_padding_end>
<black_padding_keyframe>[yes|no]</black_padding_keyframe>
<!-- format params -->
</format>
</query>
{
"query": {
"userid": "<<id>>", // required
"userkey": "<<key>>", // required
"action": "addMedia", // required
"source": "[SourceFile]", // required
"format": {
"output": "[output]", // required
"black_padding_start": "[FramesPadding]",
"black_padding_end": "[FramesPadding]",
"black_padding_keyframe": "[yes|no]"
// format params
}
}
}
Parameter | Description | Allowed Values | Default Value |
---|---|---|---|
black_padding_keyframe | Add IDR frames to the end of appended black frames. Prepended black frames always starts with IDR. | yes, no | yes |
Float forced keyframes position
Added ability to set forced keyframes position in seconds as positive float nubmer.
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>addMedia</action>
<source>[SourceFile]</source> <!-- required-->
<format> <!-- required -->
<output>[output]</output> <!-- required -->
<force_keyframes>[KeyFramePosition]</force_keyframes>
<!-- format params -->
</format>
</query>
{
"query": {
"userid": "<<id>>", // required
"userkey": "<<key>>", // required
"action": "addMedia", // required
"source": "[SourceFile]", // required
"format": { // required
"output": "[output]", // required
"force_keyframes": "[KeyFramePosition]"
// fromat params
}
}
}
Parameter | Description | Allowed Values | Default Value |
---|---|---|---|
force_keyframes | Specify when to capture keyframes. | • positive integer number: N - insert IDR frame every N frames • positive integer or float with "s" suffix. Ns - insert IDR frame every N second • comma separated list of integer or float numbers. N1,N2,...,Nk insert IDR frame on N1,N2,...,Nk seconds | none |