You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Media processing
Info
Copy page
Download PDF
Info
The info feature allows you to retrieve the metadata of a specified video. This topic introduces the parameters and provides examples of the info feature.​
Billing notes​
  • Data retrieval fees will apply when retrieving metadata of videos stored in Infrequent Access Storage or Flashback Archive. These fees are calculated based on the size of the returned information. For more information, see Data retrievals.​
Notes​
For supported video formats, see the Constraints and limitations section in Overview.​
Supported parameters​
To retrieve metadata via a video processing URL, simply append x-tos-process=video/info to the URL without setting any other parameters.​
A subset of the available metadata is listed below:​
warning​
The metadata returned may vary depending on the video format.​
​
{​
"streams": [​
{​
"index": 0, // Stream index number​
"codec_name": "aac", // Codec (short) name​
"codec_long_name": "AAC (Advanced Audio Coding)", // Codec description (long name)​
"codec_type": "audio", // Codec type​
"codec_tag_string": "mp4a", // Codec tag name​
"codec_tag": "0x6134706d", // Codec tag​
"sample_fmt": "fltp", // Sample format​
"sample_rate": "44100", // Sample rate​
"channels": 2, // Number of channels​
"channel_layout": "stereo", // Channel layout​
"r_frame_rate": "0/0", // Frame rate​
"avg_frame_rate": "0/0", // Average frame rate​
"time_base": "1/44100", // Encoding time base​
"start_time": "0.000000", // Audio start time​
"duration": "596.474195", // Audio duration ​
"bit_rate": "125587", // Bit rate​
"nb_frames": "25688", // Total frames​
"tags": { // Tag information​
"language": "und", // Language​
"handler_name": "(C) 2007 Google Inc. v08.13.2007." // Handler name​
}​
},​
{​
"index": 1, // Stream index number​
"codec_name": "h264", // Codec (short) name​
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", // Codec description (long name)​
"profile": "High", // Video encoding profile​
"codec_type": "video", // Codec type​
"codec_tag_string": "avc1", // Codec tag name​
"codec_tag": "0x31637661", // Codec tag​
"width": 1280, // Width in pixels​
"height": 720, // Height in pixels​
"sample_aspect_ratio": "1:1", // Sample aspect ratio​
"display_aspect_ratio": "16:9", // Display aspect ratio​
"pix_fmt": "yuv420p", // Pixel format​
"level": 31, // Video encoding level​
"r_frame_rate": "24/1", // frame rate​
"avg_frame_rate": "24/1", // Average frame rate​
"rotation": "90", // Clockwise rotation angle​
"time_base": "1/24000", // Encoding time base​
"start_time": "0.000000", // Video start time​
"duration": "596.458333", // Video duration​
"bit_rate": "1991287", // Bit rate​
"nb_frames": "14315" // Total frames​
}​
],​
"format": {​
"nb_streams": 2, // Number of streams​
"nb_programs": 0, // Number of programs​
"format_name": "mov,mp4,m4a,3gp,3g2,mj2", // Format name​
"format_long_name": "QuickTime / MOV", // Format description (long name)​
"start_time": "0.000000", // Start time of the first frame​
"duration": "596.473333", // Duration​
"size": "158008374", // File size​
"bit_rate": "2119234" // Bit rate​
}​
}​
​
Example​
Example URL:​
Result:​
​
{​
"streams": [​
{​
"index": 0,​
"codec_name": "h264",​
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",​
"profile": "High",​
"codec_type": "video",​
"codec_tag_string": "avc1",​
"codec_tag": "0x31637661",​
"width": 1920,​
"height": 1080,​
"coded_width": 1920,​
"coded_height": 1088,​
"sample_aspect_ratio":"1:1",​
"display_aspect_ratio":"16:9",​
"pix_fmt":"yuv420p",​
"level":40,​
"chroma_location":"left",​
"refs":1,"is_avc":"true",​
"nal_length_size":"4",​
"r_frame_rate":"30/1",​
"avg_frame_rate":"30/1",​
"time_base":"1/1000000",​
"start_pts":0,​
"start_time":"0.000000",​
"duration_ts":51200000,​
"duration":"51.200000",​
"bit_rate":"2597036",​
"bits_per_raw_sample":"8",​
"nb_frames":"1536",​
"extradata_size":0,​
"disposition": {​
"default":1,​
"dub":0,​
"original":0,​
"comment":0,​
"lyrics":0,​
"karaoke":0,​
"forced":0,​
"hearing_impaired":0,​
"visual_impaired":0,​
"clean_effects":0,​
"attached_pic":0,​
"timed_thumbnails":0,​
"captions":0,​
"descriptions":0,​
"metadata":0,​
"dependent":0,​
"still_image":0​
},​
"tags": {​
"language": "und",​
"handler_name": "VideoHandler",​
"vendor_id": ""​
}​
},​
{​
"index":1,​
"codec_name":"aac",​
"codec_long_name":"AAC (Advanced Audio Coding)",​
"profile":"LC",​
"codec_type":"audio",​
"codec_tag_string":"mp4a",​
"codec_tag":"0x6134706d",​
"sample_fmt":"fltp",​
"sample_rate":"44100",​
"channels":2,​
"channel_layout":"stereo",​
"r_frame_rate":"0/0",​
"avg_frame_rate":"0/0",​
"time_base":"1/44100",​
"start_pts":0,​
"start_time":"0.000000",​
"duration_ts":2257920,​
"duration":"51.200000",​
"bit_rate":"192755",​
"nb_frames":"2206",​
"extradata_size":0,​
"disposition": {​
"default":1,​
"dub":0,​
"original":0,​
"comment":0,​
"lyrics":0,​
"karaoke":0,​
"forced":0,​
"hearing_impaired":0,​
"visual_impaired":0,​
"clean_effects":0,​
"attached_pic":0,​
"timed_thumbnails":0,​
"captions":0,​
"descriptions":0,​
"metadata":0,​
"dependent":0,​
"still_image":0 ​
},​
"tags": {​
"language": "und",​
"handler_name": "SoundHandler",​
"vendor_id": ""​
}​
}​
],​
"format": {​
"nb_streams":2,​
"nb_programs":0,​
"format_name":"mov,mp4,m4a,3gp,3g2,mj2",​
"format_long_name":"QuickTime / MOV",​
"start_time":"0.000000",​
"duration":"51.200000",​
"size":"17899516",​
"bit_rate":"2796799",​
"probe_score":100,​
"tags": {​
"major_brand": "isom",​
"minor_version": "512",​
"compatible_brands": "isomiso2avc1mp41",​
"encoder":"Lavf58.76.100"​
}​
}​
}​
​
​
Last updated: 2026.10.12 14:16:23