Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IMediaFormatProfileLevel

interface IMediaFormatProfileLevel
Extends com.amazon.apmf.IStandard Interface to configure the codec profile and level This interface can be used to change the media format of the encoder runtime.

Methods

setCodecParams()

void setCodecParams(string codecParams)
Sets the desired codec parameters string. Refer to https://datatracker.ietf.org/doc/html/rfc6381 Codec Parameters represent the codec major capabilities needed to decode like codec/codec subtype and profiles/levels. For example string “avc1.640028” represents H264:- — stream-format avc1 — profile 4.0 which is derived from 2 bytes bytes(base16) in the sequence “640028” — profile_idc identified by “64” which indicates “High Profile”. — level_idc which is “28” and 40 in decimal which means 4.0.

Parameters

codecParams
string — Required The codecs string for audio or video codec.

setProfileLevel()

void setProfileLevel(ProfileLevel profileLevel)
Sets the Profile and Level. For example codec parameters string For video, “codecs=avc1.640028” has profile ID “0x64” which means high profile for H264 and has level Id “0x28” which means level 4.0. For audio, “codecs=mp4a.40.02” has profile ID “0x02” which means low complexity for AAC. This method can also be called for dynamic configuration.

Parameters

profileLevel
ProfileLevel — Required The desired profile and level to be used.
Last modified on October 29, 2026