0

I'm trying to import frames from a video with the extension .avi, using this piece of Mathematica code:

Import["video.AVI", {"Frames", {5, 6}}]

But I get this error:

Cannot import data as videoformat.

What is the problem?

C. E.
  • 70,533
  • 6
  • 140
  • 264
faf
  • 91
  • 9
  • Have you tried:

    Import["video.AVI"] Import["video.AVI" ,"AVI"]

    What messages do you get?

    – Searke Apr 04 '16 at 15:47
  • @Searke Yes I did and I get an array of indices indicating each frame. – faf Apr 04 '16 at 15:52
  • And the examples for AVI importing in the documentation work for you? – Searke Apr 04 '16 at 15:59
  • @Searke No, it does not. That I don't get. The importing of frames doesn't work. – faf Apr 04 '16 at 16:03
  • In the documentation, It´s importing frames as a .avi file and then having them imported back. – faf Apr 04 '16 at 16:18
  • I'm not sure I have a good idea of how to debug this then. If none of the documentation examples work and you can't export an AVI file and then import it back... What OS are you using and what version of Mathematica? – Searke Apr 04 '16 at 17:47
  • @Searke OS Windows 7 Enterprise 32 bit - Mathematica 10.4 – faf Apr 04 '16 at 18:42
  • 1
    I would contact wolfram technical support (probably by email) if no one comes up with a suggestion. – Searke Apr 04 '16 at 20:01
  • In the documentation example is it exporting the movie okay, but failing to import it? – Simon Woods Apr 04 '16 at 20:07
  • 2
    http://community.wolfram.com/groups/-/m/t/385261?p_p_auth=5mj3jDt1 and http://mathematica.stackexchange.com/questions/161/importing-videos-in-mathematica may or may not be helpful. –  Apr 05 '16 at 02:00
  • @barrycarter Thanks. – faf Apr 05 '16 at 09:34
  • 1
    faf, If you are willing to go through the extra effort to install ffmpeg, then this package looks perfectly suited to the problem. – Jason B. Apr 06 '16 at 08:07

1 Answers1

2

I checked it with 64-bit OS and it worked. Apparently It only work in 64-bit version of windows (7).

faf
  • 91
  • 9