This tutorial add a set of two video profiles into MMS. The set of video profiles is labelled as 'Sport'. The two video profiles are labelled as 'Profile_1' and 'Profile_2'.

Reference manual for * Add Encoding Profiles

Input creation (json)

Create a file (videoProfiles.json) having the following content

{
    "Label": "Sport",
    "Profiles": [
        {
            "Label": "Profile_1",
            "FileFormat": "mp4",
            "Video": {
                "Codec": "libx264",
                "Profile": "high",
                "Width": 720,
                "Height": 480,
                "KBitRate": 256,
                "TwoPasses": true
            },
            "Audio": {
                "Codec": "aac",
                "KBitRate": 64
            }
        },
        {
            "Label": "Profile_2",
            "FileFormat": "mp4",
            "Video": {
                "Codec": "libx264",
                "Profile": "high",
                "Width": 720,
                "Height": 480,
                "KBitRate": 128,
                "TwoPasses": true
            },
            "Audio": {
                "Codec": "aac",
                "KBitRate": 64
            }
        }
    ]
}

Command

Run the following HTTP PUT having as input userKey, APIKey and videoProfiles.json: * curl -k -v -X PUT -u 654:SU1.8AO1O2z0gdezR99BIPvAz2y4LNUsCKcKJrSrQ_S4lS33iZ4zGJ8kfWxQqmOhKL -d @videoProfiles.json -H "Content-Type: application/json" https://mms-api.catrasoft.cloud/catramms/v1/profilesSet/video

The return will be: * { "encodingProfilesSet": { "encodingProfilesSetKey": 2, "label": "Sport" }, "profiles": [ { "encodingProfileKey": 4, "label": "Profile_1" }, { "encodingProfileKey": 5, "label": "Profile_2" } ] }