title: Cannot run aviread in octave -- how to install the video package?
body: <p>I am not able to use <code>aviread</code> in GNU Octave on Windows 10. Many sites tell me to install the video package, but I'm getting this error during installation.</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>octave:3&gt; pkg install -forge video
  rm: cannot remove `a.exe': Permission denied
  Package libavformat was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libavformat.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libavformat' found
  Package libavcodec was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libavcodec.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libavcodec' found
  Package libavutil was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libavutil.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libavutil' found
  Package libswscale was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libswscale.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libswscale' found
  configure: error: need libavformat from FFMpeg
  checking for gcc... gcc
  checking for C compiler default output file name... a.exe
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables... .exe
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking for mkoctfile... C:/Octave/Octave-4.0.0/bin/mkoctfile-4.0.0.exe
  retrieving compile and link flags from C:/Octave/Octave-4.0.0/bin/mkoctfile-4.0.0.exe
  checking for F77_FUNC... yes
  checking for SLList.h... no
  checking for lo_ieee_nan_value... yes
  checking for octave_idx_type... no
  checking for quit.h... no
  checking for octave... C:/Octave/Octave-4.0.0/bin/octave-4.0.0.exe
  checking for OCTAVE_VERSION in Octave... 4.0.0
  checking for octave_config_info('canonical_host_type') in Octave... i686-w64-mingw32
  checking for octave_config_info('SHLEXT') in Octave... dll
  checking whether ln -s works... no, using cp -p
  checking for ranlib... ranlib
  checking for strip... strip
  checking for pkg-config... pkg-config
  
  checking for av_write_frame in -lavformat... no
  
  pkg: error running the configure script for video.
  error: called from 'configure_make' in file C:\Octave\Octave-4.0.0\share\octave\4.0.0\m\pkg\private\configure_make.m near line 79, column 9
  octave:3&gt;
  </code></pre>
  
  
  
  <p>May I know how to install this package. Most sites say it is obsolete but none of them provide a solution to my problem. If not, is there any other way to read an AVI file (apart from converting the file itself)? </p>