我不能夠在GNU八度使用aviread
在Windows 10,許多網站告訴我安裝視頻包,但在安裝過程中我得到這個錯誤。不能以八度音頻運行aviread - 如何安裝視頻包?
octave:3> 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>
我可以知道如何安裝該軟件包。大多數網站都說它已經過時,但它們都不能解決我的問題。如果沒有,是否有其他方式來讀取AVI文件(除了轉換文件本身)?
不錯的分析+1。如果我有時間,我認爲未來兩週內會有一個video-1.2.x版本。您可以克隆hg repo並在GNU/Linux上運行「make install」,但是在首先需要ffmpeg的窗口上運行。如果您使用的是GNU/Linux,則可以使用已包含ffmpeg目標的MXE進行構建。 – Andy
視頻1.2.1現在可以通過「pkg -forge」安裝在GNU/Linux上。對於Windows,您需要ffmpeg,它可以使用mxe-octave構建或下載二進制庫。 ffmpeg的開發文件位於:http://ffmpeg.zeranoe.com/builds/ – Andy
視頻1.2.2發佈。請參閱此處瞭解有關windoze的安裝說明http://wiki.octave.org/Video_package – Andy