Browse Source

fix generated streams with mpeg2video (#444)

pull/445/head
Jason Dove 5 years ago committed by GitHub
parent
commit
42e13cbbaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 3
      ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs

2
CHANGELOG.md

@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. @@ -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

3
ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs

@ -375,7 +375,8 @@ namespace ErsatzTV.Core.FFmpeg @@ -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))

Loading…
Cancel
Save