Skip to content

Commit 0014bca

Browse files
authored
Merge pull request #190198 from IngridAtMicrosoft/langs
Language parity
2 parents b8feaaa + 4313eb9 commit 0014bca

14 files changed

+169
-238
lines changed

.openpublishing.redirection.media-services.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,15 @@
634634
"source_path_from_root": "/articles/media-services/latest/architecture-design-multi-drm-system.md",
635635
"redirect_url": "/azure/media-services/latest/drm-content-protection-concept",
636636
"redirect_document_id": true
637-
},
637+
},
638+
{
639+
"source_path_from_root": "/articles/media-services/latest/job-create-cli-how-to.md",
640+
"redirect_url": "/azure/media-services/latest/job-create-how-to",
641+
"redirect_document_id": false
642+
},
638643
{
639-
"source_path_from_root": "/articles/media-services/latest/latest/questions-collection.md",
640-
"redirect_url": "/articles/media-services/latest/frequently-asked-questions.yml",
644+
"source_path_from_root": "/articles/media-services/latest/latest/asset-publish-cli-how-to.md",
645+
"redirect_url": "/azure/media-services/latest/video-on-demand-simple-portal-quickstart",
641646
"redirect_document_id": false
642647
}
643648
]

articles/media-services/latest/TOC.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,6 @@
605605
- name: Signal descriptive audio
606606
href: signal-descriptive-audio-howto.md
607607
displayName: descriptive audio, accessibility, access, accessible
608-
- name: Publish
609-
href: asset-publish-cli-how-to.md
610-
displayName: publish, manifest, HLS, DASH, URL, Streaming URL, Streaming Locator, CLI, how-to, how to, sample
611608
- name: Security
612609
items:
613610
- name: Account security

articles/media-services/latest/asset-create-asset-how-to.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,12 @@
22
title: Upload content to an asset CLI
33
description: The Azure CLI script in this topic shows how to create a Media Services Asset to upload content to.
44
services: media-services
5-
documentationcenter: ''
65
author: IngridAtMicrosoft
7-
manager: femila
8-
editor:
9-
ms.assetid:
6+
manager: femila
107
ms.service: media-services
11-
ms.devlang: azurecli
128
ms.topic: how-to
13-
ms.tgt_pltfrm: multiple
14-
ms.workload: na
15-
ms.date: 02/16/2021
9+
ms.date: 03/01/2022
1610
ms.author: inhenkel
17-
ms.custom: devx-track-azurecli
1811
---
1912

2013
# Create an Asset
@@ -29,6 +22,12 @@ Follow the steps in [Create a Media Services account](./account-create-how-to.md
2922

3023
## Methods
3124

25+
## [Portal](#tab/portal/)
26+
27+
Creating assets in the portal is as simple as uploading a file.
28+
29+
[!INCLUDE [task-create-asset-portal](includes/task-create-asset-portal.md)]
30+
3231
## [CLI](#tab/cli/)
3332

3433
[!INCLUDE [Create an asset with CLI](./includes/task-create-asset-cli.md)]

articles/media-services/latest/asset-publish-cli-how-to.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

articles/media-services/latest/create-streaming-locator-build-url.md

Lines changed: 8 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
title: Create a streaming locator and build URLs
33
description: This article demonstrates how to create a streaming locator and build URLs.
44
services: media-services
5-
documentationcenter: ''
65
author: IngridAtMicrosoft
76
manager: femila
8-
editor: ''
97
ms.service: media-services
10-
ms.workload:
11-
ms.devlang: java,csharp
128
ms.topic: how-to
13-
ms.date: 08/31/2020
9+
ms.date: 03/01/2022
1410
ms.author: inhenkel
15-
ms.custom: devx-track-csharp
1611
---
1712

1813
# Create a streaming locator and build URLs
@@ -23,70 +18,19 @@ In Azure Media Services, to build a streaming URL, you need to first create a [S
2318

2419
This article demonstrates how to create a streaming locator and build a streaming URL using Java and .NET SDKs.
2520

26-
## Prerequisite
21+
## Prerequisites
2722

2823
Preview [Dynamic packaging](encode-dynamic-packaging-concept.md)
2924

30-
## Java
31-
32-
```java
33-
/**
34-
* Creates a StreamingLocator for the specified asset and with the specified streaming policy name.
35-
* Once the StreamingLocator is created the output asset is available to clients for playback.
36-
* @param manager The entry point of Azure Media resource management
37-
* @param resourceGroup The name of the resource group within the Azure subscription
38-
* @param accountName The Media Services account name
39-
* @param assetName The name of the output asset
40-
* @param locatorName The StreamingLocator name (unique in this case)
41-
* @return The locator created
42-
*/
43-
private static StreamingLocator getStreamingLocator(MediaManager manager, String resourceGroup, String accountName,
44-
String assetName, String locatorName) {
45-
// Note that we are using one of the PredefinedStreamingPolicies which tell the Origin component
46-
// of Azure Media Services how to publish the content for streaming.
47-
System.out.println("Creating a streaming locator...");
48-
StreamingLocator locator = manager
49-
.streamingLocators().define(locatorName)
50-
.withExistingMediaservice(resourceGroup, accountName)
51-
.withAssetName(assetName)
52-
.withStreamingPolicyName("Predefined_ClearStreamingOnly")
53-
.create();
25+
## Create a streaming locator
5426

55-
return locator;
56-
}
27+
## [Portal](#tab/portal/)
5728

58-
/**
59-
* Checks if the streaming endpoint is in the running state, if not, starts it.
60-
* @param manager The entry point of Azure Media resource management
61-
* @param resourceGroup The name of the resource group within the Azure subscription
62-
* @param accountName The Media Services account name
63-
* @param locatorName The name of the StreamingLocator that was created
64-
* @param streamingEndpoint The streaming endpoint.
65-
* @return List of streaming urls
66-
*/
67-
private static List<String> getStreamingUrls(MediaManager manager, String resourceGroup, String accountName,
68-
String locatorName, StreamingEndpoint streamingEndpoint) {
69-
List<String> streamingUrls = new ArrayList<>();
70-
71-
ListPathsResponse paths = manager.streamingLocators().listPathsAsync(resourceGroup, accountName, locatorName)
72-
.toBlocking().first();
73-
74-
for (StreamingPath path: paths.streamingPaths()) {
75-
StringBuilder uriBuilder = new StringBuilder();
76-
uriBuilder.append("https://")
77-
.append(streamingEndpoint.hostName())
78-
.append("/")
79-
.append(path.paths().get(0));
80-
81-
streamingUrls.add(uriBuilder.toString());
82-
}
83-
return streamingUrls;
84-
}
85-
```
29+
[!INCLUDE [task-create-asset-portal](includes/task-create-streaming-locator-portal.md)]
8630

87-
See the full code sample: [EncodingWithMESPredefinedPreset](https://github.com/Azure-Samples/media-services-v3-java/blob/master/VideoEncoding/EncodingWithMESPredefinedPreset/src/main/java/sample/EncodingWithMESPredefinedPreset.java)
31+
## [.NET](#tab/net/)
8832

89-
## .NET
33+
## Using .NET
9034

9135
```csharp
9236
/// <summary>
@@ -159,12 +103,4 @@ private static async Task<IList<string>> GetStreamingUrlsAsync(
159103

160104
See the full code sample: [EncodingWithMESPredefinedPreset](https://github.com/Azure-Samples/media-services-v3-dotnet/blob/main/VideoEncoding/Encoding_PredefinedPreset/Program.cs)
161105

162-
## See also
163-
164-
* [Create filters with .NET](filters-dynamic-manifest-dotnet-how-to.md)
165-
* [Create filters with REST](filters-dynamic-manifest-rest-howto.md)
166-
* [Create filters with CLI](filters-dynamic-manifest-cli-how-to.md)
167-
168-
## Next steps
169-
170-
[Protect your content with DRM](drm-protect-with-drm-tutorial.md).
106+
---
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 08/18/2020
6+
ms.author: inhenkel
7+
ms.custom: CLI
8+
---
9+
10+
<!--Create a media services asset portal-->
11+
12+
## Upload videos
13+
14+
You should have a media services account, a storage account, and a default streaming endpoint.
15+
16+
1. In the portal, navigate to the Media Services account.
17+
1. Select **Assets**. Assets are the containers that are used to house your media content.
18+
1. Select **Upload**. The Upload new assets screen will appear.
19+
1. Select the storage account you created for the Media Services account from the **Storage account** dropdown menu. It should be selected by default.
20+
1. Select the **file folder icon** next to the Upload files field.
21+
1. Select the media files you want to use. An asset will be created for every video you upload. The name of the asset will start with the name of the video and will be appended with a unique identifier. You *could* upload the same video twice and it will be located in two different assets.
22+
1. You must agree to the statement "I have all the rights to use the content/file, and agree that it will be handled per the Online Services Terms and the Microsoft Privacy Statement." Select **I agree and upload.**
23+
1. Select **Continue upload and close**, or **Close** if you want to watch the video upload progress.
24+
1. Repeat this process for each of the files you want to stream.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 03/01/2022
6+
ms.author: inhenkel
7+
ms.custom: CLI
8+
---
9+
10+
<!--Create a media services job portal-->
11+
12+
## Create a job
13+
14+
1. Select **Add job**. The Create a job screen will appear.
15+
1. For the **Input source**, the **Asset** radio button should be selected by default. If not, select it now.
16+
1. Select **Select an existing asset**. The Select an asset screen will appear.
17+
1. Select one of the assets in the list. You can only select one at a time for the job.
18+
1. Select the **Use existing** radio button.
19+
1. Select a transform from the **Transform** dropdown list.
20+
1. Under Configure output, default settings will be autopopulated. You can leave them as they are or change them.
21+
1. Select **Create**.
22+
1. Select **Transforms + Jobs**.
23+
1. You'll see the name of the transform you chose for the job. Select the transform to see the status of the job.
24+
1. Select the job listed under **Name** in the table of jobs. The job detail screen will open.
25+
1. Select the output asset from the **Outputs** list. The asset screen will open.
26+
1. Select the link for the asset next to Storage container. A new browser tab will open and You'll see the results of the job that used the transform. There should be several files in the output asset including:
27+
1. Encoded video files with.mpi and .mp4 extensions.
28+
1. A *XXXX_metadata.json* file.
29+
1. A *XXXX_manifest.json* file.
30+
1. A *XXXX_.ism* file.
31+
1. A *XXXX.isc* file.
32+
1. A *ThumbnailXXXX.jpg* file.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 03/01/2022
6+
ms.author: inhenkel
7+
---
8+
9+
1. Select **New streaming locator**. The Add streaming locator screen will appear and a default name for the locator will appear. You can change it or leave it as is.
10+
1. Select the Streaming policy policy that you want to use from the dropdown list.
11+
1. Select **Add**. The video will start playing in the player on the screen, and the **Streaming URL** field will be populated.
12+
1. Select **Show URLs** in the Streaming locator list. The Streaming URLs screen will appear.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 08/18/2020
6+
ms.author: inhenkel
7+
ms.custom: CLI
8+
---
9+
10+
<!--Create a media services transform portal-->
11+
12+
## Create a transform
13+
14+
> [!IMPORTANT]
15+
> You must encode your files with a transform in order to stream them, even if they have been encoded locally. The Media Services encoding process creates the manifest files needed for streaming.
16+
17+
You'll now create a transform that uses a Built-in preset, which is like a recipe for encoding.
18+
19+
1. Select **Transforms + jobs**.
20+
1. Select **Add transform**. The Add transform screen will appear.
21+
1. Enter a transform name in the **Transform name** field.
22+
1. Select the **Encoding** radio button.
23+
1. Select ContentAwareEncoding from the **Built-in preset name** dropdown list.
24+
1. Select **Add**.

articles/media-services/latest/includes/task-set-encryption-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: IngridAtMicrosoft
33
ms.service: media-services
44
ms.topic: include
5-
ms.date: 05/14/2021
5+
ms.date: 03/01/2022
66
ms.author: inhenkel
77
ms.custom: CLI
88
---
@@ -118,4 +118,4 @@ Example JSON response:
118118
"tags": {},
119119
"type": "Microsoft.KeyVault/vaults"
120120
}
121-
```
121+
```

0 commit comments

Comments
 (0)