I use Azure Media services v2 and I use custom media encoding configuration from json. My JSON includes three sizes, 720p, 480p and 180p.
I want to convert based on uploaded video sizes. If I upload a 1080p video it need to be converted to 720p, 480p and 180p, but when I upload a video of 480p it needs to be encoded to only 480p and 180p. Unfortunately, Azure media services upscales the video to 720p, as this is specified in the encoder configuraiton.
How do I achieve this?
Should I dynamically form the configuration depending on the uploaded asset?