StreamOptions.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. namespace MediaBrowser.Model.Dto
  2. {
  3. /// <summary>
  4. /// Class VideoStreamOptions
  5. /// </summary>
  6. public class VideoStreamOptions : StreamOptions
  7. {
  8. /// <summary>
  9. /// Gets or sets the video codec.
  10. /// Omit to copy
  11. /// </summary>
  12. /// <value>The video codec.</value>
  13. public VideoCodecs? VideoCodec { get; set; }
  14. /// <summary>
  15. /// Gets or sets the video bit rate.
  16. /// </summary>
  17. /// <value>The video bit rate.</value>
  18. public int? VideoBitRate { get; set; }
  19. /// <summary>
  20. /// Gets or sets the width.
  21. /// </summary>
  22. /// <value>The width.</value>
  23. public int? Width { get; set; }
  24. /// <summary>
  25. /// Gets or sets the height.
  26. /// </summary>
  27. /// <value>The height.</value>
  28. public int? Height { get; set; }
  29. /// <summary>
  30. /// Gets or sets the width of the max.
  31. /// </summary>
  32. /// <value>The width of the max.</value>
  33. public int? MaxWidth { get; set; }
  34. /// <summary>
  35. /// Gets or sets the height of the max.
  36. /// </summary>
  37. /// <value>The height of the max.</value>
  38. public int? MaxHeight { get; set; }
  39. /// <summary>
  40. /// Gets or sets the frame rate.
  41. /// </summary>
  42. /// <value>The frame rate.</value>
  43. public double? FrameRate { get; set; }
  44. /// <summary>
  45. /// Gets or sets the index of the audio stream.
  46. /// </summary>
  47. /// <value>The index of the audio stream.</value>
  48. public int? AudioStreamIndex { get; set; }
  49. /// <summary>
  50. /// Gets or sets the index of the video stream.
  51. /// </summary>
  52. /// <value>The index of the video stream.</value>
  53. public int? VideoStreamIndex { get; set; }
  54. /// <summary>
  55. /// Gets or sets the index of the subtitle stream.
  56. /// </summary>
  57. /// <value>The index of the subtitle stream.</value>
  58. public int? SubtitleStreamIndex { get; set; }
  59. /// <summary>
  60. /// Gets or sets the profile.
  61. /// </summary>
  62. /// <value>The profile.</value>
  63. public string Profile { get; set; }
  64. /// <summary>
  65. /// Gets or sets the level.
  66. /// </summary>
  67. /// <value>The level.</value>
  68. public string Level { get; set; }
  69. }
  70. /// <summary>
  71. /// Class StreamOptions
  72. /// </summary>
  73. public abstract class StreamOptions
  74. {
  75. /// <summary>
  76. /// Gets or sets the audio bit rate.
  77. /// </summary>
  78. /// <value>The audio bit rate.</value>
  79. public int? AudioBitRate { get; set; }
  80. /// <summary>
  81. /// Gets or sets the audio codec.
  82. /// Omit to copy the original stream
  83. /// </summary>
  84. /// <value>The audio encoding format.</value>
  85. public AudioCodecs? AudioCodec { get; set; }
  86. /// <summary>
  87. /// Gets or sets the item id.
  88. /// </summary>
  89. /// <value>The item id.</value>
  90. public string ItemId { get; set; }
  91. /// <summary>
  92. /// Gets or sets the max audio channels.
  93. /// </summary>
  94. /// <value>The max audio channels.</value>
  95. public int? MaxAudioChannels { get; set; }
  96. /// <summary>
  97. /// Gets or sets the max audio sample rate.
  98. /// </summary>
  99. /// <value>The max audio sample rate.</value>
  100. public int? MaxAudioSampleRate { get; set; }
  101. /// <summary>
  102. /// Gets or sets the start time ticks.
  103. /// </summary>
  104. /// <value>The start time ticks.</value>
  105. public long? StartTimeTicks { get; set; }
  106. /// <summary>
  107. /// Gets or sets a value indicating whether the original media should be served statically
  108. /// Only used with progressive streaming
  109. /// </summary>
  110. /// <value><c>true</c> if static; otherwise, <c>false</c>.</value>
  111. public bool? Static { get; set; }
  112. /// <summary>
  113. /// Gets or sets the output file extension.
  114. /// </summary>
  115. /// <value>The output file extension.</value>
  116. public string OutputFileExtension { get; set; }
  117. }
  118. /// <summary>
  119. /// These are the codecs the api is capable of encoding to
  120. /// </summary>
  121. public enum AudioCodecs
  122. {
  123. /// <summary>
  124. /// The aac
  125. /// </summary>
  126. Aac,
  127. /// <summary>
  128. /// The MP3
  129. /// </summary>
  130. Mp3,
  131. /// <summary>
  132. /// The vorbis
  133. /// </summary>
  134. Vorbis,
  135. /// <summary>
  136. /// The wma
  137. /// </summary>
  138. Wma
  139. }
  140. /// <summary>
  141. /// Enum VideoCodecs
  142. /// </summary>
  143. public enum VideoCodecs
  144. {
  145. /// <summary>
  146. /// The H264
  147. /// </summary>
  148. H264,
  149. /// <summary>
  150. /// The mpeg4
  151. /// </summary>
  152. Mpeg4,
  153. /// <summary>
  154. /// The theora
  155. /// </summary>
  156. Theora,
  157. /// <summary>
  158. /// The VPX
  159. /// </summary>
  160. Vpx,
  161. /// <summary>
  162. /// The WMV
  163. /// </summary>
  164. Wmv
  165. }
  166. }