Rafael Ramos
Rafael Ramos

Reputation: 315

Is it possible to grab a snapshot from a previously recorded video on Windows Phone 7?

I'd like to know if it's possible to grab snapshots from previously recorded videos. Those videos are recorded in the app itself.

By the way, I'd like to grab the snapshot from a video file saved in IsolatedStorage without having to play the video.

Is it possible? If so, how can I do it?

Cheers, Rafael

Upvotes: 2

Views: 402

Answers (2)

Rafael Ramos
Rafael Ramos

Reputation: 315

I solved the problem by creating the thumbnail while recording the video (captureSource.CaptureImageAsync()). To do that, I used the same instance of the CaptureSource I'm using to record the video.

Upvotes: 0

Jeff Wilcox
Jeff Wilcox

Reputation: 6385

I am not aware of an official platform feature to do this. However, if the video file is within your app's isolated storage, you might be able to:

  • Send the video to a server to do the processing
  • Add codecs/C# code to your app to process the raw MPEG4 frames.
  • Try using WriteableBitmap to capture a specific frame when using the media element. Since most media is handled in hardware, however, it is possible that the frame will be blank.

Upvotes: 1

Related Questions