AlturosDestinations / Alturos.VideoInfo

C# Video Metadata reader (ffprobe wrapper)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VideoFilePath with blank spaces.

JairoASuarez opened this issue · comments

Hello, I have a bug when videoFilePath contains blank spaces. I call videoAnalyzer.GetVideoInfo(videoFilePaths) this method throws System.NullReferenceException.

Arguments = $"-v quiet -print_format json -show_format -show_streams {videoFilePath}",

Could not replicate the exception, but could verify it doesn't work with blank spaces in the path.
Try surrounding the videoFilePath with quotation marks at the line you provided.
Arguments = $"-v quiet -print_format json -show_format -show_streams \"{videoFilePath}\"",

We have update the logic can you test again update

@JairoASuarez new version is also pushed to nuget