|
|
|
@ -281,7 +281,11 @@ public class StartFFmpegNextSessionHandler( |
|
|
|
FFmpegProfileViewModel ffmpegProfile, |
|
|
|
FFmpegProfileViewModel ffmpegProfile, |
|
|
|
CancellationToken cancellationToken) |
|
|
|
CancellationToken cancellationToken) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var ffmpeg = new Ffmpeg(); |
|
|
|
var ffmpeg = new Ffmpeg |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// next only keeps errors, so always pass the folder
|
|
|
|
|
|
|
|
ReportsFolder = FileSystemLayout.FFmpegReportsFolder |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Option<string> ffmpegPath = await configElementRepository.GetValue<string>( |
|
|
|
Option<string> ffmpegPath = await configElementRepository.GetValue<string>( |
|
|
|
ConfigElementKey.FFmpegPath, |
|
|
|
ConfigElementKey.FFmpegPath, |
|
|
|
@ -305,15 +309,6 @@ public class StartFFmpegNextSessionHandler( |
|
|
|
ConfigElementKey.FFmpegSaveReports, |
|
|
|
ConfigElementKey.FFmpegSaveReports, |
|
|
|
cancellationToken); |
|
|
|
cancellationToken); |
|
|
|
|
|
|
|
|
|
|
|
foreach (bool saveReports in maybeSaveReports) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (saveReports) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
ffmpeg.SaveReports = true; |
|
|
|
|
|
|
|
ffmpeg.ReportsFolder = FileSystemLayout.FFmpegReportsFolder; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var audioNormalization = new Audio |
|
|
|
var audioNormalization = new Audio |
|
|
|
{ |
|
|
|
{ |
|
|
|
Format = ffmpegProfile.AudioFormat switch |
|
|
|
Format = ffmpegProfile.AudioFormat switch |
|
|
|
|