26 May 2022

Source file clipping by muxed timecode and overlay

Added support of source file clipping time calculation according to muxed timecode. Added support of overlays for source files.

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required -->
    <userkey><<key>></userkey> <!-- required -->
    <action>AddMedia</action> <!-- required -->
    <source>[SourceFile1]</source> <!-- required -->
    <source>
        <url>[SourceFile2]</url> <!-- required -->
        <start>[StartTimecode]</start>
        <finish>[FinishTimecode]</finish>
        <duration>[Duration]</duration>
        <apply_timecode>[yes|no]</apply_timecode>
        <overlay>
            <!-- Video overlay params -->
        </overlay>
        <audio_overlay>
            <!-- Audio overlay params -->
        </audio_overlay>
        <text_overlay>
            <!-- Text overlay params -->
        </text_overlay>
    </source>
    <source>
        <url>[SourceFile3]</url>
        <!-- Source params -->
    </source>
    <format> <!-- required -->
        <!-- Format params --> 
    </format>
</query>
{
    "query": {
        "userid": "<<id>>", // required
        "userkey": "<<key>>", // required
        "action": "AddMedia", // required
        "source": [ // required
            "[SourceFile1]", 
            {
                "url": "[SourceFile2]", // required
                "duration": "[Duration]" // required
                "start": "[StartTimecode]",
                "finish": "[FinishTimecode]",
                "duration": "[Duration]",
                "apply_timecode": "[yes|no]",
                "overlay": [
                    {
                        // Video overlay params
                    }
                ],
                "audio_overlay": [
                    {
                        // Audio overlay params
                    }
                ],
                "text_overlay": [
                    {
                        // Text overlay params
                    }
                ]
            },
            {
                "url": "[SourceFile3]"
                // Source params
            }
        ],
        "format": { // required
            // Format params
        }
    }
}
ParameterDescriptionAllowed ValuesDefault Value
urlSource File URLValid URLnone
apply_timecodeUse muxed timecode to calculate start and finish points.yes, nono
Duration Parameters
Video Overlay Parameters
Audio Overlay Parameters
Text Overlay Parameters