From 42e13cbbaff7465c3b5972de7a50cb28ca248803 Mon Sep 17 00:00:00 2001 From: Jason Dove Date: Mon, 18 Oct 2021 19:51:50 -0500 Subject: [PATCH] fix generated streams with mpeg2video (#444) --- CHANGELOG.md | 2 ++ ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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))