Merge pull request #95 from xxbiohazrdxx/DemuxConcatenateFix

Change DemuxConcatArgument output to match FFmpeg format
This commit is contained in:
Malte Rosenbjerg 2020-08-02 16:01:53 +02:00 committed by GitHub
commit 1eb4959b5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<string> Values;
public DemuxConcatArgument(IEnumerable<string> values)
{
Values = values;
Values = values.Select(value => $"file '{value}'");
}
private readonly string _tempFileName = Path.Combine(FFMpegOptions.Options.TempDirectory, Guid.NewGuid() + ".txt");
@ -25,4 +26,4 @@ public DemuxConcatArgument(IEnumerable<string> values)
public string Text => $"-f concat -safe 0 -i \"{_tempFileName}\"";
}
}
}