Skip to content

Commit

Permalink
Improved ffmpeg error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
omanikhi committed Feb 26, 2025
1 parent d39425d commit a86972c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions VideoFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,17 +245,14 @@ public override void GetFileInfo(string path, long size)
{
if (!process.HasExited)
{
logger?.LogDebug("FFmpeg Execution Timeout: {FileName} {Arguments}\n{Result}",
process.StartInfo.FileName, process.StartInfo.Arguments, errorTask.Result);
process.Kill();
}

if (process.HasExited)
{
logger?.LogDebug("{Errors}", errorTask.Result);
}
else
{
logger?.LogDebug("FFmpeg Execution Failed: {FileName} {Arguments}\n{Result}",
process.StartInfo.FileName, process.StartInfo.Arguments, errorTask.Result);
process.StartInfo.FileName, process.StartInfo.Arguments, errorTask.Result);
}

return null;
Expand Down

0 comments on commit a86972c

Please sign in to comment.