Video package: Difference between revisions

From Octave
Jump to navigation Jump to search
m (Remove redundant Category:Packages.)
 
(4 intermediate revisions by 3 users not shown)
Line 31: Line 31:
== On Windows ==
== On Windows ==


=== mxe-octave 4.0.1-rc3 ===
The MXE builds >= 4.0.1-rc3 already includes the ffmpeg libs so video should run out of the box.
You could try octave 4.0.1-rc3 from http://alpha.gnu.org/gnu/octave/ which is in testing - it has the ffmpeg libraries already in it, with the previous
version of video package, which could be updated with


<code>
[[Category:Octave Forge]]
pkg -verbose -forge install video
</code>
 
=== using official mxe-build and ffmpeg binaries ===
 
This assumes that you've installed Octave from the official MXE build from https://ftp.gnu.org/gnu/octave/windows/ to the default path.
 
Download the ffmpeg binaries for windows from https://ffmpeg.zeranoe.com/builds/. You need the "32-bit Dev" and "32-bit Shared" archive. These instructions were tested with
 
* ffmpeg-20160105-git-68eb208-win32-shared.7z
* ffmpeg-20160105-git-68eb208-win32-dev.7z
 
Now
 
* Extract the bin/*.dll from ffmpeg-20160105-git-68eb208-win32-shared.7z to C:\Octave\Octave-4.0.0\bin
* Extract include/* from ffmpeg-20160105-git-68eb208-win32-dev.7z to C:\Octave\Octave-4.0.0\include (You should now, for example, see C:\Octave\Octave-4.0.0\include\libavutil\version.h)
* Extract lib/* from ffmpeg-20160105-git-68eb208-win32-dev.7z to C:\Octave\Octave-4.0.0\lib
 
octave-video 1.2.2 tries to find avresample which isn't included in the builds. Either patch configure.ac (remove the AC_CHECK_LIB avresample), rerun ./bootstrap and repack or download this [http://www.tech-chat.de/files/video-1.2.2.tar.gz patched version] and install with
 
<code>
pkg -verbose install video-1.2.2.tar.gz
</code>
 
Load it before any usage:
<code>
pkg load video
</code>
 
[[Category:Octave-Forge]]

Latest revision as of 11:42, 10 June 2019

The video package is part of the Octave Forge project and tries to implement the video functions from matlab. It should compile with ffmpeg and libav.

Installation[edit]

on Debian Jessie using "pkg -forge"[edit]

sudo apt-get install libavutil-dev libavformat-dev libswscale-dev libavcodec-dev

On the Octave prompt:

>> pkg install -forge video

on CentOS Linux release 7.2.1511 (Core) with GNU Octave Version 3.8.2[edit]

yum install octave-devel
yum install libvorbis  yasm freetype zlib bzip2 faac lame speex libvpx libogg  libtheora  x264 XviD openjpeg15 opencore-amr
wget https://libav.org/releases/libav-11.4.tar.gz
tar xzf libav-11.4.tar.gz
cd libav-11.4
./configure --enable-pic
make -j 4

as root:

make install

On the Octave prompt:

>> pkg install -forge video

On Windows[edit]

The MXE builds >= 4.0.1-rc3 already includes the ffmpeg libs so video should run out of the box.