|
|
@ -203,7 +203,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -218,7 +218,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -255,7 +255,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -270,7 +270,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -370,7 +370,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -385,7 +385,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -422,7 +422,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -437,7 +437,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -533,7 +533,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -548,7 +548,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
@ -585,7 +585,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -600,7 +600,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -698,7 +698,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -713,7 +713,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
@ -750,7 +750,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -765,7 +765,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -868,7 +868,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -883,7 +883,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var streamingRequest = new VideoRequestDto
|
|
|
|
var streamingRequest = new VideoRequestDto
|
|
|
@ -920,7 +920,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -935,7 +935,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -1040,7 +1040,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -1055,7 +1055,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var streamingRequest = new StreamingRequestDto
|
|
|
|
var streamingRequest = new StreamingRequestDto
|
|
|
@ -1092,7 +1092,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -1107,7 +1107,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|