Hello,
I had searched lot of sites and much more googling. I had found several tools like,
Emgu CV
NReco.videoconverter (dot net wrapper for ffmpeg)
Dexter.lib
But all this tools works fine on avi video only. None of this tools works on any other video file formats.
Friends, it's an emergency. I am trying for almost a week. Please help me to resolve this problem.
What I have tried:
I had tried following but its only extracts frames from avi video files.
using Dexter.lib
public void ExtractFrame(string videofile)
{
try
{
Bitmap image = FrameGrabber.GetFrameFromVideo(videofile, 0.2d);
image.Save(FramesPath + "1.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
}
catch (Exception d)
{
Label1.Text = d.Message;
}
}
using NReco.videoconverter
public void ExtractFromMP4(string videofile)
{
try
{
NReco.VideoConverter.FFMpegConverter ffm = new FFMpegConverter();
ConvertSettings cs = new ConvertSettings();
cs.SetVideoFrameSize(320, 240);
ffm.ConvertMedia(videofile, "avi", FramesPath + "new.mp4", "mp4", cs);
ffm.GetVideoThumbnail(videofile, FramesPath + "4.jpg", 2);
}
catch (Exception d)
{
Label1.Text = d.Message;
}
}