Show / Hide Table of Contents

Class Transcoder

A small transcoder class supporting filter. Instead of using this, please use ffmpeg directly if possible, as transcoding is complicated and thats exactly what ffmpeg.exe is for.

Inheritance
object
Transcoder
Implements
IDisposable
Inherited Members
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: FFmpeg
Assembly: FFmpeg.dll
Syntax
public sealed class Transcoder : IDisposable

Properties

View Source

CurrentTimestamp

Declaration
public TimeSpan CurrentTimestamp { get; }
Property Value
Type Description
TimeSpan
View Source

Duration

Declaration
public TimeSpan Duration { get; }
Property Value
Type Description
TimeSpan
View Source

InputCodecs

Declaration
public IReadOnlyList<CodecContext> InputCodecs { get; }
Property Value
Type Description
IReadOnlyList<CodecContext>
View Source

InputStreams

Declaration
public IReadOnlyList<AVStream> InputStreams { get; }
Property Value
Type Description
IReadOnlyList<AVStream>
View Source

OutputCodecs

Declaration
public IReadOnlyList<CodecContext?> OutputCodecs { get; }
Property Value
Type Description
IReadOnlyList<CodecContext>
View Source

OutputStream

Declaration
public IReadOnlyList<AVStream> OutputStream { get; }
Property Value
Type Description
IReadOnlyList<AVStream>
View Source

PreviewFrame

Declaration
public AVFrame PreviewFrame { get; }
Property Value
Type Description
AVFrame
View Source

PreviewOutputStreamIndex

Declaration
public int PreviewOutputStreamIndex { get; set; }
Property Value
Type Description
int
View Source

TaskState

Declaration
public TaskStatus TaskState { get; }
Property Value
Type Description
TaskStatus
View Source

UpdateInterval

Declaration
public TimeSpan UpdateInterval { get; set; }
Property Value
Type Description
TimeSpan

Methods

View Source

Close()

Declaration
public void Close()
View Source

ConfigureAwait(bool)

Declaration
public ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Parameters
Type Name Description
bool continueOnCapturedContext
Returns
Type Description
ConfiguredTaskAwaitable
View Source

Create(DemuxerContext, MuxerContext)

Declaration
public static Transcoder Create(DemuxerContext source, MuxerContext sink)
Parameters
Type Name Description
DemuxerContext source
MuxerContext sink
Returns
Type Description
Transcoder
View Source

Create(DemuxerContext, DeviceType, MuxerContext)

Declaration
public static Transcoder Create(DemuxerContext source, DeviceType hwSourceType, MuxerContext sink)
Parameters
Type Name Description
DemuxerContext source
DeviceType hwSourceType
MuxerContext sink
Returns
Type Description
Transcoder
View Source

Dispose()

Declaration
public void Dispose()
View Source

FindBestInputStream(MediaType)

Declaration
public int FindBestInputStream(MediaType mediaType)
Parameters
Type Name Description
MediaType mediaType
Returns
Type Description
int
View Source

GetAwaiter()

Declaration
public TaskAwaiter GetAwaiter()
Returns
Type Description
TaskAwaiter
View Source

MapStream(int)

Declaration
public int MapStream(int sourceIndex)
Parameters
Type Name Description
int sourceIndex
Returns
Type Description
int
View Source

MapStream(int, CodecContext)

Declaration
public int MapStream(int sourceIndex, CodecContext sinkCodec)
Parameters
Type Name Description
int sourceIndex
CodecContext sinkCodec
Returns
Type Description
int
View Source

MapStream(int, CodecContext?, FilterGraph?)

Declaration
public int MapStream(int sourceIndex, CodecContext? sinkCodec, FilterGraph? filter)
Parameters
Type Name Description
int sourceIndex
CodecContext sinkCodec
FilterGraph filter
Returns
Type Description
int
View Source

MapStream(int, FilterGraph)

Declaration
public int MapStream(int sourceIndex, FilterGraph filter)
Parameters
Type Name Description
int sourceIndex
FilterGraph filter
Returns
Type Description
int
View Source

ProcessNextPacket()

Declaration
public AVResult32 ProcessNextPacket()
Returns
Type Description
AVResult32
View Source

Start()

Declaration
public void Start()
View Source

Stop()

Declaration
public void Stop()
View Source

WriteHeader(TimeSpan, TimeSpan)

Declaration
public void WriteHeader(TimeSpan startTime = default, TimeSpan duration = default)
Parameters
Type Name Description
TimeSpan startTime
TimeSpan duration
View Source

WriteTrailer()

Declaration
public AVResult32 WriteTrailer()
Returns
Type Description
AVResult32

Implements

IDisposable
  • View Source
In this article
Back to top Generated by DocFX