2
0

TranscodingProfile.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. namespace MediaBrowser.Controller.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 bool EstimateContentLength { get; set; }
  12. public bool EnableMpegtsM2TsMode { get; set; }
  13. public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
  14. public TranscodingSetting[] Settings { get; set; }
  15. public TranscodingProfile()
  16. {
  17. Settings = new TranscodingSetting[] { };
  18. }
  19. public List<string> GetAudioCodecs()
  20. {
  21. return (AudioCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
  22. }
  23. }
  24. public class TranscodingSetting
  25. {
  26. public TranscodingSettingType Name { get; set; }
  27. public string Value { get; set; }
  28. }
  29. public enum TranscodingSettingType
  30. {
  31. VideoProfile = 0
  32. }
  33. public enum TranscodeSeekInfo
  34. {
  35. Auto = 0,
  36. Bytes = 1
  37. }
  38. }