update
This commit is contained in:
parent
0786589239
commit
123add14eb
@ -55,7 +55,14 @@ namespace VideoConcat.Common.Tools
|
|||||||
//GlobalFFOptions.Current.TemporaryFilesFolder
|
//GlobalFFOptions.Current.TemporaryFilesFolder
|
||||||
var destinationPath = Path.Combine(_tempPath, $"{Path.GetFileNameWithoutExtension(videoPath)}{FileExtension.Ts}");
|
var destinationPath = Path.Combine(_tempPath, $"{Path.GetFileNameWithoutExtension(videoPath)}{FileExtension.Ts}");
|
||||||
//Directory.CreateDirectory(GlobalFFOptions.Current.TemporaryFilesFolder);
|
//Directory.CreateDirectory(GlobalFFOptions.Current.TemporaryFilesFolder);
|
||||||
|
try
|
||||||
|
{
|
||||||
FFMpeg.Convert(videoPath, destinationPath, VideoType.Ts);
|
FFMpeg.Convert(videoPath, destinationPath, VideoType.Ts);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
LogUtils.Error($"{videoPath} 转换失败", ex);
|
||||||
|
}
|
||||||
return destinationPath;
|
return destinationPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user