update bit depth probe
This commit is contained in:
parent
0cbc9c7900
commit
94ec8d87b8
|
@ -144,6 +144,12 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||||
/// <value>The bits_per_sample.</value>
|
/// <value>The bits_per_sample.</value>
|
||||||
public int bits_per_sample { get; set; }
|
public int bits_per_sample { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the bits_per_raw_sample.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The bits_per_raw_sample.</value>
|
||||||
|
public int bits_per_raw_sample { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the r_frame_rate.
|
/// Gets or sets the r_frame_rate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -164,6 +164,10 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||||
{
|
{
|
||||||
stream.BitDepth = streamInfo.bits_per_sample;
|
stream.BitDepth = streamInfo.bits_per_sample;
|
||||||
}
|
}
|
||||||
|
else if (streamInfo.bits_per_raw_sample > 0)
|
||||||
|
{
|
||||||
|
stream.BitDepth = streamInfo.bits_per_raw_sample;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (string.Equals(streamInfo.codec_type, "subtitle", StringComparison.OrdinalIgnoreCase))
|
else if (string.Equals(streamInfo.codec_type, "subtitle", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
@ -186,6 +190,10 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||||
{
|
{
|
||||||
stream.BitDepth = streamInfo.bits_per_sample;
|
stream.BitDepth = streamInfo.bits_per_sample;
|
||||||
}
|
}
|
||||||
|
else if (streamInfo.bits_per_raw_sample > 0)
|
||||||
|
{
|
||||||
|
stream.BitDepth = streamInfo.bits_per_raw_sample;
|
||||||
|
}
|
||||||
|
|
||||||
//stream.IsAnamorphic = string.Equals(streamInfo.sample_aspect_ratio, "0:1", StringComparison.OrdinalIgnoreCase) ||
|
//stream.IsAnamorphic = string.Equals(streamInfo.sample_aspect_ratio, "0:1", StringComparison.OrdinalIgnoreCase) ||
|
||||||
// string.Equals(stream.AspectRatio, "2.35:1", StringComparison.OrdinalIgnoreCase) ||
|
// string.Equals(stream.AspectRatio, "2.35:1", StringComparison.OrdinalIgnoreCase) ||
|
||||||
|
|
Loading…
Reference in New Issue
Block a user