locked
How do I split a video file into multiple images in windows store app?

    Question

  • I have tried third party APIs/dll to split video file into multiple images/frames but it didn't work for store app I have quoted example code here as well.
    VideoFileReader reader = new VideoFileReader( );
    // open video file
    reader.Open( "test.avi" );
    // check some of its attributes
    
    // read 100 video frames out of it
    for ( int i = 0; i < 100; i++ )
    {
        Bitmap videoFrame = reader.ReadVideoFrame( );
        // process the frame somehow
        // ...
    
        // dispose the frame when it is no longer required
        videoFrame.Dispose( );
    }
    reader.Close( );
    problem with this code is "function reader.readVideoFrame() throws a Bitmap which is located under System.Drawing.dll and this dll isn't available for store apps development. Please help me with this. I'll be obliged.
    Wednesday, February 19, 2014 1:37 AM

Answers

  • You'll need to do this from C++ and use Media Foundation's Source Reader and Sink Writer

    I am not aware of any 3rd party components which do this for Windows Store apps, but it's possible one exists.

    --Rob

    Wednesday, February 19, 2014 1:59 AM
    Owner

All replies

  • You'll need to do this from C++ and use Media Foundation's Source Reader and Sink Writer

    I am not aware of any 3rd party components which do this for Windows Store apps, but it's possible one exists.

    --Rob

    Wednesday, February 19, 2014 1:59 AM
    Owner
  • Isn't there any way to do this in C#?
    Wednesday, February 19, 2014 1:25 PM