API for C# for video to frames converstion -


aoa , hii

i searching api can used in c# , extract frames video.

i developing multimedia player need api.

anyone can send me link or helpful info this? ?

thanks in advance.

you can use ffmpeg wrapper aforge framework in aforge.video.ffmpeg assembly.

the class reading video frames videofilereader

here sample:

using system; using aforge.video.ffmpeg;  namespace tef {     static class program     {         private static void main()         {              var reader = new videofilereader();              reader.open(@"your video here");              // video attributes             console.writeline("width:  " + reader.width);             console.writeline("height: " + reader.height);             console.writeline("fps:    " + reader.framerate);             console.writeline("codec:  " + reader.codecname);              // read video frames             while (true)                 using (var videoframe = reader.readvideoframe())                 {                     if (videoframe == null)                         break;                      // process frame here                 }              reader.close();         }     } } 

you download package https://aforgeffmpeg.codeplex.com/


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -