TranscodingProfile.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.Collections.Generic;
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Model.Dlna
  4. {
  5. public class TranscodingProfile
  6. {
  7. public string Container { get; set; }
  8. public DlnaProfileType Type { get; set; }
  9. public string VideoCodec { get; set; }
  10. public string AudioCodec { get; set; }
  11. public string Protocol { get; set; }
  12. public bool EstimateContentLength { get; set; }
  13. public bool EnableMpegtsM2TsMode { get; set; }
  14. public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
  15. public bool CopyTimestamps { get; set; }
  16. public EncodingContext Context { get; set; }
  17. public bool EnableSubtitlesInManifest { get; set; }
  18. public bool EnableSplittingOnNonKeyFrames { get; set; }
  19. public string MaxAudioChannels { get; set; }
  20. public List<string> GetAudioCodecs()
  21. {
  22. List<string> list = new List<string>();
  23. foreach (string i in (AudioCodec ?? string.Empty).Split(','))
  24. {
  25. if (!string.IsNullOrEmpty(i)) list.Add(i);
  26. }
  27. return list;
  28. }
  29. }
  30. }