mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Init
This commit is contained in:
parent
4abd656b74
commit
14ea6b1ae1
4 changed files with 20 additions and 11 deletions
|
@ -175,4 +175,20 @@ public bool Contains<T>() where T : Argument
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class ArgumentBuilder
|
||||
{
|
||||
|
||||
|
||||
private ArgumentBuilder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static ArgumentBuilder FromInputFile(string file)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,27 +9,18 @@ namespace FFMpegCore.FFMPEG.Argument
|
|||
/// Represents parameter of concat argument
|
||||
/// Used for creating video from multiple images or videos
|
||||
/// </summary>
|
||||
public class ConcatArgument : Argument<IEnumerable<string>>, IEnumerable<string>
|
||||
public class ConcatArgument : Argument<IEnumerable<string>>
|
||||
{
|
||||
public ConcatArgument() : base(new List<string>()) { }
|
||||
|
||||
public ConcatArgument(IEnumerable<string> value) : base(value) { }
|
||||
|
||||
public IEnumerator<string> GetEnumerator()
|
||||
{
|
||||
return Value.GetEnumerator();
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<NeutralLanguage>en</NeutralLanguage>
|
||||
<RepositoryUrl>https://github.com/rosenbjerg/FFMpegCore</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/rosenbjerg/FFMpegCore</PackageProjectUrl>
|
||||
|
|
Loading…
Reference in a new issue