Viewing Video Stream Information

Based on your account settings, videos are transcoded using different resolutions, codecs, and bit rates.

The term streams in this context means the internal-to-Ooyala processes that are started by the system to transcode your videos.

Note: You cannot control or manipulate these streams; they are controlled by the system. You can only view their names, not change them.

To view streams for a video:

To view streams, use GET /v2/assets, the asset ID, and the /streams qualifier. ABR streams can be distinguished by the "stream_type" field ("stream_type":"abr"). The following example displays streams for the JxbzdkMjqB asset:
[GET]/v2/assets/JxbzdkMjqB/streams

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.

Was this article helpful?