Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th April 2016, 21:12   #1  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
VapourSynth macOS Installer (Archive)

All in one installer has been scrapped for a basic one and separate downloads for each plugin which is available here. Instructions on how to build VapourSynth.framework can be found here.

Last edited by l33tmeatwad; 11th June 2018 at 19:27. Reason: Updated information
l33tmeatwad is online now   Reply With Quote
Old 28th April 2016, 22:44   #2  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 658
Interesting.

Just a note: you can delete all .la files. Nobody needs them.
jackoneill is offline   Reply With Quote
Old 28th April 2016, 23:03   #3  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
Setting Up VapourSynth.framework

Note: It is recommended that you either use macOS 10.11 or use the '-mmacosx-version-min=10.11' in "export CPPFLAGS=' for better distribution compatibility. VapourSynth and other tools will not work on 10.10 or older.

Install the latest version of Xcode from the App Store.
Open Xcode and accept the user agreement, then close it.
Open Terminal and install Brew:
Code:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Run the following command to install things:
Code:
brew install cmake ragel autogen automake wget

Create a working directory:
Code:
cd $HOME
mkdir .installs
cd .installs

Setup zlib
Code:
git clone https://github.com/madler/zlib
cd zlib
git checkout v1.2.11
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setting up Python
Code:
cd $HOME/.installs
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
tar xvfj Python-3.6.5.tar.xz
cd Python-3.6.5
export LDFLAGS='-L/Library/Frameworks/VapourSynth.framework/lib'
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include'
export PKG_CONFIG_PATH=/Library/Frameworks/VapourSynth.framework/lib/pkgconfig
./configure --prefix=/Library/Frameworks/VapourSynth.framework  --enable-shared
make
sudo make install

Setup Cython
Code:
cd $HOME/.installs
wget https://files.pythonhosted.org/packages/b3/ae/971d3b936a7ad10e65cb7672356cff156000c5132cf406cb0f4d7a980fd3/Cython-0.28.3.tar.gz
tar xvzf Cython-0.28.3.tar.gz 
cd Cython-0.28.3
sudo /Library/Frameworks/VapourSynth.framework/bin/python3.6 setup.py install

Setup libpng
Code:
cd $HOME/.installs
wget ftp://ftp-osl.osuosl.org/pub/libpng/src/libpng16/libpng-1.6.34.tar.xz
tar xvzf libpng-1.6.34.tar.xz
cd libpng-1.6.34
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup JPEG v9c
Code:
cd $HOME/.installs
wget http://www.ijg.org/files/jpegsrc.v9c.tar.gz
tar xvzf jpegsrc.v9c.tar.gz
cd jpeg-9c
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup libtiff
Code:
cd $HOME/.installs
wget http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz
tar xvzf tiff-4.0.9.tar.gz
cd tiff-4.0.9
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup GIFLIB
Code:
cd $HOME/.installs
git clone git://git.code.sf.net/p/giflib/code giflib-code
cd giflib
git checkout 5.1.4
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup LIBWEBP
Code:
cd $HOME/.installs
git clone https://chromium.googlesource.com/webm/libwebp
cd libwebp
git checkout v0.6.1
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup OpenJPEG
Code:
cd $HOME/.installs
git clone https://github.com/uclouvain/openjpeg
cd openjpeg
git checkout v2.3.0
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/Library/Frameworks/VapourSynth.framework/ .
make
sudo make install

Setup Leptonica
Code:
cd $HOME/.installs
wget http://www.leptonica.com/source/leptonica-1.76.0.tar.gz
tar xvzf leptonica-1.76.0.tar.gz
cd leptonica-1.76.0
export LDFLAGS='-L/Library/Frameworks/VapourSynth.framework/lib' CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include'
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install
Setup Tesseract
Code:
cd $HOME/.installs
unset CPPFLAGS
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include/leptonica'
git clone https://github.com/tesseract-ocr/tesseract
cd tesseract
git checkout 3.05.01
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup FreeType
Code:
cd $HOME/.installs
unset CPPFLAGS
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include'
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.gz
tar xvzf freetype-2.9.1.tar.gz
cd freetype-2.9.1
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup Harfbuzz
Code:
cd $HOME/.installs
unset CPPFLAGS
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include'
git clone https://github.com/harfbuzz/harfbuzz
cd harfbuzz
git checkout 1.8.0
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup FreeType with HarfBuzz Support
Code:
cd $HOME/.installs/freetype-2.9.1
unset CPPFLAGS
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include/hafbuzz'
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup FriBidi
Code:
cd $HOME/.installs
unset CPPFLAGS
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include'
git clone https://github.com/fribidi/fribidi
cd fribidi
git checkout v1.0.4
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup LIBASS
Code:
cd $HOME/.installs
unset CPPFLAGS
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include/freetype2 -I/Library/Frameworks/VapourSynth.framework/include/harfbuzz'
git clone https://github.com/libass/libass
cd libass
git checkout 0.13.6
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup ImageMagick
Code:
cd $HOME/.installs
unset CPPFLAGS
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include'
git clone https://github.com/ImageMagick/ImageMagick
cd ImageMagick
git checkout 7.0.5-10
./configure --prefix=/Library/Frameworks/VapourSynth.framework --without-xml
make
sudo make install

Setup ZIMG
Code:
cd $HOME/.installs
git clone https://github.com/sekrit-twc/zimg
cd zimg
git checkout release-2.7.4
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Setup FFmpeg
Code:
cd $HOME/.installs
git clone https://github.com/ffmpeg/ffmpeg
git checkout n4.0
cd ffmpeg
./autogen.sh
./configure --toolchain=msvc --enable-gpl --enable-version3 --disable-encoders --disable-programs \
 --disable-filters --disable-network --disable-doc --disable-avdevice \
 --disable-postproc --disable-avfilter --enable-avresample
make
sudo make install
Setup VapourSynth
Code:
cd $HOME/.installs
export PYTHON=/Library/Frameworks/VapourSynth.framework/bin/python3
git clone https://github.com/vapoursynth/vapoursynth
cd vapoursynth
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.framework
make
sudo make install

Details for Plugins

Most plugins will be compiled similarly to the dependencies above, here's an example using FFMS2:
Code:
git clone https://github.com/FFMS/ffms2
cd ffms2
export LDFLAGS='-L/Library/Frameworks/VapourSynth.framework/lib'
export CPPFLAGS='-I/Library/Frameworks/VapourSynth.framework/include'
export PKG_CONFIG_PATH=/Library/Frameworks/VapourSynth.framework/lib/pkgconfig
./autogen.sh
./configure --prefix=/Library/Frameworks/VapourSynth.Framework
make
sudo make install
Plugins will usually have autogen.sh or just a configure file, however a few others will use cmake or waf. With the current setup the autoloading path for VapourSynth is /Library/Frameworks/VapourSynth.framework/lib/vapoursynth, but most plugins will actually install to the /Library/Frameworks/VapourSynth.framework/lib instead. Often this path path will be hard coded into the plugin ID, so it will need to be altered so the plugin can be moved to the correct path for autoloading. Browse to the path the plugin was installed to and use the following command to check the plugin (ex. ffms2):
Code:
otool -L libffms2.4.dylib
You will then see something similar to this:
Code:
/Library/Frameworks/VapourSynth.framework/libffms2.4.dylib (compatibility version 5.0.0, current version 5.0.0)
/Library/Frameworks/VapourSynth.framework/lib/libavformat.58.dylib (compatibility version 58.0.0, current version 58.12.100)
/Library/Frameworks/VapourSynth.framework/lib/libavcodec.58.dylib (compatibility version 58.0.0, current version 58.18.100)
/Library/Frameworks/VapourSynth.framework/lib/libswscale.5.dylib (compatibility version 5.0.0, current version 5.1.100)
/Library/Frameworks/VapourSynth.framework/lib/libavutil.56.dylib (compatibility version 56.0.0, current version 56.14.100)
/Library/Frameworks/VapourSynth.framework/lib/libavresample.4.dylib (compatibility version 4.0.0, current version 4.0.0)
/Library/Frameworks/VapourSynth.framework/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
If the plugin has the full path on the first line containing it's own filename, use the following command to change it:
Code:
sudo install_name_tool -id "libffms2.4.dylib" libffms2.4.dylib
NOTE: You can also use this opportunity to change the name of the plugin itself by changing the id to what you want it to be.


Additionally, the location of dependencies can be changed to be relative to the location of the actual plugin. For example, ffms2 looks for it's dependency zlib in /Library/Frameworks/VapourSynth.framework/lib, that location can be change to look for it one directory above where libffms2.4.dylib is located (assuming you place libffms2.4.dylib in the VapourSynth autoloading folder) by using a variable called @loader_path. Here is an example of how that would work:
Code:
sudo install_name_tool -change /Library/Frameworks/VapourSynth.framework/lib/libz.1.dylib @loader_path/../libz.1.dylib libffms2.4.dylib
Using otool to check files and install_name_tool to change the id and dependency paths to be relative instead of absolute will allow the modified plugins to work no matter what path vapoursynth is installed to as long as the plugin is located in the autoload directory. This same method can be used on the dependencies as well to allow for distribution of those with the plugins.

Last edited by l33tmeatwad; 14th June 2018 at 16:09.
l33tmeatwad is online now   Reply With Quote
Old 13th May 2016, 08:32   #4  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 658
Poke.
jackoneill is offline   Reply With Quote
Old 13th May 2016, 22:19   #5  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
Quote:
Originally Posted by jackoneill View Post
The reason I haven't added nnedi3 yet is that it always crashes in OSX (on all my test machines at least). I haven't had a chance to look back at it and report the errors I'm getting so they can be fixed.
l33tmeatwad is online now   Reply With Quote
Old 14th May 2016, 20:10   #6  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,282
Thank you for your work!
It would be cool to have yadifmod.
kolak is offline   Reply With Quote
Old 18th May 2016, 16:43   #7  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
I plan to make an update early next month, been busy with other projects that need to be completed soon. Just wanted to give an update on this so it doesn't seem abandoned.
l33tmeatwad is online now   Reply With Quote
Old 27th May 2016, 08:43   #8  |  Link
chainik_svp
Registered User
 
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 221
it'd be really nice to see this on the main VS site

brew still contains R29 only...
__________________
SVPflow motion interpolation
chainik_svp is offline   Reply With Quote
Old 2nd June 2016, 19:45   #9  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
Did a quick update to get this installer up to r33 and added Yadifmod. I plan to add more later, but I am caught up working on another project at the moment.
l33tmeatwad is online now   Reply With Quote
Old 22nd August 2016, 22:33   #10  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,282
New Mvtools would be great as they keep changing.
kolak is offline   Reply With Quote
Old 3rd September 2016, 12:07   #11  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,561
How to properly deinstall the all the stuff the installer installs?
__________________
Hybrid here in the forum, homepage
Selur is online now   Reply With Quote
Old 18th September 2016, 06:45   #12  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,561
Are there any updates planned for this? Any hope for an uninstall feature?
__________________
Hybrid here in the forum, homepage
Selur is online now   Reply With Quote
Old 1st January 2017, 03:22   #13  |  Link
asoksevil
Registered User
 
Join Date: Jul 2009
Posts: 4
Quote:
Originally Posted by Selur View Post
Are there any updates planned for this? Any hope for an uninstall feature?
I guess just removing the files manually would do it.

This doesn't work on Mavericks, any workarounds?

Thanks!
asoksevil is offline   Reply With Quote
Old 3rd January 2017, 15:59   #14  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
Quote:
Originally Posted by Selur View Post
Are there any updates planned for this? Any hope for an uninstall feature?
Yeah, I've just been distracted by Pokemon Go since it came out, lol...as for uninstalling, I can look into that. Almost all the files are isolated to /Library/Frameworks/VapourSynth.framework and /Library/Frameworks/Python.framework, so deleting those will take care of most of it. Other files are:

/usr/local/bin/vspipe (symbolic link)
/usr/local/lib/libvapoursynth-script.dylib (symbolic link)
/usr/local/lib/libvapoursynth.dylib (symbolic link)
l33tmeatwad is online now   Reply With Quote
Old 31st January 2017, 22:55   #15  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
To avoid having to store zip files of sources for every release (considering some of the files will not change) I have created a share that can be browsed with a text file detailing which versions came with each release.
l33tmeatwad is online now   Reply With Quote
Old 6th March 2017, 22:35   #16  |  Link
houdini69
Registered User
 
Join Date: Oct 2009
Posts: 4
Unable to install VapourSynth OSX Installer

I've tried to install VapourSynth OSX Installer on my OS X 10.11.6 El Capitan system but I've got an blank alert window with just "Close" and nothing else
Attached Images
 
houdini69 is offline   Reply With Quote
Old 11th March 2017, 15:36   #17  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 442
why not install throught brew?
__________________
[AUR] Vapoursynth Stuff
sl1pkn07 is offline   Reply With Quote
Old 12th March 2017, 18:57   #18  |  Link
houdini69
Registered User
 
Join Date: Oct 2009
Posts: 4
Because I don't know how to install properly plugins
houdini69 is offline   Reply With Quote
Old 18th April 2017, 15:56   #19  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 135
I apologize for the lack of updates to this project, but between the VapourSynth Editor problem on OSX and working on a FFMPEG gui (that support VapourSynth script encoding) I haven't been able to get back to it. Once I have ironed those other problems out I will get back to updating and maintaining this project (because without a way to preview the scripts on recent updates it's kind of useless to the target for this install package). All of the current issues I have been made aware of I will look into for any future updates.
l33tmeatwad is online now   Reply With Quote
Old 18th April 2017, 18:15   #20  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,561
Why not use Vapoursynth Editor for preview?
__________________
Hybrid here in the forum, homepage
Selur is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.