From 14ea6b1ae17678bfd9b28b164f78012f82ec64c2 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Wed, 6 May 2020 23:34:31 +0200 Subject: [PATCH] Init --- FFMpegCore/FFMPEG/Argument/ArgumentContainer.cs | 16 ++++++++++++++++ .../FFMPEG/Argument/Atoms/ConcatArgument.cs | 11 +---------- .../FFMPEG/Argument/Atoms/InputArgument.cs | 2 ++ FFMpegCore/FFMpegCore.csproj | 2 +- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/FFMpegCore/FFMPEG/Argument/ArgumentContainer.cs b/FFMpegCore/FFMPEG/Argument/ArgumentContainer.cs index 829b511..60c0652 100644 --- a/FFMpegCore/FFMPEG/Argument/ArgumentContainer.cs +++ b/FFMpegCore/FFMPEG/Argument/ArgumentContainer.cs @@ -175,4 +175,20 @@ public bool Contains() where T : Argument return false; } } + + + public class ArgumentBuilder + { + + + private ArgumentBuilder() + { + + } + + public static ArgumentBuilder FromInputFile(string file) + { + + } + } } diff --git a/FFMpegCore/FFMPEG/Argument/Atoms/ConcatArgument.cs b/FFMpegCore/FFMPEG/Argument/Atoms/ConcatArgument.cs index 280153e..b68ec04 100644 --- a/FFMpegCore/FFMPEG/Argument/Atoms/ConcatArgument.cs +++ b/FFMpegCore/FFMPEG/Argument/Atoms/ConcatArgument.cs @@ -9,27 +9,18 @@ namespace FFMpegCore.FFMPEG.Argument /// Represents parameter of concat argument /// Used for creating video from multiple images or videos /// - public class ConcatArgument : Argument>, IEnumerable + public class ConcatArgument : Argument> { public ConcatArgument() : base(new List()) { } public ConcatArgument(IEnumerable value) : base(value) { } - public IEnumerator GetEnumerator() - { - return Value.GetEnumerator(); - } - /// public override string GetStringValue() { return $"-i \"concat:{string.Join(@"|", Value)}\""; } - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } public VideoInfo[] GetAsVideoInfo() { return Value.Select(v => new VideoInfo(v)).ToArray(); diff --git a/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs b/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs index d421b0a..0c75e1a 100644 --- a/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs +++ b/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs @@ -1,6 +1,7 @@ using System; using System.IO; using System.Linq; +using System.Threading.Tasks; namespace FFMpegCore.FFMPEG.Argument { @@ -29,4 +30,5 @@ public VideoInfo[] GetAsVideoInfo() return Value.Select(v => new VideoInfo(v)).ToArray(); } } + } diff --git a/FFMpegCore/FFMpegCore.csproj b/FFMpegCore/FFMpegCore.csproj index f400dc0..a0a66b5 100644 --- a/FFMpegCore/FFMpegCore.csproj +++ b/FFMpegCore/FFMpegCore.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + netstandard2.1 en https://github.com/rosenbjerg/FFMpegCore https://github.com/rosenbjerg/FFMpegCore