aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/FFMpeg/FFProbeResult.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/FFMpeg/FFProbeResult.cs')
-rw-r--r--MediaBrowser.Controller/FFMpeg/FFProbeResult.cs54
1 files changed, 21 insertions, 33 deletions
diff --git a/MediaBrowser.Controller/FFMpeg/FFProbeResult.cs b/MediaBrowser.Controller/FFMpeg/FFProbeResult.cs
index cc449991d..43167b521 100644
--- a/MediaBrowser.Controller/FFMpeg/FFProbeResult.cs
+++ b/MediaBrowser.Controller/FFMpeg/FFProbeResult.cs
@@ -13,6 +13,11 @@ namespace MediaBrowser.Controller.FFMpeg
public MediaFormat format { get; set; }
}
+ /// <summary>
+ /// Represents a stream within the output
+ /// A number of properties are commented out to improve deserialization performance
+ /// Enable them as needed.
+ /// </summary>
public class MediaStream
{
public int index { get; set; }
@@ -20,28 +25,28 @@ namespace MediaBrowser.Controller.FFMpeg
public string codec_name { get; set; }
public string codec_long_name { get; set; }
public string codec_type { get; set; }
- public string codec_time_base { get; set; }
- public string codec_tag { get; set; }
- public string codec_tag_string { get; set; }
- public string sample_fmt { get; set; }
+ //public string codec_time_base { get; set; }
+ //public string codec_tag { get; set; }
+ //public string codec_tag_string { get; set; }
+ //public string sample_fmt { get; set; }
public string sample_rate { get; set; }
public int channels { get; set; }
- public int bits_per_sample { get; set; }
- public string r_frame_rate { get; set; }
- public string avg_frame_rate { get; set; }
- public string time_base { get; set; }
- public string start_time { get; set; }
+ //public int bits_per_sample { get; set; }
+ //public string r_frame_rate { get; set; }
+ //public string avg_frame_rate { get; set; }
+ //public string time_base { get; set; }
+ //public string start_time { get; set; }
public string duration { get; set; }
public string bit_rate { get; set; }
public int width { get; set; }
public int height { get; set; }
- public int has_b_frames { get; set; }
- public string sample_aspect_ratio { get; set; }
- public string display_aspect_ratio { get; set; }
- public string pix_fmt { get; set; }
- public int level { get; set; }
- public MediaTags tags { get; set; }
+ //public int has_b_frames { get; set; }
+ //public string sample_aspect_ratio { get; set; }
+ //public string display_aspect_ratio { get; set; }
+ //public string pix_fmt { get; set; }
+ //public int level { get; set; }
+ public Dictionary<string,string> tags { get; set; }
}
public class MediaFormat
@@ -54,23 +59,6 @@ namespace MediaBrowser.Controller.FFMpeg
public string duration { get; set; }
public string size { get; set; }
public string bit_rate { get; set; }
- public MediaTags tags { get; set; }
- }
-
- public class MediaTags
- {
- public string title { get; set; }
- public string comment { get; set; }
- public string artist { get; set; }
- public string album { get; set; }
- public string album_artist { get; set; }
- public string composer { get; set; }
- public string copyright { get; set; }
- public string publisher { get; set; }
- public string track { get; set; }
- public string disc { get; set; }
- public string genre { get; set; }
- public string date { get; set; }
- public string language { get; set; }
+ public Dictionary<string, string> tags { get; set; }
}
}