Extract Frames from Video C#

后端 未结 3 1636
暖寄归人
暖寄归人 2021-01-31 00:43

I\'m trying to make an app that use the camera to record a video and process the images of the video. Here is what I want. First, my app records a 10 second video with Torch. Se

3条回答
  •  既然无缘
    2021-01-31 01:06

    Use ffmpeg and install Accord.Video.FFMPEG

    using (var vFReader = new VideoFileReader())
    {
        vFReader.Open("video.mp4");
        for (int i = 0; i < vFReader.FrameCount; i++)
        {
            Bitmap bmpBaseOriginal = vFReader.ReadVideoFrame();
        }
        vFReader.Close();
    }
    

提交回复
热议问题