Viewing Source File Information

To see information about the orginal source file of an asset, use GET /v2/assets/asset_id/source_file_info.

Note: For more information about Backlot REST API commands, see the Backlot API Reference.

To view the information about the source file for videos or audios:

Use the GET /v2/assets, the asset ID, and the /source_file_info qualifier. The following example displays ABR streams for the JxbzdkMjqB asset:
[GET]/v2/assets/JxbzdkMjqB/source_file_info

Backlot returns a response similar to the following.

[  
   {  
      "profile":"baseline",
      "video_height":360,
      "is_source":false,
      "video_width":640,
      "file_size":17937644,
      "audio_codec":"aac",
      "video_codec":"h264",
      "average_video_bitrate":300
   },
   {  
      "profile":"baseline",
      "video_height":360,
      "is_source":false,
      "video_width":640,
      "file_size":41716636,
      "audio_codec":"aac",
      "video_codec":"h264",
      "average_video_bitrate":900
   }
]
Note:

Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

해당 내용이 도움 되었습니까?