Got it

HLS Encrypt URL | KMS | MPC

Created: May 26, 2022 07:26:36Latest reply: Jun 3, 2022 03:43:07 338 7 1 0 0
  HiCoins as reward: 0 (problem unresolved)


I am trying to transcode videos using MPC.


Application Scenario :

upload video to OBS > trigger gets active set on functiongraph when video uploaded to OBS bucket > Goes to MPC for transcoding  > trancodes in HLS chunks > HLS chunks gets encoded using Key that lies in KMS > transcoded and encoded chunks get stored in OBS output bucket


HLS


"encryption": {

                "hls_encrypt": {

                    "key": "eDdHQnSa5teoETetIMlClA==",

                    "url":"https://outputvideotest.obs.ap-southeast-3.myhuaweicloud.com/enc.key",

                    "iv": "ijdWmOVpJh5PsiqQn1MTtQ==",

                    "algorithm": "AES-128-CBC",

                }

            },

This is the code i am passing to the function graph.


link : https://support.huaweicloud.com/intl/en-us/sdkreference-mpc/mpc_05_0115.html


So my main query is in the above code section we can see URL to obtain the key but since under KMS there is no presence of URL for the key .

What parameter must be passed in the URL section to successfully transcode & encrypt the HLS chunk.



Note: Without the Encryption transcoding is triggered successfully and works accordingly as needed, but since the video files must not be recorded or downloaded so encryption is required. 


So what URL must be placed in the above URL field.

  • x
  • convention:

Featured Answers
olive.zhao
Admin Created May 26, 2022 10:03:02

Hello, friend!

After confirmation, generally, the URL is the address of the key services that you set up.

Currently, the MPC service cannot use the DEW service. For details, please see the following screenshot:

URL

Hope this helps!

View more
  • x
  • convention:

All Answers
olive.zhao
olive.zhao Admin Created May 26, 2022 07:30:39

Hello, dear!
It's nice to meet you in the community.
We're working on your problem. Please be patient.
View more
  • x
  • convention:

Suhail
Suhail Created May 26, 2022 07:38:48

Thanks for providing valuable support
View more
  • x
  • convention:

olive.zhao
olive.zhao Admin Created May 26, 2022 10:03:02

Hello, friend!

After confirmation, generally, the URL is the address of the key services that you set up.

Currently, the MPC service cannot use the DEW service. For details, please see the following screenshot:

URL

Hope this helps!

View more
  • x
  • convention:

sekhar_khanal
sekhar_khanal Created May 29, 2022 06:25:35

Okay.
Instead of DEW (KMS) the client also tried using Uploading the key to OBS bucket and tried to point the key URL to the bucket address but it still didnot worked out.
so what might be the reason behind this.
View more
  • x
  • convention:

olive.zhao
olive.zhao Admin Created May 30, 2022 05:55:41

Posted by sekhar_khanal at 2022-05-29 06:25 Okay.Instead of DEW (KMS) the client also tried using Uploading the key to OBS bucket and tried to p ...

Dear customer,
Has the customer configured the access permission for the OBS bucket? What error is reported when the customer use the bucket object download link as the URL? Please provide a screenshot of this issue.
The OBS permission related document  is as follows:

Introduction to OBS Permission Control

Thank you.

View more
  • x
  • convention:

Saqibaz
Saqibaz Created Jun 3, 2022 03:43:07

Good answer
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Jun 6, 2022 08:28:48 (0) (0)
Thanks!  

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.