|
|
@ -51,7 +51,7 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo
|
|
|
|
info.AudioFormat.Should().Be("aac");
|
|
|
|
info.AudioFormat.Should().Be("aac");
|
|
|
|
info.AudioCodecID.Should().Be("mp4a");
|
|
|
|
info.AudioCodecID.Should().Be("mp4a");
|
|
|
|
info.AudioProfile.Should().Be("LC");
|
|
|
|
info.AudioProfile.Should().Be("LC");
|
|
|
|
info.AudioBitrate.Should().Be(125488);
|
|
|
|
info.AudioBitrate.Should().Be(125509);
|
|
|
|
info.AudioChannels.Should().Be(2);
|
|
|
|
info.AudioChannels.Should().Be(2);
|
|
|
|
info.AudioChannelPositions.Should().Be("stereo");
|
|
|
|
info.AudioChannelPositions.Should().Be("stereo");
|
|
|
|
info.AudioLanguages.Should().BeEquivalentTo("eng");
|
|
|
|
info.AudioLanguages.Should().BeEquivalentTo("eng");
|
|
|
@ -59,12 +59,13 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo
|
|
|
|
info.RunTime.Seconds.Should().Be(10);
|
|
|
|
info.RunTime.Seconds.Should().Be(10);
|
|
|
|
info.ScanType.Should().Be("Progressive");
|
|
|
|
info.ScanType.Should().Be("Progressive");
|
|
|
|
info.Subtitles.Should().BeEmpty();
|
|
|
|
info.Subtitles.Should().BeEmpty();
|
|
|
|
info.VideoBitrate.Should().Be(193328);
|
|
|
|
info.VideoBitrate.Should().Be(193694);
|
|
|
|
info.VideoFps.Should().Be(24);
|
|
|
|
info.VideoFps.Should().Be(24);
|
|
|
|
info.Width.Should().Be(480);
|
|
|
|
info.Width.Should().Be(480);
|
|
|
|
info.VideoBitDepth.Should().Be(8);
|
|
|
|
info.VideoBitDepth.Should().Be(8);
|
|
|
|
info.VideoColourPrimaries.Should().Be("smpte170m");
|
|
|
|
info.VideoColourPrimaries.Should().Be("smpte170m");
|
|
|
|
info.VideoTransferCharacteristics.Should().Be("bt709");
|
|
|
|
info.VideoTransferCharacteristics.Should().Be("bt709");
|
|
|
|
|
|
|
|
info.Title.Should().Be("Sample Title");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -87,7 +88,7 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo
|
|
|
|
info.AudioFormat.Should().Be("aac");
|
|
|
|
info.AudioFormat.Should().Be("aac");
|
|
|
|
info.AudioCodecID.Should().Be("mp4a");
|
|
|
|
info.AudioCodecID.Should().Be("mp4a");
|
|
|
|
info.AudioProfile.Should().Be("LC");
|
|
|
|
info.AudioProfile.Should().Be("LC");
|
|
|
|
info.AudioBitrate.Should().Be(125488);
|
|
|
|
info.AudioBitrate.Should().Be(125509);
|
|
|
|
info.AudioChannels.Should().Be(2);
|
|
|
|
info.AudioChannels.Should().Be(2);
|
|
|
|
info.AudioChannelPositions.Should().Be("stereo");
|
|
|
|
info.AudioChannelPositions.Should().Be("stereo");
|
|
|
|
info.AudioLanguages.Should().BeEquivalentTo("eng");
|
|
|
|
info.AudioLanguages.Should().BeEquivalentTo("eng");
|
|
|
@ -95,11 +96,12 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo
|
|
|
|
info.RunTime.Seconds.Should().Be(10);
|
|
|
|
info.RunTime.Seconds.Should().Be(10);
|
|
|
|
info.ScanType.Should().Be("Progressive");
|
|
|
|
info.ScanType.Should().Be("Progressive");
|
|
|
|
info.Subtitles.Should().BeEmpty();
|
|
|
|
info.Subtitles.Should().BeEmpty();
|
|
|
|
info.VideoBitrate.Should().Be(193328);
|
|
|
|
info.VideoBitrate.Should().Be(193694);
|
|
|
|
info.VideoFps.Should().Be(24);
|
|
|
|
info.VideoFps.Should().Be(24);
|
|
|
|
info.Width.Should().Be(480);
|
|
|
|
info.Width.Should().Be(480);
|
|
|
|
info.VideoColourPrimaries.Should().Be("smpte170m");
|
|
|
|
info.VideoColourPrimaries.Should().Be("smpte170m");
|
|
|
|
info.VideoTransferCharacteristics.Should().Be("bt709");
|
|
|
|
info.VideoTransferCharacteristics.Should().Be("bt709");
|
|
|
|
|
|
|
|
info.Title.Should().Be("Sample Title");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase(8, "", "", "", null, HdrFormat.None)]
|
|
|
|
[TestCase(8, "", "", "", null, HdrFormat.None)]
|
|
|
|