mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
add image encoder based on ffmpeg
This commit is contained in:
parent
39ea2adbc5
commit
9705594845
7 changed files with 192 additions and 12 deletions
|
|
@ -948,14 +948,9 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
return GetFileInputArgument(playableStreamFiles[0]);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the bluray input argument.
|
||||
/// </summary>
|
||||
/// <param name="blurayRoot">The bluray root.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
private string GetBlurayInputArgument(string blurayRoot)
|
||||
public Task<Stream> EncodeImage(ImageEncodingOptions options, CancellationToken cancellationToken)
|
||||
{
|
||||
return string.Format("bluray:\"{0}\"", blurayRoot);
|
||||
return new ImageEncoder(FFMpegPath, _logger).EncodeImage(options, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue