mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
QuietArgument -> VerbosityLevelArgument
More options
Former-commit-id: af77e48f28
This commit is contained in:
parent
7315cf2916
commit
afbca2e8d0
2 changed files with 25 additions and 7 deletions
|
@ -1,7 +0,0 @@
|
||||||
namespace FFMpegCore.Arguments
|
|
||||||
{
|
|
||||||
public class QuietArgument : IArgument
|
|
||||||
{
|
|
||||||
public string Text => "-hide_banner -loglevel warning";
|
|
||||||
}
|
|
||||||
}
|
|
25
FFMpegCore/FFMpeg/Arguments/VerbosityLevelArgument.cs
Normal file
25
FFMpegCore/FFMpeg/Arguments/VerbosityLevelArgument.cs
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
namespace FFMpegCore.Arguments
|
||||||
|
{
|
||||||
|
public class VerbosityLevelArgument : IArgument
|
||||||
|
{
|
||||||
|
private readonly VerbosityLevel _verbosityLevel;
|
||||||
|
|
||||||
|
public VerbosityLevelArgument(VerbosityLevel verbosityLevel)
|
||||||
|
{
|
||||||
|
_verbosityLevel = verbosityLevel;
|
||||||
|
}
|
||||||
|
public string Text => $"{((int)_verbosityLevel < 32 ? "-hide_banner " : "")}-loglevel {_verbosityLevel.ToString().ToLowerInvariant()}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum VerbosityLevel
|
||||||
|
{
|
||||||
|
Quiet = -8,
|
||||||
|
Fatal = 8,
|
||||||
|
Error = 16,
|
||||||
|
Warning = 24,
|
||||||
|
Info = 32,
|
||||||
|
Verbose = 40,
|
||||||
|
Debug = 48,
|
||||||
|
Trace = 56
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue