Browse Source

remove all use of setsar filter (#928)

pull/930/head
Jason Dove 4 years ago committed by GitHub
parent
commit
36d3d38530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 12
      ErsatzTV.FFmpeg/PipelineBuilder.cs

2
CHANGELOG.md

@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Use MIME Type `application/x-mpegurl` for all playlists instead of `application/vnd.apple.mpegurl`
- Remove `setsar` filter which caused issues scaling between two different aspect ratios
- For example, some 4:3 content would appear stretched when scaled to a 16:9 resolution
### Added
- Support DSD audio file formats (DFF and DSF) in local song libraries

12
ErsatzTV.FFmpeg/PipelineBuilder.cs

@ -379,10 +379,6 @@ public class PipelineBuilder @@ -379,10 +379,6 @@ public class PipelineBuilder
IPipelineFilterStep padStep = new PadFilter(currentState, desiredState.PaddedSize);
currentState = padStep.NextState(currentState);
_videoInputFile.Iter(f => f.FilterSteps.Add(padStep));
IPipelineFilterStep sarStep = new SetSarFilter();
currentState = sarStep.NextState(currentState);
_videoInputFile.Iter(f => f.FilterSteps.Add(sarStep));
}
}
else if (currentState.ScaledSize != desiredState.ScaledSize)
@ -402,10 +398,6 @@ public class PipelineBuilder @@ -402,10 +398,6 @@ public class PipelineBuilder
currentState = padStep.NextState(currentState);
_videoInputFile.Iter(f => f.FilterSteps.Add(padStep));
}
IPipelineFilterStep sarStep = new SetSarFilter();
currentState = sarStep.NextState(currentState);
_videoInputFile.Iter(f => f.FilterSteps.Add(sarStep));
}
else if (currentState.PaddedSize != desiredState.PaddedSize)
{
@ -423,10 +415,6 @@ public class PipelineBuilder @@ -423,10 +415,6 @@ public class PipelineBuilder
currentState = padStep.NextState(currentState);
_videoInputFile.Iter(f => f.FilterSteps.Add(padStep));
}
IPipelineFilterStep sarStep = new SetSarFilter();
currentState = sarStep.NextState(currentState);
_videoInputFile.Iter(f => f.FilterSteps.Add(sarStep));
}
if (hasOverlay && currentState.PixelFormat.Map(pf => pf.FFmpegName) !=

Loading…
Cancel
Save