_MinFileLength & WithCustomArgument
This commit is contained in:
@ -135,8 +135,9 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
File.WriteAllText(Path.ChangeExtension(destFileName, ".err"), $"<{_FFmpegFileName}> doesn't exits!");
|
||||
else
|
||||
{
|
||||
Uri uri = new(string.Concat("rtsp://", _StaticFileServer, '/', _FileConnectorConfiguration.SourceDirectoryCloaking));
|
||||
_ = FFMpegArguments
|
||||
.FromUrlInput(new Uri(string.Concat("rtsp://", _StaticFileServer, '/', _FileConnectorConfiguration.SourceDirectoryCloaking)))
|
||||
.FromUrlInput(uri, arg => arg.WithCustomArgument("-stimeout 3000"))
|
||||
.OutputToFile(sourceFileName)
|
||||
.ProcessSynchronously(throwOnError: false);
|
||||
File.Move(sourceFileName, destFileName);
|
||||
|
Reference in New Issue
Block a user