Skip to content

Commit

Permalink
OKEGui/OKEGui/JobProcessor/Video/x265Encoder.cs: log all unrecognized…
Browse files Browse the repository at this point in the history
… stderr outputs as Debug

Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed Dec 25, 2021
1 parent 52b2c32 commit 83ac077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OKEGui/OKEGui/JobProcessor/Video/x265Encoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public override void ProcessLine(string line, StreamType stream)

if (line.ToLowerInvariant().Contains("encoded"))
{
Logger.Debug(line);
Regex rf = new Regex("encoded ([0-9]+) frames in ([0-9]+.[0-9]+)s \\(([0-9]+.[0-9]+) fps\\), ([0-9]+.[0-9]+) kb/s, Avg QP:(([0-9]+.[0-9]+))");

var result = rf.Split(line);
Expand Down Expand Up @@ -87,6 +88,7 @@ public override void ProcessLine(string line, StreamType stream)
}
else
{
Logger.Debug(line);
return;
}

Expand Down

0 comments on commit 83ac077

Please sign in to comment.