mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-09 11:46:18 +00:00
update hls to support mpeg2video
This commit is contained in:
@@ -733,12 +733,18 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
|
||||
if (videoStream.IsInterlaced)
|
||||
{
|
||||
return false;
|
||||
if (request.DeInterlace)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (videoStream.IsAnamorphic ?? false)
|
||||
{
|
||||
return false;
|
||||
if (request.RequireNonAnamorphic)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Can't stream copy if we're burning in subtitles
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
AudioBitRate = info.AudioBitrate;
|
||||
AudioSampleRate = info.TargetAudioSampleRate;
|
||||
DeviceProfile = deviceProfile;
|
||||
VideoCodec = info.VideoCodec;
|
||||
VideoCodec = info.TargetVideoCodec;
|
||||
VideoBitRate = info.VideoBitrate;
|
||||
AudioStreamIndex = info.AudioStreamIndex;
|
||||
MaxRefFrames = info.MaxRefFrames;
|
||||
@@ -185,6 +185,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
[ApiMember(Name = "MaxVideoBitDepth", Description = "Optional.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
|
||||
public int? MaxVideoBitDepth { get; set; }
|
||||
public bool RequireAvc { get; set; }
|
||||
public bool DeInterlace { get; set; }
|
||||
public bool RequireNonAnamorphic { get; set; }
|
||||
public int? TranscodingMaxAudioChannels { get; set; }
|
||||
public int? CpuCoreLimit { get; set; }
|
||||
public string OutputContainer { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user