Help Center> Video On Demand> User Guide> Appendix> JSON Message Body> Media File Parsing Message Body
Updated on 2023-10-16 GMT+08:00

Media File Parsing Message Body

Sample Media File 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 file

status

Event status

  • SUCCEED: The media file has been parsed.
  • FAILED: The media file 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 for accessing the media file. This parameter is used only when status is SUCCEED.

meta_data

Media file metadata. This parameter is used only when status is SUCCEED

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.