Editing Video package

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:
 
== on Debian Jessie using "pkg -forge" ==
 
== on Debian Jessie using "pkg -forge" ==
  
sudo apt-get install libavutil-dev libavformat-dev libswscale-dev libavcodec-dev
+
<code>
 +
sudo apt-get install libavutil-dev libavformat-dev libswscale-dev libavcodec-dev
 +
</code>
  
 
On the Octave prompt:
 
On the Octave prompt:
  
>> pkg install -forge video
+
<code>
 +
>> pkg install -forge video
 +
</code>
  
== on CentOS Linux release 7.2.1511 (Core) with GNU Octave Version 3.8.2 ==
+
== On Windows ==
 +
 
 +
=== using official mxe-build and ffmpeg binaries ===
 +
 
 +
This is at the moment the preferred way for windows users and assumes that you've installed Octave from the official MXE build from https://ftp.gnu.org/gnu/octave/windows/ to the default path.
  
yum install octave-devel
+
Download the ffmpeg binaries for windows from ffmpeg.zeranoe.com/builds/. You need the "32-bit Dev" and "32-bit Shared" archive. These instructions were tested with
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:
+
* ffmpeg-20160105-git-68eb208-win32-shared.7z
 +
* ffmpeg-20160105-git-68eb208-win32-dev.7z
  
make install
+
Now
  
On the Octave prompt:
+
* 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
 +
 
 +
Download a patched version (no pkg_config check for ffmpeg and PixelFormat -> AVPixelFormat) from [[Media:video-1.2.1_win_ffmpeg.tar.gz]]
 +
 
 +
Compile and install from Octave with
 +
<code>
 +
pkg -verbose install video-1.2.1_win_ffmpeg.tar.gz
 +
</code>
  
>> pkg install -forge video
+
=== mxe-octave ===
 +
You can also use mxe-octave to include ffmpeg, there is already a target for it.
  
== On Windows ==
+
= Known bugs =
 +
* On MXE-Octave with ffmpeg crosscompiled "clear all" after using "addframe" causes a segmentation fault
  
The MXE builds >= 4.0.1-rc3 already includes the ffmpeg libs so video should run out of the box.
+
<code>
 +
Program received signal SIGSEGV, Segmentation fault.
 +
[Switching to Thread 1956.0xdd4]
 +
0x77d6e3c6 in ntdll!RtlInitUnicodeString () from C:\Windows\SysWOW64\ntdll.dll
 +
(gdb) bt
 +
#0 0x77d6e3c6 in ntdll!RtlInitUnicodeString ()
 +
  from C:\Windows\SysWOW64\ntdll.dll
 +
#1 0x19380000 in ?? ()
 +
#2  0x77d6e013 in ntdll!RtlFreeHeap () from C:\Windows\SysWOW64\ntdll.dll
 +
#3  0x778698cd in msvcrt!free () from C:\Windows\syswow64\msvcrt.dll
 +
#4  0x19380000 in ?? ()
 +
#5  0x1dc016c6 in AVHandler::~AVHandler (this=0x1da579a8,
 +
    __in_chrg=<optimized out>) at AVHandler.cc:99
 +
#6  0x1dc0384a in Avifile::~Avifile (this=0x1dac8570,
 +
    __in_chrg=<optimized out>) at oct-avifile.cc:149
 +
</code>
  
[[Category:Octave Forge]]
+
[[Category:Octave-Forge]]

Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: