简体   繁体   中英

Get Frames from Video in c#

I am working on uploading a video using file upload control in MVC view and I am uploading a video from this file upload control.On the server side I want to get the frames/Images of video.I have to get the frame in byte but I can do it for the a single file but I am not sure about video file. I have googled a lot but did not get any perfect solution even I tried with the Framegrabber but it is also not working.

Can anyone help me how can i get frames from video.

Thanks

You can use Process.Start on the server side to create thumbnails from the video using FFMPEG, commands here .

The command line looks like:

ffmpeg -i input.flv -f image2 -vf "select='eq(pict_type,PICT_TYPE_I)'" -vsync vfr thumb%04d.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM