Maximum output size in Azure Media Encoder

Is there a built-in way to prevent AME from encoding the output size from the configuration file, if the source video is smaller than the target video, or do I need to have a bunch of presets with each of them having the maximum res value, then I will request the media file myself to determine which preset to use?

This is what I still have and I want to enable version 1080, but I don’t want 720 or lower source files to generate 1080 size:

{
  "KeyFrameInterval": "00:00:02",
  "H264Layers": [
    {
      "Profile": "Auto",
      "Level": "auto",
      "Bitrate": 2250,
      "MaxBitrate": 3400,
      "BufferWindow": "00:00:05",
      "Width": 1280,
      "Height": 720,
      "BFrames": 3,
      "ReferenceFrames": 3,
      "AdaptiveBFrame": true,
      "Type": "H264Layer",
      "FrameRate": "0/1"
    },
    {
      "Profile": "Auto",
      "Level": "auto",
      "Bitrate": 1500,
      "MaxBitrate": 2250,
      "BufferWindow": "00:00:05",
      "Width": 960,
      "Height": 540,
      "BFrames": 3,
      "ReferenceFrames": 3,
      "AdaptiveBFrame": true,
      "Type": "H264Layer",
      "FrameRate": "0/1"
    },
    {
      "Profile": "Auto",
      "Level": "auto",
      "Bitrate": 650,
      "MaxBitrate": 1000,
      "BufferWindow": "00:00:05",
      "Width": 640,
      "Height": 360,
      "BFrames": 3,
      "ReferenceFrames": 3,
      "AdaptiveBFrame": true,
      "Type": "H264Layer",
      "FrameRate": "0/1"
    }
  ],
  "Type": "H264Video"
},
+4
source share
1 answer

Media Encoder Premium Workflow Azure Media Services (https://azure.microsoft.com/en-us/documentation/articles/media-services-workflow-designer/).

, - https://github.com/Azure/azure-media-services-samples/tree/master/Encoding%20Presets/VoD/MediaEncoderPremiumWorkfows. (H264 Progressive Download MP4 SD). " SD ( 640), . , HD ( 640 ), 640x360 ( 16: 9) 640x480 ( 4: 3)."

- .

Media Encoder Standard, sdk .

+2

Source: https://habr.com/ru/post/1648144/


All Articles