mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Merge
This commit is contained in:
parent
d9d42d459d
commit
97d3d15a1f
1 changed files with 3 additions and 3 deletions
|
@ -328,7 +328,7 @@ public static bool ReplaceAudio(string input, string inputAudio, string output,
|
|||
FFMpegHelper.RootExceptionCheck(FFMpegOptions.Options.RootDirectory);
|
||||
|
||||
var list = new List<Enums.PixelFormat>();
|
||||
using var instance = new Instances.Instance(FFMpegOptions.Options.FFmpegBinary, "-pix_fmts");
|
||||
using var instance = new Instances.Instance(FFMpegOptions.Options.FFmpegBinary(), "-pix_fmts");
|
||||
instance.DataReceived += (e, args) =>
|
||||
{
|
||||
if (Enums.PixelFormat.TryParse(args.Data, out var fmt))
|
||||
|
@ -372,7 +372,7 @@ internal static void ParsePartOfCodecs(Dictionary<string, Codec> codecs, string
|
|||
{
|
||||
FFMpegHelper.RootExceptionCheck(FFMpegOptions.Options.RootDirectory);
|
||||
|
||||
using var instance = new Instances.Instance(FFMpegOptions.Options.FFmpegBinary, arguments);
|
||||
using var instance = new Instances.Instance(FFMpegOptions.Options.FFmpegBinary(), arguments);
|
||||
instance.DataReceived += (e, args) =>
|
||||
{
|
||||
var codec = parser(args.Data);
|
||||
|
@ -456,7 +456,7 @@ internal static IReadOnlyList<ContainerFormat> GetContainersFormatsInternal()
|
|||
FFMpegHelper.RootExceptionCheck(FFMpegOptions.Options.RootDirectory);
|
||||
|
||||
var list = new List<ContainerFormat>();
|
||||
using var instance = new Instances.Instance(FFMpegOptions.Options.FFmpegBinary, "-formats");
|
||||
using var instance = new Instances.Instance(FFMpegOptions.Options.FFmpegBinary(), "-formats");
|
||||
instance.DataReceived += (e, args) =>
|
||||
{
|
||||
if (ContainerFormat.TryParse(args.Data, out var fmt))
|
||||
|
|
Loading…
Reference in a new issue