Interface IMediaEncoder
Assembly: MediaBrowser.Controller.dll
public interface IMediaEncoder
Properties
Declaration
[Obsolete("Use IFfmpegManager.IFfmpegConfiguration.DetectPath instead.")]
string DetectPath { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use IFfmpegManager.IFfmpegConfiguration.EncoderPath instead.")]
string EncoderPath { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use IFfmpegManager.FfmpegCapabilities instead.")]
FfmpegCapabilities FfmpegCapabilities { get; }
Property Value
Declaration
[Obsolete("Use IFfmpegManager.IFfmpegConfiguration instead.")]
IFfmpegConfiguration FfmpegConfig { get; }
Property Value
Declaration
[Obsolete("Use IFfmpegManager.FfmpegCapabilities.SupportsDiscardCorruptPts instead.")]
bool SupportsDiscardCorruptPts { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[Obsolete("Use IFfmpegManager.FfmpegCapabilities.SupportsFillWallClockDts instead.")]
bool SupportsFillWallClockDts { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[Obsolete("Use IFfmpegManager.FfmpegCapabilities.SupportsSkipList instead.")]
bool SupportsSkipList { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[Obsolete("Use IFfmpegManager.FfmpegCapabilities.SupportsTempSegmentWriting instead.")]
bool SupportsTempSegmentWriting { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[Obsolete("Use IFfmpegManager.FfmpegCapabilities.SupportsThrottling instead.")]
bool SupportsThrottling { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
[Obsolete("Use ICodecManager.AllowHardwareAcceleration() instead.")]
Task<bool> AllowHardwareAcceleration(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Declaration
Task<string> EncodeAudio(EncodingJobOptions options, IProgress<double> progress, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
EncodingJobOptions |
options |
The options.
|
System.IProgress<System.Double> |
progress |
The progress.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
Task.
|
Declaration
Task<string> EncodeVideo(EncodingJobOptions options, IProgress<double> progress, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
EncodingJobOptions |
options |
The options.
|
System.IProgress<System.Double> |
progress |
The progress.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
Task<System.String>.
|
Escapes the subtitle filter path.
Declaration
[Obsolete("Use static method EncodingHelpers.EscapeSubtitleFilterPath() instead.")]
string EscapeSubtitleFilterPath(ReadOnlySpan<char> path)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
The path.
|
Returns
Type |
Description |
System.String |
System.String.
|
Declaration
[Obsolete("Use EncodingHelpers.GetAnalyzeDurationMs instead.")]
int GetAnalyzeDurationMs(MediaSourceInfo mediaSource)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Declaration
string GetInputArgument(ReadOnlySpan<char> inputPath, MediaProtocol protocol)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
inputPath |
The input path.
|
MediaProtocol |
protocol |
The protocol.
|
Returns
Type |
Description |
System.String |
System.String.
|
Declaration
string GetTimeParameter(long ticks)
Parameters
Type |
Name |
Description |
System.Int64 |
ticks |
The ticks.
|
Returns
Type |
Description |
System.String |
System.String.
|
Extension Methods