use multiple docker tags again (#209)
* Revert "disable framerate normalization (#208)" This reverts commit141a34933d. * Revert "use linuxserver base docker image (#207)" This reverts commit0962a1429a. * fix playback that only uses fps filter * nvidia needs privileged
This commit is contained in:
@@ -467,35 +467,34 @@ namespace ErsatzTV.Core.Tests.FFmpeg
|
||||
actual.VideoCodec.Should().Be("copy");
|
||||
}
|
||||
|
||||
// disabled while frame rate normalization is unused
|
||||
// [Test]
|
||||
// public void ShouldNot_SetCopyVideoCodec_When_ContentIsCorrectSize_And_CorrectCodec_And_Framerate_ForTransportStream()
|
||||
// {
|
||||
// var ffmpegProfile = new FFmpegProfile
|
||||
// {
|
||||
// NormalizeVideo = true,
|
||||
// Resolution = new Resolution { Width = 1920, Height = 1080 },
|
||||
// VideoCodec = "libx264",
|
||||
// FrameRate = "24"
|
||||
// };
|
||||
//
|
||||
// // not anamorphic
|
||||
// var version = new MediaVersion
|
||||
// { Width = 1920, Height = 1080, SampleAspectRatio = "1:1" };
|
||||
//
|
||||
// FFmpegPlaybackSettings actual = _calculator.CalculateSettings(
|
||||
// StreamingMode.TransportStream,
|
||||
// ffmpegProfile,
|
||||
// version,
|
||||
// new MediaStream { Codec = "libx264" },
|
||||
// new MediaStream(),
|
||||
// DateTimeOffset.Now,
|
||||
// DateTimeOffset.Now);
|
||||
//
|
||||
// actual.ScaledSize.IsNone.Should().BeTrue();
|
||||
// actual.PadToDesiredResolution.Should().BeFalse();
|
||||
// actual.VideoCodec.Should().NotBe("copy");
|
||||
// }
|
||||
[Test]
|
||||
public void Should_SetCorrectVideoCodec_When_ContentIsCorrectSize_And_CorrectCodec_And_Framerate_ForTransportStream()
|
||||
{
|
||||
var ffmpegProfile = new FFmpegProfile
|
||||
{
|
||||
NormalizeVideo = true,
|
||||
Resolution = new Resolution { Width = 1920, Height = 1080 },
|
||||
VideoCodec = "libx264",
|
||||
FrameRate = "24"
|
||||
};
|
||||
|
||||
// not anamorphic
|
||||
var version = new MediaVersion
|
||||
{ Width = 1920, Height = 1080, SampleAspectRatio = "1:1" };
|
||||
|
||||
FFmpegPlaybackSettings actual = _calculator.CalculateSettings(
|
||||
StreamingMode.TransportStream,
|
||||
ffmpegProfile,
|
||||
version,
|
||||
new MediaStream { Codec = "libx264" },
|
||||
new MediaStream(),
|
||||
DateTimeOffset.Now,
|
||||
DateTimeOffset.Now);
|
||||
|
||||
actual.ScaledSize.IsNone.Should().BeTrue();
|
||||
actual.PadToDesiredResolution.Should().BeFalse();
|
||||
actual.VideoCodec.Should().Be("libx264");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void
|
||||
|
||||
Reference in New Issue
Block a user