I'm using the NReco to convert videos. I declare the converter like the following, and add a handler to ConvertProgress.
Dim vid_Convert As New FFMpegConverter
AddHandler vid_Convert.ConvertProgress, Sub(sender, e) vidConvertProgress(folder,fname,fext,fverdest,fint,fcount,fhost,e)
vid_Convert.ConvertMedia(file_temp, Nothing, file_dest, "mp4", cSettings)
The media is converted fine. The problem is in the handler where I declare a new converter and have it do a GetVideoThumbnail (when the prior conversion is completed), like this:
Dim vid_Extract As New FFMpegConverter
vid_Extract.GetVideoThumbnail(inputFile, outputFile, extractposition)
This produces the error "The specified executable is not a valid application for this OS platform". However, I've executed the GetVideoThumbnail method by itself elsewhere in my program with no problem. For some reason, it won't work if it's executed within the handler. Is there a way around this?