MediaInfoResult.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. using System.Collections.Generic;
  2. using System.Xml.Serialization;
  3. namespace COSXML.Model.Tag
  4. {
  5. [XmlRoot("Response")]
  6. public sealed class MediaInfoResult
  7. {
  8. [XmlElement]
  9. public MediaInfoDetail MediaInfo;
  10. public sealed class MediaInfoDetail
  11. {
  12. [XmlElement]
  13. public FormatDetail Format;
  14. [XmlElement]
  15. public StreamDetail Stream;
  16. public sealed class StreamDetail
  17. {
  18. [XmlElement]
  19. public VideoDetail Video;
  20. [XmlElement]
  21. public AudioDetail Audio;
  22. [XmlElement]
  23. public SubtitleDetail Subtitle;
  24. public sealed class VideoDetail
  25. {
  26. [XmlElement]
  27. public string Index;
  28. [XmlElement]
  29. public string CodecName;
  30. [XmlElement]
  31. public string CodecLongName;
  32. [XmlElement]
  33. public string CodecTimeBase;
  34. [XmlElement]
  35. public string CodecTagString;
  36. [XmlElement]
  37. public string CodecTag;
  38. [XmlElement]
  39. public string Profile;
  40. [XmlElement]
  41. public string Height;
  42. [XmlElement]
  43. public string Width;
  44. [XmlElement]
  45. public string HasBFrame;
  46. [XmlElement]
  47. public string RefFrames;
  48. [XmlElement]
  49. public string Sar;
  50. [XmlElement]
  51. public string Dar;
  52. [XmlElement]
  53. public string PixFormat;
  54. [XmlElement]
  55. public string FieldOrder;
  56. [XmlElement]
  57. public string Level;
  58. [XmlElement]
  59. public string Fps;
  60. [XmlElement]
  61. public string AvgFps;
  62. [XmlElement]
  63. public string Timebase;
  64. [XmlElement]
  65. public string StartTime;
  66. [XmlElement]
  67. public string Duration;
  68. [XmlElement]
  69. public string Bitrate;
  70. [XmlElement]
  71. public string NumFrames;
  72. [XmlElement]
  73. public string Language;
  74. }
  75. public sealed class AudioDetail
  76. {
  77. [XmlElement]
  78. public string Index;
  79. [XmlElement("CodecName")]
  80. public string CodecName;
  81. [XmlElement("CodecLongName")]
  82. public string CodecLongName;
  83. [XmlElement("CodecTimeBase")]
  84. public string CodecTimeBase;
  85. [XmlElement("CodecTagString")]
  86. public string CodecTagString;
  87. [XmlElement("CodecTag")]
  88. public string CodecTag;
  89. [XmlElement("SampleFmt")]
  90. public string SampleFmt;
  91. [XmlElement("SampleRate")]
  92. public string SampleRate;
  93. [XmlElement("Channel")]
  94. public string Channel;
  95. [XmlElement("ChannelLayout")]
  96. public string ChannelLayout;
  97. [XmlElement("Timebase")]
  98. public string Timebase;
  99. [XmlElement("StartTime")]
  100. public string StartTime;
  101. [XmlElement("Duration")]
  102. public string Duration;
  103. [XmlElement("Bitrate")]
  104. public string Bitrate;
  105. [XmlElement("Language")]
  106. public string Language;
  107. }
  108. public sealed class SubtitleDetail
  109. {
  110. [XmlElement("Index")]
  111. public string Index;
  112. [XmlElement("Language")]
  113. public string Language;
  114. }
  115. }
  116. public sealed class FormatDetail
  117. {
  118. [XmlElement("Bitrate")]
  119. public string Bitrate;
  120. [XmlElement("NumStream")]
  121. public string NumStream;
  122. [XmlElement("NumProgram")]
  123. public string NumProgram;
  124. [XmlElement("FormatName")]
  125. public string FormatName;
  126. [XmlElement("FormatLongName")]
  127. public string FormatLongName;
  128. [XmlElement("StartTime")]
  129. public string StartTime;
  130. [XmlElement("Duration")]
  131. public string Duration;
  132. [XmlElement("Size")]
  133. public string Size;
  134. }
  135. }
  136. }
  137. }