Help Center/ Video On Demand/ User Guide/ Appendix/ JSON Message Body/ Media Asset Parsing Message Body
Updated on 2024-12-27 GMT+08:00

Media Asset Parsing Message Body

Sample Media Asset Parsing Message

{
	"event_type": "parseComplete",
        "parse_info": {
		"status": "SUCCEED",
		"asset_id": "d501e8fd23f550a432f2c528c3823fd8",
		"meta_data": {
			"play_type": 0,
			"pack_type": "MP4",
			"codec": "H.264",
			"audio_codec": "AAC",
			"audio_bit_rate": 126,
			"duration": 53,
			"video_size": 13454959,
			"width": 960,
			"hight": 540,
			"bit_rate": 1939,
			"frame_rate": 25,
			"audio_channels": 2,
			"sample": 48000
		},
		"original_url": "https://103.huaweicloud.com/asset/d501e8fd23f550a432f2c528c3823fd8/3cb5b599a92c683c80306f7b4a2dd427.mp4"
	}

}

Message Body Description

Table 1 ParseInfo structure

Parameter

Description

asset_id

ID of the parsed media asset

status

Event status

  • SUCCEED: The media asset has been parsed.
  • FAILED: The media asset parsing failed.

fileAddr

Address of the OBS bucket where the source media file is. This parameter is used only when the source file is in the tenant bucket.

original_url

URL of the media asset.

meta_data

Media data of the media asset.

error_code

Error code. This parameter is used only when status is FAILED.

error_msg

Error description. This parameter is used only when status is FAILED.