Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Class VideoStream

    Inheritance
    System.Object
    StreamBase
    VideoStream
    VideoStreamH264
    VideoStreamHevc
    VideoStreamMpeg2
    Implements
    System.ICloneable
    Inherited Members
    StreamBase.Index
    StreamBase.Id
    StreamBase.StreamType
    StreamBase.CodecTag
    StreamBase.Pid
    StreamBase.CodecTimeBase
    StreamBase.TimeBase
    StreamBase.StartTime
    StreamBase.Duration
    StreamBase.StartPts
    StreamBase.DurationTs
    StreamBase.IsDefault
    StreamBase.IsForced
    StreamBase.IsHearingImpaired
    StreamBase.Title
    StreamBase.DisplayTitle
    StreamBase.Language
    StreamBase.Comment
    StreamBase.AllTags
    StreamBase.SideDataJson
    StreamBase.ParsingErrors
    StreamBase.IsExternal
    StreamBase.OriginalStream
    StreamBase.GetShortDescription()
    StreamBase.Clone()
    Namespace: Emby.Media.Model.Streams
    Assembly: Emby.Media.Model.dll
    Syntax
    public class VideoStream : StreamBase, ICloneable

    Constructors

    VideoStream()

    Initializes a new instance of the VideoStream class.

    Declaration
    public VideoStream()

    VideoStream(VideoStream)

    Initializes a new instance of the VideoStream class.

    Declaration
    public VideoStream(VideoStream source)
    Parameters
    Type Name Description
    VideoStream source

    The source.

    Remarks

    Copy constructor.

    VideoStream(MediaStream)

    Initializes a new instance of the VideoStream class.

    Declaration
    public VideoStream(MediaStream originalStream)
    Parameters
    Type Name Description
    MediaStream originalStream

    The original stream.

    Properties

    AspectRatio

    Gets or sets the display aspect ratio.

    Declaration
    [Display(Name = "Display Aspect Ratio", Description = "The aspect ratio for display")]
    public Rational? AspectRatio { get; set; }
    Property Value
    Type Description
    System.Nullable<Rational>

    The display aspect ratio.

    AverageFrameRate

    Gets or sets the average frame rate.

    Declaration
    [Display(Name = "Average Frame Rate", Description = "The average video frame rate")]
    public Rational? AverageFrameRate { get; set; }
    Property Value
    Type Description
    System.Nullable<Rational>

    The average frame rate.

    BitDepth

    Gets or sets the bit depth.

    Declaration
    [Display(Name = "Bit Depth", Description = "The bitness of the first component/channel in the pixel format")]
    public int? BitDepth { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    The bit depth.

    BitRate

    Gets or sets the bit rate.

    Declaration
    [Display(Name = "Bitrate", Description = "The bitrate of the stream")]
    public BitRate? BitRate { get; set; }
    Property Value
    Type Description
    System.Nullable<BitRate>

    The bit rate.

    BitsPerPixel

    Gets or sets the number of bits per pixel.

    Declaration
    [Display(Name = "Bits per Pixel", Description = "The total number of bits representing a single pixel in the pixel format")]
    public int? BitsPerPixel { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    The number of bits per pixel.

    CodecName

    Declaration
    public override string CodecName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    StreamBase.CodecName

    ColorPrimaries

    Declaration
    [Display(Name = "Color Primaries", Description = "Color Primaries")]
    public ColorPrimaries? ColorPrimaries { get; set; }
    Property Value
    Type Description
    System.Nullable<ColorPrimaries>

    ColorSpace

    Declaration
    [Display(Name = "Color Space", Description = "Color Space")]
    public ColorSpaces? ColorSpace { get; set; }
    Property Value
    Type Description
    System.Nullable<ColorSpaces>

    ColorTransfer

    Declaration
    [Display(Name = "Color Transfer", Description = "Color Transfer")]
    public ColorTransfers? ColorTransfer { get; set; }
    Property Value
    Type Description
    System.Nullable<ColorTransfers>

    ExtendedVideoSubtype

    Declaration
    [Display(Name = "Extended Video Subtype", Description = "Industry profile and level definitions")]
    public ExtendedVideoSubTypes ExtendedVideoSubtype { get; set; }
    Property Value
    Type Description
    ExtendedVideoSubTypes

    ExtendedVideoType

    Declaration
    [Display(Name = "Extended Video Type", Description = "HDR and other industry definitions")]
    public ExtendedVideoTypes ExtendedVideoType { get; set; }
    Property Value
    Type Description
    ExtendedVideoTypes

    IsAnamorphic

    Gets a value indicating whether this instance is anamorphic.

    Declaration
    [Browsable(false)]
    public bool? IsAnamorphic { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    true if this instance is anamorphic; otherwise, false.

    IsInterlaced

    Gets or sets a value indicating whether this instance is interlaced.

    Declaration
    [Display(Name = "Interlaced", Description = "Indicates whether the video stream is interlaced")]
    public bool IsInterlaced { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is interlaced; otherwise, false.

    Level

    Gets or sets the level.

    Declaration
    [Display(Name = "Level", Description = "The encoding level")]
    public string Level { get; set; }
    Property Value
    Type Description
    System.String

    The level.

    PixelFormat

    Gets or sets the pixel format.

    Declaration
    [Display(Name = "Pixel Format", Description = "The Pixel Format")]
    public PixelFormat PixelFormat { get; set; }
    Property Value
    Type Description
    PixelFormat

    The pixel format.

    Profile

    Gets or sets the profile.

    Declaration
    [Display(Name = "Profile", Description = "The video encoding profile")]
    public string Profile { get; set; }
    Property Value
    Type Description
    System.String

    The profile.

    RealFrameRate

    Gets or sets the real frame rate.

    Declaration
    [Display(Name = "Real Frame Rate", Description = "The real video frame rate")]
    public Rational? RealFrameRate { get; set; }
    Property Value
    Type Description
    System.Nullable<Rational>

    The real frame rate.

    RefFrames

    Gets or sets the reference frames.

    Declaration
    [Display(Name = "Ref Frames", Description = "The number of reference frames")]
    public int? RefFrames { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    The reference frames.

    Rotation

    Declaration
    [Display(Name = "Rotation", Description = "The rotation angle")]
    public int? Rotation { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    SampleAspectRatio

    Gets or sets the sample aspect ratio.

    Declaration
    [Display(Name = "Sample Aspect Ratio", Description = "The sample aspect ratio")]
    public Rational? SampleAspectRatio { get; set; }
    Property Value
    Type Description
    System.Nullable<Rational>

    The sample aspect ratio.

    VideoCodec

    Declaration
    [Display(Name = "Video Codec", Description = "Video Codec")]
    public VideoMediaTypes VideoCodec { get; set; }
    Property Value
    Type Description
    VideoMediaTypes

    VideoRange

    Declaration
    [Display(Name = "Video Range", Description = "Video Range")]
    public string VideoRange { get; set; }
    Property Value
    Type Description
    System.String

    VideoSize

    Gets or sets the size of the video.

    Declaration
    [Display(Name = "Video Size", Description = "The width and height of the video in pixels")]
    public Resolution? VideoSize { get; set; }
    Property Value
    Type Description
    System.Nullable<Resolution>

    The size of the video.

    Methods

    CloneCore()

    Declaration
    protected override StreamBase CloneCore()
    Returns
    Type Description
    StreamBase
    Overrides
    StreamBase.CloneCore()

    GetShortDescriptionBits()

    Gets a short description.

    Declaration
    public override List<string> GetShortDescriptionBits()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    A string.

    Overrides
    StreamBase.GetShortDescriptionBits()

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string that represents the current object.

    Overrides
    System.Object.ToString()

    Implements

    System.ICloneable

    Extension Methods

    StreamBaseToMediaStream.AsMediaStream(StreamBase)
    Extensions.JsonClone<T>(T, IJsonSerializer)
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.