Search code examples
windowsimage-processingwindows-8windows-runtimemicrosoft-metro

frames to video - Image processing in windows 8 (WinRT only)


Is there a way to process frames from a stream(or image file or video file) and save the frames in encoded video file. There are options for saving frame to encoded image file but no such option for saving to video file using Windows.Graphics.Imaging namespace.

In mediaCapture.StartRecordToStreamAsync i can use StartRecordToStorageFileAsync to save stream from camera of video file to another video file. But there is no way to save frame by frame. Thanks for help!


Solution

  • The MediaCapture sample shows how to write a media foundation transform to do image processing on each frame. I suspect you can modify the MFT to save each sample frame to a queue and then write the images from the queue asyncronously.