AVO processing steps¶
Below are the stesps to process/optimize the videos using N7 AVO.
For demo purpose, we will be using www.nviztest.com domain as an example.
We will process a video from source-domain (static.nviztest.com):
e.g. https://static.nviztest.com/videos/vid101.mp4
After processing, it will then be accessible on target-domain (www.nviztest.com) with the same path as source:
i.e. https://www.nviztest.com/videos/vid101.mp4
Prerequisite¶
-
You must have an account on Nitrogen.
-
Your target domain on which you want to configure AVO must have been registered on Nitrogen.
-
You must have a service account configured with Editor access. If not, you can refer this article for the same.
-
Your source video domain and target domain must be different.
Steps¶
-
Use the below API to process the video (provide correct source-domain and auth-token):
curl --request POST --location 'https://dash.n7.io/api/v2/transcoder/video/tasks' \ --header 'Authorization: Token <api-key-of-service-account>' \ --header 'Content-Type: application/json' \ --data-raw '{ "domain": "www.nviztest.com", "mediaPath": "https://static.nviztest.com/videos/vid101.mp4", "callbackUrl": "https://static.nviztest.com/callback/status/endpoint" }'
callbackUrl
: A URL that will be called upon the successful processing of the videos, providing the relevant status. This parameter is optional. Please pre-process all the videos before using them on actual domain, or enabling AVO - otherwise AVO will return 404 for them. -
Setup the video routing pattern for AVO on Video route page, and Deploy the changes.
-
Test the video on target domain after 10 mins. In this case check:
https://www.nviztest.com/videos/vid101.mp4
You can also verify the video variant creation status on Video catalog page.
Notes¶
- Note down the task-Id returned by API. So that, for any issues, you can provide it as reference to us.