MelodyS
Member
- Joined
- Nov 22, 2021
- Messages
- 13
- Programming Experience
- 1-3
I installed NReco.VideoInfo.LT version 1.1.0 to get the duration of a video
When trying to run it ,it throws an error :
System.Exception: 'Cannot locate FFProbe: C:\Users\NAGHAM\source\repos\VideoDuration\VideoDuration\bin\Debug\net5.0\ffprobe.exe'
Any help please !!
ffprobe error:
using System;
using NReco.VideoInfo;
namespace VideoDuration
{
class Program
{
static void Main(string[] args)
{
var filePath = args.Length > 0 ? args[0] : "Fayrouz.mp4";
var ffProbe = new FFProbe();
var videoInfo = ffProbe.GetMediaInfo(filePath);
Console.WriteLine("Duration: {0}", videoInfo.Duration);
Console.WriteLine("\nPress any key to exit...");
Console.ReadKey();
}
}
}
When trying to run it ,it throws an error :
System.Exception: 'Cannot locate FFProbe: C:\Users\NAGHAM\source\repos\VideoDuration\VideoDuration\bin\Debug\net5.0\ffprobe.exe'
Any help please !!