Out of bounds issue
Opened this issue · 3 comments
hassanrazakhalid commented
hi i just tried this.
the code im using 1.1.0.1 in dotnet core
var inputFile = new MediaFile { Filename = temp_path };
//var engine = new engine();
using (var engine = new Engine("/Volumes/Data/hardstone_projects/xtheia_2.2/xtheiaWeb/ffmpeg.exe"))
{
engine.GetMetadata(inputFile);
}
var duration = inputFile.Metadata.Duration;
But i am getting expection
Index was out of range. Must be non-negative and less than the size of the collection.\nParameter name: index
Please help
it14118 commented
Greetings, could you provide more details? It seems that in the first line of code you are providing Filename is not defined.
mustelan commented
I have the same exception. I analyzed code and I suppose that line:
throw new Exception(
this.FFmpegProcess.ExitCode + ": " + receivedMessagesLog[1] + receivedMessagesLog[0],
caughtException);
in
can be problematic.In my opinion there is a chance that:
has no elements (or has only one element) and there is not possible to build exception message correctly.
To sum up - a main exception can be hidden by a negligible exception.
hassanrazakhalid commented
I tried TagLib with exact same path... It is working fine