# macOS
:::success
Supported OS: High Sierra, Mojave, Catalina and Big Sur.
:::
## Installation
1. Disable Gatekeeper.
Open the Terminal.app (Applications/Utilities)
<img src="https://64.media.tumblr.com/6be67c4eda216dca4902d212f066051f/dbded08ecbaa0b5b-4e/s1280x1920/e0abd5103a5a20b2a16c3b6c8c05a4ce169f971b.png">
Type or paste in the following command and press Enter:
```python
sudo spctl --master-disable
```
:::warning
Re-enable gatekeeper again with this command:
<br>
```python
sudo spctl --master-enable
```
I do this after running vapoursynth at least one time.
:::
<img src="https://64.media.tumblr.com/12ac7c6e6be7b4cdf400e3b641bae76a/50ac1d0bc75adef6-1f/s1280x1920/e19ce509d4f0af977d7f1ea4f6ed6c83758ee581.png">
It will ask for your password (because we are using the sudo command).
<img src="https://64.media.tumblr.com/9436e7117ff55662ea7bf3c28aed71ea/50ac1d0bc75adef6-08/s1280x1920/8c7a1a1c94b6918072ee8d4c50e30685bb035920.png">
Enter your macOS password (you won't see the characters!)
2. Download VapourSynth: [here](https://drive.google.com/drive/folders/1ebp2esUXejfcqZ_SdF3Ufzp3_VRuP5q3?usp=sharing)
3. Install Miniconda.pkg.
<img src="https://64.media.tumblr.com/ec27188860349f957c95a4d9408cf3d2/c474ea30a1fcc7e0-78/s1280x1920/54b5bb94c68788a7c637a6e25b9dac0c29fe63d0.png">
Select "Install for me only"
<img src="https://64.media.tumblr.com/da8cbb74122739aa226468ac73e584d4/c474ea30a1fcc7e0-d2/s1280x1920/830955bf757e03e5f233dbe7946fe4895c3ea45e.png">
4. Open the Terminal.app (Applications/Utilities)
<img src="https://64.media.tumblr.com/6be67c4eda216dca4902d212f066051f/dbded08ecbaa0b5b-4e/s1280x1920/e0abd5103a5a20b2a16c3b6c8c05a4ce169f971b.png">
Type or paste in the following command and press Enter:
```python
conda install -c conda-forge imagemagick
```
<img src="https://64.media.tumblr.com/acd994b587384cc1a6f036361ebc8f15/dbded08ecbaa0b5b-4d/s1280x1920/07b33200578058b7df97bce0777872c80f812ef6.png">
When asked if you want to proceed, type in "y" and press Enter:
<img src="https://64.media.tumblr.com/f1cebc1c01df57f28b891bb534075de0/dbded08ecbaa0b5b-47/s1280x1920/dbf30fa6c14b5a9881f014c13c85e8b48ace1ba8.png">
Let it run, it will take some time.
5. Install VapourSynth.pkg
<img src="https://64.media.tumblr.com/faac5ffefc84610a87c2a3d98270d0ee/aafde5ce8f468b41-95/s1280x1920/6ea33200dd84c45cf49b523b6daa9c8d8bbcd251.png">
<img src="https://64.media.tumblr.com/3d44b3e908852a7406b780781ffff957/aafde5ce8f468b41-55/s1280x1920/c7e70f007472e61970ce4dd44826c45edacf4d58.png">
This will install a folder in your desktop with some shortcuts.
6. Install everything else.
Move the video_edit folder to /Library/Frameworks/VapourSynth.framework (Finder -> Go -> Go to the Folder)
<img src="https://64.media.tumblr.com/de682ab95691f1bcc70bbb549e05a52f/092973b218d1a4be-c9/s1280x1920/33202e1bf07cf00100eb545b09e1e25747d887b6.png">
<img src="https://64.media.tumblr.com/edfd9d53d90a30343e244e23464f76b1/092973b218d1a4be-17/s1280x1920/9a35da56a7b51fb41c38d284907d140a2419037b.png">
<img src="https://64.media.tumblr.com/bf713017a4d4947c4a119e796d5703b8/092973b218d1a4be-da/s1280x1920/0e35648ec05f2e1af756b7f7fb72793c9d781b25.png">
Create a shortcut to video_edit and place it in the vapoursynth folder on your desktop. (the alias name has to be "video_edit").
Right Click -> Make Alias
<img src="https://64.media.tumblr.com/6ba90d6c2fea20597dbec9c1ce210b54/da09c1f9bd73d3d5-97/s1280x1920/e3ee9b172007cdac99ae072e1d49b3db77573c3b.png">
Then copy the alias and paste it here:
<img src="https://64.media.tumblr.com/f816decd0f24981f050ffe5d4e1b00c1/da09c1f9bd73d3d5-7c/s1280x1920/94e2fdca969e002c302d987492e289f811e0993d.png">
Move the ffmpeg folder to /Library/Frameworks/VapourSynth.framework/bin
<img src="https://64.media.tumblr.com/2bcc004c9a1d9e836a9f64d4338a9ffd/7b1f0f68c5f1e6cf-a0/s1280x1920/ffcdcc29fc2cc754e4f0a4f476e1a2cd214b73b1.png">
<img src="https://64.media.tumblr.com/7ae89366441f21a6bf2e71b8b6f3cfcd/7b1f0f68c5f1e6cf-5c/s1280x1920/dc11e677fcaaf80d8738821b38e91b93282fe99a.png">
<img src="https://64.media.tumblr.com/57a69561392af5736167a27dae84da0f/7b1f0f68c5f1e6cf-e9/s1280x1920/1ed3b49b0f8ab36a914f45a7e2e5e909257a7da1.png">
Move all the plugins to "VapourSynth/Add Plugins" and the scripts to "VapourSynth/Add Scripts"
<img src="https://64.media.tumblr.com/ef3cc3c42f6d17669db2106a387b6416/b35476f2fd2a77b0-30/s1280x1920/f068ec1e541ae653cb5d0810534b065b9f6a1476.png">
<img src="https://64.media.tumblr.com/48c974a7fcf50c74f6842d540e0bd561/b35476f2fd2a77b0-3f/s1280x1920/eebbe59549ae546c9e841d2496f137f85df5a77c.png">
<img src="https://64.media.tumblr.com/4336e3a1ef77338e0f34ca1c43781c1a/b35476f2fd2a77b0-df/s1280x1920/18d86a20c0635ab7b63638ea21f72acc4fb882c7.png">
<img src="https://64.media.tumblr.com/1576776479f47f4adf1b20e0256d211f/b35476f2fd2a77b0-e4/s1280x1920/6881a6de0e75e6bcf3fe054c6f61c7c805ee5ece.png">
Move vsedit.config to ~/Library/Preferences
<img src="https://64.media.tumblr.com/50590fa7ee5e3fd482efc5033e83dd15/cb9895dfce051af1-1f/s1280x1920/11d6733c13c6914fb9801540b18062fc6f041323.png">
<img src="https://64.media.tumblr.com/7f8360b6b0b4f02769f42c7b611f24e1/cb9895dfce051af1-59/s1280x1920/2b6b0b96bd64fd40ee906ccaa71056013f8a0fee.png">
Move the nnedi3 folder to /usr/local/share (if the share folder is missing, go to usr/local and create it)
<img src="https://64.media.tumblr.com/d56c985f4911b0c0be6f2465b02c7ee0/a77d5642ab900763-e6/s1280x1920/b2d4c7b0381172e7fa4773f06344e2303e6dd4b2.png">
<img src="https://64.media.tumblr.com/7e2cfd487deb14ab184e8b594c341985/a77d5642ab900763-48/s1280x1920/1c0ace9d81d8f1c49c4c9235079acd427148b0bb.png">
<img src="https://64.media.tumblr.com/c398c8415e2c70620c40b6f8be1e7ebb/a77d5642ab900763-30/s1280x1920/b0d5c6b83e5c878f18748ab0287dc30620714129.png">
Add VapourSynth.app to the dock.
<img src="https://64.media.tumblr.com/0fa7c7aaa8174b21e072192bc12533d6/b939a8b6378520ee-e3/s1280x1920/ed424e9272912522ad138bd8957d41f5af5da77b.png">
## Usage
Drag any video onto VapourSynth.app
A window will appear asking you to enter the timestamp you want:
<img src="https://64.media.tumblr.com/a33b439a191df14fe46e2dac99c721f3/e5d510c7261b268f-f6/s640x960/1b4a3a18fd2e1ab95ffae262e8a53dbae6bb79d2.png">
Then it will ask you to enter the time you want to extract (let's say 4 seconds from the timestamp we entered before):
<img src="https://64.media.tumblr.com/b60f47e2e19b1266388b7341ddee6b35/e5d510c7261b268f-79/s640x960/0276a1df0c696cd2c9bc06a97e846ae84fa9443a.png">
After that, the resizer and vapoursynth editor will open.
First thing you have to do is open script.vpy from the editor.
<img src="https://64.media.tumblr.com/950f95a56032925ead7a811f99437cf9/e5d510c7261b268f-3b/s1280x1920/1e41807b292d9703a32c8922cf12d918427a91e7.png">
<img src="https://64.media.tumblr.com/613020a849809edd7a5fb28d94fe9861/e5d510c7261b268f-9a/s1280x1920/52db64e0240f90505cb1e2a504f0169880739e6d.png">
If you are low in RAM, enable the core.max_cache_size line. This is done by removing the hash # at the beginning of the line.
<img src="https://64.media.tumblr.com/5137a15784331574418ade32385dfc34/e5d510c7261b268f-58/s1280x1920/d728cd586bf416d2584ca58d80d37eab78bc1fce.png">
Now, the resizer is self-explanatory. I won't explain much here (just don't use vcfreq, finesharp is better)
<img src="https://64.media.tumblr.com/08267125986c42fd4c1d392a00181a4d/e5d510c7261b268f-26/s2048x3072/481bc6a0894555feb914d91788e5ed20401ea0c8.png">
Copy the code and paste it here:
<img src="https://64.media.tumblr.com/f74813d32f0efb666111ff7e07b9321e/85696d058db6ed3c-17/s1280x1920/fa5bc3f5d5a65257b2e36cd1750d4d02fc48eed0.png">
Now what I do first is disable all filters except the essential ones (like debilinear to resize and the crop one)
If I run them all at the same time, my computer suffers a lot xD
<img src="https://64.media.tumblr.com/4da998d5abcfa4c10d7d4fe41bc620f1/85696d058db6ed3c-f6/s1280x1920/a5c7ec66a91b895644f63967cdb50cfaba9afd58.png">
If you are running on a potato you can't really do much :cry:
Preview your script and select the frames you want to extract for your gif.
<img src="https://64.media.tumblr.com/06c62295f89a7b33aee57c6c42281911/85696d058db6ed3c-ae/s1280x1920/9623388b7c87b8163955bf1ca91197e520453367.png">
I'll extract frames 20 to 45. You'll have to add these numbers in the Trim parameters.
<img src="https://64.media.tumblr.com/d22c8d0a9d6905e1229d74027c835894/85696d058db6ed3c-ba/s1280x1920/ca9b813d774d95bc40073001c0328036911aab25.png">
Now, enable all filters again and save the script. If you want to see the output, preview the script, but don't run it in real time.
<img src="https://64.media.tumblr.com/887a4dba985bcbc89771e016d3a6d4db/85696d058db6ed3c-35/s1280x1920/985b76b911b234bd951c6523740a0e000b3f126f.png">
**Important**: check the script before encoding (editor -> Script Tab -> Check Script). Errors will show up here. If no errors are found, then you will see this message:
<img src="https://64.media.tumblr.com/9f67093d6b23cda107fe17be6ee97137/d914f6ed35b4408a-06/s1280x1920/0a5ee65eac3268a9afa533a4ef45391d0ca8ca5b.png">
To get the output, we can use makepsd or the encode feature inside vsedit.
## Encoding
### makepsd
This is the best since we get the output in .psd format.
After saving the script, go to video_edit and double click on "makepsd"
<img src="https://64.media.tumblr.com/39a0bf58206b766f6e4b3df067d351c1/d914f6ed35b4408a-a9/s1280x1920/e8b9429da244bddd030f0a85ac7d14ab48707891.png">
You'll see a gear on top of your screen. Wait for it to finish.
It will save the .psd in /output
<img src="https://64.media.tumblr.com/7e6fa99380558ba935c74d0b8117f550/d914f6ed35b4408a-65/s1280x1920/78b0cd6ff1cd9efffdfdbd36a93f090729869060.png">
### vsedit "Encode video"
Editor -> Script Tab -> Encode video
You have two presets (you can add more tho): rawvideo and png sequence.
<img src="https://64.media.tumblr.com/09f31f24f244baede69c9a08b0be2e35/b756975badbd1697-16/s1280x1920/687fab5ece9ca0755bc8e181a5dbfee491a90e7d.png">
Make sure the Header is always Y4M.
<img src="https://64.media.tumblr.com/6eb7a49ad46c7672ea24ab6c47cf2d54/b756975badbd1697-4e/s1280x1920/ef4b0bc3dee01950af3f56b55b10e6459b1ad2ec.png">
Click on start to begin.
After finishing encoding, you can import the video in PhotoShop.
<img src="https://64.media.tumblr.com/8bac60324aceb03ddd1d69ff9e625ae6/b756975badbd1697-96/s1280x1920/2dc4fbef81131b124d5bd7f54ecf1be2eb54a736.png">