none
Rest Api to generate sprite thumbnail for asset on Azure media service(v2) RRS feed

  • Question

  • Hello 
    I am trying to generate sprite thumbnail on azure media service by generate job 
    the request is :
    curl -X POST \
      https://*****.restv2.westeurope.media.azure.net/api/Jobs \
      -H 'Accept: application/json;odata=verbose' \
      -H 'Authorization: Bearer  ******' \
      -H 'Connection: keep-alive' \
      -H 'Content-Type: application/json;odata=verbose' \
      -H 'DataServiceVersion: 3.0' \
      -H 'Host: ******.restv2.westeurope.media.azure.net' \
      -H 'MaxDataServiceVersion: 3.0' \
      -H 'Postman-Token: b3de42b1-23ca-4134-afe9-f6f9a7d13c2c,02a45335-a855-4a36-9d70-6c9a21a8e7c4' \
      -H 'User-Agent: PostmanRuntime/7.15.0' \
      -H 'accept-encoding: gzip, deflate' \
      -H 'cache-control: no-cache,no-cache' \
      -H 'content-length: 798' \
      -H 'x-ms-version: 2.9' \
      -d '{
        "Name": "Test",
        "InputMediaAssets" : [{"__metadata": {"uri" : "https://*****.restv2.westeurope.media.azure.net/api/Assets('\''nb:cid:UUID:99341228-1e3c-4d48-bc13-84b70f4f6a5b'\'')"}}],
       "Tasks" : [{
        "Configuration" :"{\"Version\":1,\"Codecs\":[{\"JpgLayers\":[{\"Quality\":100,\"Type\":\"JpgLayers\",\"Width\":\"1920\",\"Height\":\"1080\"}],\"Start\":\"00:00:01\",\"Step\":\"5%\",\"Range\":\"90%\",\"Type\":\"JpgImage\"}],\"Outputs\":[{\"FileName\":\"{Basename}_{Index}{Extension}\",\"Format\":{\"Type\":\"JpgFormat\"}}]}",
       "MediaProcessorId":"nb:mpid:UUID:d4d94427-b8e7-44b5-addb-5f3a26124385",
       "TaskBody": "<?xml version=\"1.0\" encoding=\"utf-8\"?><taskBody><inputAsset>JobInputAsset(0)</inputAsset><outputAsset>JobOutputAsset(1)</outputAsset></taskBody>"}]

    }'
    and the Result is :
    {
        "d": {
            "__metadata": {
                "id": "https://shahiddev.restv2.westeurope.media.azure.net/api/Jobs('nb%3Ajid%3AUUID%3A74cf4cff-0300-80bd-a7be-f1e9900b36e2')",
                "uri": "https://shahiddev.restv2.westeurope.media.azure.net/api/Jobs('nb%3Ajid%3AUUID%3A74cf4cff-0300-80bd-a7be-f1e9900b36e2')",
                "type": "Microsoft.Cloud.Media.Vod.Rest.Data.Models.Job"
            },
            "Tasks": {
                "__deferred": {
                    "uri": "https://*****.restv2.westeurope.media.azure.net/api/Jobs('nb%3Ajid%3AUUID%3A74cf4cff-0300-80bd-a7be-f1e9900b36e2')/Tasks"
                }
            },
            "OutputMediaAssets": {
                "__deferred": {
                    "uri": "https://******.restv2.westeurope.media.azure.net/api/Jobs('nb%3Ajid%3AUUID%3A74cf4cff-0300-80bd-a7be-f1e9900b36e2')/OutputMediaAssets"
                }
            },
            "InputMediaAssets": {
                "__deferred": {
                    "uri": "https://****.restv2.westeurope.media.azure.net/api/Jobs('nb%3Ajid%3AUUID%3A74cf4cff-0300-80bd-a7be-f1e9900b36e2')/InputMediaAssets"
                }
            },
            "Id": "nb:jid:UUID:74cf4cff-0300-80bd-a7be-f1e9900b36e2",
            "Name": "Test",
            "Created": "2019-06-16T07:49:10.1203252Z",
            "LastModified": "2019-06-16T07:49:10.1203252Z",
            "EndTime": null,
            "Priority": 0,
            "RunningDuration": 0,
            "StartTime": null,
            "State": 0,
            "TemplateId": null,
            "JobNotificationSubscriptions": {
                "__metadata": {
                    "type": "Collection(Microsoft.Cloud.Media.Vod.Rest.Data.Models.JobNotificationSubscription)"
                },
                "results": []
            }
        }
    } when i run the request its  finished the job and the http status is 201 but the problem its not generate any thing can anyone help me thank you

    Sunday, June 16, 2019 8:08 AM

Answers

All replies