mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Merge pull request #95 from xxbiohazrdxx/DemuxConcatenateFix
Change DemuxConcatArgument output to match FFmpeg format
Former-commit-id: 1eb4959b5a
This commit is contained in:
commit
50085dec4d
1 changed files with 3 additions and 2 deletions
|
@ -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}\"";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue