jellyfin-server/MediaBrowser.Model/Dlna/TranscodingProfile.cs

45 lines
1.1 KiB
C#
Raw Normal View History

2014-03-25 05:25:03 +00:00
using System.Collections.Generic;
2014-03-26 15:06:48 +00:00
using System.Xml.Serialization;
2014-03-25 05:25:03 +00:00
2014-04-01 22:23:07 +00:00
namespace MediaBrowser.Model.Dlna
2014-03-13 19:08:02 +00:00
{
public class TranscodingProfile
{
public string Container { get; set; }
public DlnaProfileType Type { get; set; }
public string VideoCodec { get; set; }
2014-03-26 15:06:48 +00:00
2014-03-13 19:08:02 +00:00
public string AudioCodec { get; set; }
2014-03-18 01:45:41 +00:00
2014-03-28 19:58:18 +00:00
public string Protocol { get; set; }
2016-04-21 04:04:57 +00:00
2014-03-23 00:48:34 +00:00
public bool EstimateContentLength { get; set; }
2014-03-26 15:06:48 +00:00
2014-03-25 05:25:03 +00:00
public bool EnableMpegtsM2TsMode { get; set; }
2014-03-26 15:06:48 +00:00
2014-03-23 00:48:34 +00:00
public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
public bool CopyTimestamps { get; set; }
2014-07-17 03:17:14 +00:00
public EncodingContext Context { get; set; }
2016-07-13 19:16:51 +00:00
public bool EnableSubtitlesInManifest { get; set; }
2016-10-16 17:11:32 +00:00
public bool EnableSplittingOnNonKeyFrames { get; set; }
2016-05-14 05:40:01 +00:00
public string MaxAudioChannels { get; set; }
2014-03-25 05:25:03 +00:00
public List<string> GetAudioCodecs()
{
2014-05-08 21:23:24 +00:00
List<string> list = new List<string>();
foreach (string i in (AudioCodec ?? string.Empty).Split(','))
{
if (!string.IsNullOrEmpty(i)) list.Add(i);
}
return list;
2014-03-25 05:25:03 +00:00
}
2014-03-18 01:45:41 +00:00
}
2014-03-13 19:08:02 +00:00
}