From 91b39b41a8067249d0f7a5f6bd5caefc88609cad Mon Sep 17 00:00:00 2001 From: xxbiohazrdxx Date: Fri, 31 Jul 2020 11:46:12 -0400 Subject: [PATCH 1/2] Change DemuxConcatArgument output to match FFmpeg format --- FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs b/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs index 1378359..6975252 100644 --- a/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs +++ b/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -15,7 +16,7 @@ public class DemuxConcatArgument : IInputArgument public readonly IEnumerable Values; public DemuxConcatArgument(IEnumerable values) { - Values = values; + Values = values.Select(value => $"'file '{value}'"); } private readonly string _tempFileName = Path.Combine(FFMpegOptions.Options.TempDirectory, Guid.NewGuid() + ".txt"); From cb2a9a833452c433fece76093404af594e427d1d Mon Sep 17 00:00:00 2001 From: xxbiohazrdxx Date: Fri, 31 Jul 2020 11:51:16 -0400 Subject: [PATCH 2/2] Update DemuxConcatArgument.cs Typo --- FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs b/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs index 6975252..e915c77 100644 --- a/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs +++ b/FFMpegCore/FFMpeg/Arguments/DemuxConcatArgument.cs @@ -16,7 +16,7 @@ public class DemuxConcatArgument : IInputArgument public readonly IEnumerable Values; public DemuxConcatArgument(IEnumerable values) { - Values = values.Select(value => $"'file '{value}'"); + Values = values.Select(value => $"file '{value}'"); } private readonly string _tempFileName = Path.Combine(FFMpegOptions.Options.TempDirectory, Guid.NewGuid() + ".txt"); @@ -26,4 +26,4 @@ public DemuxConcatArgument(IEnumerable values) public string Text => $"-f concat -safe 0 -i \"{_tempFileName}\""; } -} \ No newline at end of file +}