TranscodingProfile.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #pragma warning disable CS1591
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Model.Dlna
  4. {
  5. public class TranscodingProfile
  6. {
  7. [XmlAttribute("container")]
  8. public string Container { get; set; }
  9. [XmlAttribute("type")]
  10. public DlnaProfileType Type { get; set; }
  11. [XmlAttribute("videoCodec")]
  12. public string VideoCodec { get; set; }
  13. [XmlAttribute("audioCodec")]
  14. public string AudioCodec { get; set; }
  15. [XmlAttribute("protocol")]
  16. public string Protocol { get; set; }
  17. [XmlAttribute("estimateContentLength")]
  18. public bool EstimateContentLength { get; set; }
  19. [XmlAttribute("enableMpegtsM2TsMode")]
  20. public bool EnableMpegtsM2TsMode { get; set; }
  21. [XmlAttribute("transcodeSeekInfo")]
  22. public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
  23. [XmlAttribute("copyTimestamps")]
  24. public bool CopyTimestamps { get; set; }
  25. [XmlAttribute("context")]
  26. public EncodingContext Context { get; set; }
  27. [XmlAttribute("enableSubtitlesInManifest")]
  28. public bool EnableSubtitlesInManifest { get; set; }
  29. [XmlAttribute("maxAudioChannels")]
  30. public string MaxAudioChannels { get; set; }
  31. [XmlAttribute("minSegments")]
  32. public int MinSegments { get; set; }
  33. [XmlAttribute("segmentLength")]
  34. public int SegmentLength { get; set; }
  35. [XmlAttribute("breakOnNonKeyFrames")]
  36. public bool BreakOnNonKeyFrames { get; set; }
  37. public string[] GetAudioCodecs()
  38. {
  39. return ContainerProfile.SplitValue(AudioCodec);
  40. }
  41. }
  42. }