Error in VideoWriter (video Package)

Problem description

When I try to execute the official tutorial (see Function Reference: VideoWriter), I get the following error:
error: '__ffmpeg_defines__' undefined near line 109 column 27
error: called from
VideoWriter at line 109 column 25

I need to perform a video from some frame, how can I overcome the problem?

My system

  • OS: Windows 10 Pro
  • Octave version: Version 5.2.0
  • Installation method: e.g. Downloaded and installed “octave-5.2.0-w64-installer.exe” from https://www.octave.org/download.html

The demo for VideoWriter is for version 2.0.0 of the video package (released 2020-02-24), which is shipped with Octave 6.1.0 first. Octave 5.2.0 contains the video package in version 1.2.4 by default and doesn’t contain the VideoWriter function.

Best upgrade to Octave 6.1.0 or upgrade the video package

pkg install -forge video
1 Like

Hi Sike,
thanks for your replay!!
I upgrade Octave to 6.1.0 (from .exe file on my Windows 10 Pro).
Then I installed video package as you mention, and then loaded as usual for all packages. Now it works properly!!!
Thanks so much.
Love Octave!