mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Do not add input rate arg if the specified rate is 0
This commit is contained in:
@@ -47,9 +47,12 @@ namespace Flowframes.Media
|
|||||||
public static async Task<string> GetFfmpegExportArgsIn(Fraction fps, float itsScale, int rotation = 0)
|
public static async Task<string> GetFfmpegExportArgsIn(Fraction fps, float itsScale, int rotation = 0)
|
||||||
{
|
{
|
||||||
var args = new List<string>();
|
var args = new List<string>();
|
||||||
|
|
||||||
fps = fps / new Fraction(itsScale);
|
fps = fps / new Fraction(itsScale);
|
||||||
args.Add($"-r {fps}");
|
|
||||||
|
if(fps > 0.1f)
|
||||||
|
{
|
||||||
|
args.Add($"-r {fps}");
|
||||||
|
}
|
||||||
|
|
||||||
if(rotation != 0)
|
if(rotation != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user