简体   繁体   中英

Azure Media Services, Encode custom width and height using PHP SDK

如何使用php sdk在650 fps和960X540在1500 fps下使用php sdk在Azure Media Service上自定义维度

According the document on Github at https://github.com/Azure/azure-sdk-for-php#encode-asset about Encode asset , you can try to configure task presets for MES (Media Encoder Standard) via:

$mediaProcessor = $this->restProxy->getLatestMediaProcessor('[Media processor]');

$task = new Task('[Task XML body]', $mediaProcessor->getId(), TaskOptions::NONE);
$task->setConfiguration('[Configuration name]');

$restProxy->createJob(new Job(), array($inputAsset), array($task));

And you can refer to https://msdn.microsoft.com/en-us/library/mt269926.aspx for a sample of task preset xml content.

Media Encoder Standard can take custom Presets in the setConfiguration call. You can send in XML or JSON. https://msdn.microsoft.com/library/azure/mt269960.aspx

Presets are also stored in GitHub. https://github.com/Azure/azure-media-services-samples/tree/master/Encoding%20Presets/VoD/Media%20Encoder%20Standard

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM