I want to extract images from an avi file with MathMF
from https://github.com/SimonWoods/MathMF.
(please see here the answer of Simon)
A test avi file (named "20181122_test.avi") can be downloaded here: https://drive.google.com/open?id=1ek87v3mLXRHAv51jW4967vQLIO-Z-Any
Let's consider only two lines:
Line 1. Needs["MathMF
"];` (to load the package)
This works and the package is loaded.
Now I want to read the number of images in the file:
Line 2. numberImages = Length@Import["20181122_test.avi", "Frames"]
That produces an error:
If I don't load the MathMF package BEFORE, then I get the correct result:
numberImages =
Length@Import["20181122_test.avi", "Frames"]
5
The funny thing is NOW I can again execute Needs["MathMF
"]` and AFTER that I can read the number of images in the file WITHOUT error.
Can somebody reproduce the error? What is different between Mathematica 11.3 and 11.1.1 and how can I execute with Mathematica 11.3 first line 1 and then line 2 without error?
My OS is Windows 10 Pro 64 bit and I am working with Mathematica 11.3.0.0
This error does not occur with Mathematica 11.1.1
Needs["MediaTools`"]
and then?MediaTools`Private`$MF*
there appear to be functions for frame-by-frame reading and writing. Unfortunately I don't have spare time to look into it any further right now. $\endgroup$