Class VideoStream
Inheritance
System.Object
VideoStream
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Xabe.FFmpeg.dll
Syntax
public class VideoStream : IVideoStream, IStream, IFilterable
Properties
Bitrate
Declaration
public long Bitrate { get; }
Property Value
Type |
Description |
System.Int64 |
|
Codec
Declaration
public string Codec { get; }
Property Value
Type |
Description |
System.String |
|
Default
Declaration
public int? Default { get; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Duration
Declaration
public TimeSpan Duration { get; }
Property Value
Type |
Description |
System.TimeSpan |
|
Forced
Declaration
public int? Forced { get; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Framerate
Declaration
public double Framerate { get; }
Property Value
Type |
Description |
System.Double |
|
Height
Declaration
public int Height { get; }
Property Value
Type |
Description |
System.Int32 |
|
Index
Declaration
public int Index { get; }
Property Value
Type |
Description |
System.Int32 |
|
Path
Declaration
public string Path { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string PixelFormat { get; }
Property Value
Type |
Description |
System.String |
|
Ratio
Declaration
public string Ratio { get; }
Property Value
Type |
Description |
System.String |
|
StreamType
Declaration
public StreamType StreamType { get; }
Property Value
Width
Declaration
public int Width { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
AddSubtitles(String, String, String)
Declaration
public IVideoStream AddSubtitles(string subtitlePath, string encode, string style)
Parameters
Type |
Name |
Description |
System.String |
subtitlePath |
|
System.String |
encode |
|
System.String |
style |
|
Returns
AddSubtitles(String, VideoSize, String, String)
Declaration
public IVideoStream AddSubtitles(string subtitlePath, VideoSize originalSize, string encode, string style)
Parameters
Type |
Name |
Description |
System.String |
subtitlePath |
|
VideoSize |
originalSize |
|
System.String |
encode |
|
System.String |
style |
|
Returns
Build()
Declaration
Returns
Type |
Description |
System.String |
|
Declaration
public string BuildInputArguments()
Returns
Type |
Description |
System.String |
|
BuildVideoCodec()
Declaration
public string BuildVideoCodec()
Returns
Type |
Description |
System.String |
|
ChangeSpeed(Double)
Declaration
public IVideoStream ChangeSpeed(double multiplication)
Parameters
Type |
Name |
Description |
System.Double |
multiplication |
|
Returns
CopyStream()
Declaration
public IVideoStream CopyStream()
Returns
GetFilters()
Declaration
public IEnumerable<IFilterConfiguration> GetFilters()
Returns
GetSource()
Declaration
public IEnumerable<string> GetSource()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Reverse()
Declaration
public IVideoStream Reverse()
Returns
Rotate(RotateDegrees)
Declaration
public IVideoStream Rotate(RotateDegrees rotateDegrees)
Parameters
Returns
SetBitrate(Int64)
Declaration
public IVideoStream SetBitrate(long bitrate)
Parameters
Type |
Name |
Description |
System.Int64 |
bitrate |
|
Returns
SetBitstreamFilter(String)
Declaration
public IVideoStream SetBitstreamFilter(string filter)
Parameters
Type |
Name |
Description |
System.String |
filter |
|
Returns
SetBitstreamFilter(BitstreamFilter)
Declaration
public IVideoStream SetBitstreamFilter(BitstreamFilter filter)
Parameters
Returns
SetCodec(String)
Declaration
public IVideoStream SetCodec(string codec)
Parameters
Type |
Name |
Description |
System.String |
codec |
|
Returns
SetCodec(VideoCodec)
Declaration
public IVideoStream SetCodec(VideoCodec codec)
Parameters
Returns
SetFlags(String[])
Declaration
public IVideoStream SetFlags(params string[] flags)
Parameters
Type |
Name |
Description |
System.String[] |
flags |
|
Returns
SetFlags(Flag[])
Declaration
public IVideoStream SetFlags(params Flag[] flags)
Parameters
Type |
Name |
Description |
Flag[] |
flags |
|
Returns
SetFramerate(Double)
Declaration
public IVideoStream SetFramerate(double framerate)
Parameters
Type |
Name |
Description |
System.Double |
framerate |
|
Returns
SetLoop(Int32, Int32)
Declaration
public IVideoStream SetLoop(int count, int delay)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
System.Int32 |
delay |
|
Returns
SetOutputFramesCount(Int32)
Declaration
public IVideoStream SetOutputFramesCount(int number)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
Returns
SetSeek(TimeSpan)
Declaration
public IVideoStream SetSeek(TimeSpan seek)
Parameters
Type |
Name |
Description |
System.TimeSpan |
seek |
|
Returns
SetSize(Int32, Int32)
Declaration
public IVideoStream SetSize(int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
System.Int32 |
height |
|
Returns
SetSize(VideoSize)
Declaration
public IVideoStream SetSize(VideoSize size)
Parameters
Returns
SetWatermark(String, Position)
Declaration
public IVideoStream SetWatermark(string imagePath, Position position)
Parameters
Type |
Name |
Description |
System.String |
imagePath |
|
Position |
position |
|
Returns
Split(TimeSpan, TimeSpan)
Declaration
public IVideoStream Split(TimeSpan startTime, TimeSpan duration)
Parameters
Type |
Name |
Description |
System.TimeSpan |
startTime |
|
System.TimeSpan |
duration |
|
Returns
Implements