Is there a way to extract a keyframe from flv file using C#?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Can’t find a direct way of doing this.
However you can use FFmpeg.exe in C#.
Here you can find a C# wrapper to easily use FFmpeg in C#:
http://www.ffmpeg-csharp.com/
The following code is taken from their sample page. Seems like you can extract frames and create thumbnails from them in the following manner:
Use
converter.AVPrope.Decode(-1)to decode the next frame andconverter.AVPrope.CurrentPictureto get the thumbnail picture. Useconverter.AVPrope.SaveCurrentFrame(fileName)to save current frame to the file fileName.Hope it helps.