10 March 2022

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
        }
    }
}
ParameterDescriptionAllowed ValuesDefault Value
black_padding_keyframeAdd IDR frames to the end of appended black frames.
Prepended black frames always starts with IDR.
yes, noyes

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
        }
    }
}
ParameterDescriptionAllowed ValuesDefault Value
force_keyframesSpecify 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