×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2014
    Posts
    2

    Split Video into Frames

    Is there any way to capture video (or use an existing video) and split off certain frames (say every other frame or every 3rd frame, whatever) into separate image files?

    I've seen some examples of converting a video into a byte array, but still not sure about using that to extract frames from to convert to images.

    Thanks for any assistance.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,771

    Re: Split Video into Frames

    If you provide links to those examples, it is a lot easier to comment what they do. Generally it is doubtful that WP would provide built-in, per-frame handler API-s for video files.
    There are at least two well-known, open source video handler code kits, FFMPEG (https://www.ffmpeg.org/) and VideoLAN (http://www.videolan.org/), while none of the two is ready-made for WP8, it should be possible to port some parts of them.

  3. #3
    Regular Contributor
    Join Date
    Oct 2013
    Location
    Pennsauken, NJ, USA
    Posts
    123

    Re: Split Video into Frames

    Your best bet is going to be to use Media Foundation. It is very similar to how Nokia Imaging works. You start with a source (the video file), then you apply transforms to it (split the audio and video, decode the audio, decode the video, etc), then you "render" it to a sink... something that will let you output it via video or audio speakers. The nice thing is that if your video plays already on Windows Phone, then all you have to do is write one Transform filter that will insert itself into the pipeline and copy frames to a separate sink.

    It's not going to be easy. You need to be comfortable with C++ and endure a lot of trial and error. But it's doable. And there are a few samples you can directly copy to start from. Media Extensions sample in the Universal Windows app samples (on Microsoft's site) is where you want to start.

    It's either that or find some paid solution. But I'm not sure they exist yet...

  4. #4
    Registered User
    Join Date
    Jun 2014
    Posts
    2

    Re: Split Video into Frames

    Thanks for the great replies. Although I can develop in C++, I'd just as soon move on to other projects I have on tap. It's too bad this functionality isn't OOTB for the Imaging SDK but I suspect that you can only do so much with the power available on these phones at this time. Maybe the IP cross licensing agreement Microsoft and Canon just did will broaden the base capabilities of the framework for stuff like this.

Similar Threads

  1. get video frames from video file
    By fecxelmin in forum Mobile Java General
    Replies: 5
    Last Post: 2010-04-28, 09:43
  2. How to access video frames
    By joey.enfield in forum Mobile Java General
    Replies: 0
    Last Post: 2010-04-21, 15:08
  3. Video Frames are getting Dropped
    By harsha.raju in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2009-05-12, 09:17
  4. getting frames from the video captured
    By weiyou in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2007-03-15, 17:23
  5. window frames (split views) in 9210
    By cdonald in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-07-22, 14:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×