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