26 January 2023

CableLabs MPEGTS muxer selection

Added ability to select muxer version for cablelabs_mpegts output format.

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>AddMedia</action>
    <source>[SourceFile]</source> <!-- required-->
    <format> <!-- required -->
        <output>cablelabs_mpegts</output> <!-- required-->
        <muxer>[v1|v2]</muxer>
        <!-- format params -->
    </format>
</query>
{
    "query": {
        "userid": "<<id>>", // required
        "userkey": "<<id>>", // required
        "action": "AddMedia",
        "source": "[SourceFile]", // required
        "format": { // required
            "output": "cablelabs_mpegts", // required
            "muxer": "[v1|v2]"
            // format params
        }
    }
}
ParameterDescriptionAllowed ValuesDefault Value
muxerMuxer versionv1 – Default old muxer
v2 – Advanced muxer
none

Audio channel input and output Program ID

Added ability to choose input channel Program ID and set Program ID of output <audio_stream />.

<?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 -->
        <audio_stream>
            <channel>
                <in>
                    <program_id>[ProgramID]</program_id>
                    <!-- input channel params -->
                </in>
                <in>
                    <!-- input channel params -->
                </in>
                <!-- audio channel params -->
            </channel>
            <channel>
                <!-- audio channel params -->
            </channel>
            <program_id>[ProgramID]</program_id>
            <!-- audio_stream params -->
        </audio_stream>
        <!-- multiple audio_streams -->
        <audio_stream>
            <!-- audio_stream params -->
        </audio_stream>
        <!-- format params -->
    </format>
</query>
{
    "query": {
        "userid": "<<id>>", // required
        "userkey": "<<key>>", // required
        "action": "[Action]", // required
        "source": "[SourceFile]", // required
        "format": {
            "output": "[OutputFormat]", // required
            "audio_stream": [
                {
                    "channel": [
                        {
                            "in": [
                                {
                                    "program_id": "[ProgramID]"
                                    // input channel params
                                },
                                {
                                    // input channel params
                                }
                            ]
                            // audio channel params
                        },
                        {
                            // audio channel params
                        }
                    ],
                    "program_id": "[ProgramID]"
                    // audio_stream params
                },
                {
                    // audio_stream params
                }
            ]
            // format params
        }
    }
}
ParameterDescriptionAllowed ValiesDefault Value
Audio Stresm Parameters
program_idOutput stream program idNon-negative integer numbernone
Input Audio Channel Parameters
program_idInput channel program idNon-negative integer numbernone