diff --git a/CHANGELOG.md b/CHANGELOG.md index d6c941492..95f5cdbff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Fixed +- Fix generated streams with mpeg2video ## [0.1.5-alpha] - 2021-10-18 ### Fixed diff --git a/ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs b/ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs index 6659924b8..44c2aad68 100644 --- a/ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs +++ b/ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs @@ -375,7 +375,8 @@ namespace ErsatzTV.Core.FFmpeg { "-c:v", playbackSettings.VideoCodec, "-flags", "cgop", - "-sc_threshold", "0" // disable scene change detection + // disable scene change detection except with mpeg2video + "-sc_threshold", playbackSettings.VideoCodec == "mpeg2video" ? "1000000000" : "0" }; if (!string.IsNullOrWhiteSpace(_outputPixelFormat))