mirror of https://github.com/ErsatzTV/ErsatzTV.git
Browse Source
* prioritize container aspect ratio over stream aspect ratio * use setdar filterpull/933/head
10 changed files with 95 additions and 43 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
namespace ErsatzTV.FFmpeg.Filter; |
||||
|
||||
public class SetDarFilter : BaseFilter |
||||
{ |
||||
private readonly string _displayAspectRatio; |
||||
|
||||
public SetDarFilter(string displayAspectRatio) |
||||
{ |
||||
_displayAspectRatio = displayAspectRatio; |
||||
} |
||||
|
||||
public override string Filter => $"setdar=dar={_displayAspectRatio.Replace(':', '/')}"; |
||||
public override FrameState NextState(FrameState currentState) => currentState; |
||||
} |
||||
@ -1,7 +0,0 @@
@@ -1,7 +0,0 @@
|
||||
namespace ErsatzTV.FFmpeg.Filter; |
||||
|
||||
public class SetSarFilter : BaseFilter |
||||
{ |
||||
public override string Filter => "setsar=1"; |
||||
public override FrameState NextState(FrameState currentState) => currentState; |
||||
} |
||||
Loading…
Reference in new issue