View Source GoogleApi.ContentWarehouse.V1.Model.VideoVideoStream (google_api_content_warehouse v0.4.0)

Attributes

  • bitrate (type: String.t, default: nil) - Video bitrate in bits/s.
  • codecId (type: integer(), default: nil) - Video codec ID. Uses the numeric value corresponding to the CodecId enum object, in order to avoid the dependency on vsi/videostreaminfo.proto. http://cs/symbol:CodecId%20f:google3/video/vidproc/vsi/videostreaminfo.proto
  • fps (type: float(), default: nil) - Video frame per second, obtained by parsing video header information. The value can be inaccurate for some types of codecs. See comments at http://cs/symbol:video_fps%20f:google3/video/vidproc/vsi/videostreaminfo.proto
  • height (type: integer(), default: nil) -
  • lengthSec (type: float(), default: nil) - Video length, in seconds. This value is derived from metadata in the source video, and often differs from the actual duration of any given transcode. In videos without valid timestamps, this value is not calculable, and is reported as zero.
  • streamIndex (type: String.t, default: nil) - Index of the stream in the file, 0-based.
  • width (type: integer(), default: nil) - The video stream's width and height. Important notes: 1) These are the coded dimensions of the video stream and DO NOT take into account any rotation metadata that may be present in the video container. Prefer to use the MediaOverview::resolution and MediaOverview::orientation when possible. 2) In the case you want detailed displayed width/height information, you can use the MediaOverview::orientation to determine the displayed dimensions. E.g., in the case of PORTRAIT orientation: displayed_width = min(width, height) displayed_height = max(width, height) And for LANDSCAPE orientation: displayed_width = max(width, height) displayed_height = min(width, height)

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.VideoVideoStream{
  bitrate: String.t() | nil,
  codecId: integer() | nil,
  fps: float() | nil,
  height: integer() | nil,
  lengthSec: float() | nil,
  streamIndex: String.t() | nil,
  width: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.