Retrieving Video Metadata
Video metadata can be used to get information about a specific video, which can be used to categorize your content or adjust parts of your workflow.
To view the metadata from your video, first start a task with the /v1/start_encode2 method containing a format object with an output that is set to metadata. If you plan to automate this process, it is recommended that you also set the metadata_version so that changes to the data structure in future versions don't affect your workflow.
Example:
{
"query": {
"source": "https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4",
"format": [
{
"output": "metadata",
"metadata_version": "4.1.5"
}
]
}
}
After the job is complete, you will be provided with a URL pointing to a JSON file with the video metadata.
Example of resulting JSON with metadata can be reviewed here:
Metadata Example: https://nyc3.s3.qencode.com/qencode3/regression_tests/metadata/output.json