<p>Forget about output filters.</p>

<p>Use <a href="https://ffmpeg.org/" rel="nofollow noreferrer">FFmpeg</a>  (Linux, Mac, <a href="https://ffmpeg.zeranoe.com/builds/" rel="nofollow noreferrer">Windows</a>) with this simple command</p>

<pre><code>ffmpeg -i your_avs_file.avs  output.mp4
</code></pre>

<p>(or <code>output.avi</code>, <code>output.mkv</code>, ...),</p>

<p>or any conversion program which accepts <code>.avs</code> files as input, e. g. <a href="https://www.any-video-converter.com/products-freeware/" rel="nofollow noreferrer">Any Video Converter Free</a> (for Mac and Windows).</p>

<hr>

<p><em>Note 1:</em></p>

<p>The Windows link points to the site for downloading Zeranoe's FFmpeg build. Unpack the downloaded file and use it — no installation is needed, perhaps only adding the path to <code>ffmpeg.exe</code> into your <code>PATH</code> environment variable.</p>

<p><em>Note 2:</em></p>

<p>If you want build FFmpeg by yourself, don't forget add <code>--enable-avisynth</code> option.</p>

<p><em>Note 3:</em></p>

<p>You may directly play back your AviSynth script files (.avs) with some Media Players, e.g. with Media Player Classic.</p>

CC BY-SA 4.0
2019-12-22T21:13:11.650Z
I followed these steps and after the usual `ffmpeg` boilerplate, I get `Unknown error occurred` and no other information.
emonigma
CC BY-SA 4.0
2019-12-20T21:12:13.177Z
2019-12-21T21:55:38.527Z
2019-12-21T21:55:38.527Z
MarianD
<p>I am just starting on AviSynth for video production. My understanding is that AviSynth only does frameserving and not file export, but several <a href="http://avisynth.nl/index.php/TWriteAVI#Export_Filters" rel="nofollow noreferrer">export filters</a> are available. <code>TWriteAVI</code> seems the tool for the job but the <a href="http://www.mediafire.com/download/84csi0174ettu5l/TWriteAVI_dll_v2.03-20160603.zip" rel="nofollow noreferrer">plugin link</a> is no longer available on the host.</p>

<p>The title links <a href="http://forum.doom9.org/showthread.php?t=172837" rel="nofollow noreferrer">to a forum</a> with what looks like VB code:</p>

<pre><code>#######

ForceProcessAVI(clip c,bool "Debug"=True)
 Force Process clip c, ie read from first to last frame, for TWriteAVI writes the AVI file (Video + Audio) without having to play clip.
...
</code></pre>

<p>I didn't see how to turn this code into an executable, as I mostly use Unix and Windows is for AviSynth only.</p>

<p>How can I hook this code into AviSynth, or how can I export an <code>.avs</code> text file to a movie file?</p>

<export>
How to export AviSynth project to video file?
emonigma
# How to export AviSynth project to video file?

(Asked by: username_0 on 2019-12-20)

I am just starting on AviSynth for video production. My understanding is that AviSynth only does frameserving and not file export, but several export filters are available. TWriteAVI seems the tool for the job but the plugin link is no longer available on the host.
The title links to a forum with what looks like VB code:
#######

ForceProcessAVI(clip c,bool "Debug"=True)
 Force Process clip c, ie read from first to last frame, for TWriteAVI writes the AVI file (Video + Audio) without having to play clip.
...

I didn't see how to turn this code into an executable, as I mostly use Unix and Windows is for AviSynth only.
How can I hook this code into AviSynth, or how can I export an .avs text file to a movie file?

**Tags:** export


---

## 1 answers

### Answer by username_1 on 2019-12-20. Score: 2

Forget about output filters.
Use FFmpeg  (Linux, Mac, Windows) with this simple command
ffmpeg -i your_avs_file.avs  output.mp4

(or output.avi, output.mkv, ...),
or any conversion program which accepts .avs files as input, e. g. Any Video Converter Free (for Mac and Windows).

Note 1:
The Windows link points to the site for downloading Zeranoe's FFmpeg build. Unpack the downloaded file and use it — no installation is needed, perhaps only adding the path to ffmpeg.exe into your PATH environment variable.
Note 2:
If you want build FFmpeg by yourself, don't forget add --enable-avisynth option.
Note 3:
You may directly play back your AviSynth script files (.avs) with some Media Players, e.g. with Media Player Classic.

> **Comments:**
> **username_0**: I followed these steps and after the usual `ffmpeg` boilerplate, I get `Unknown error occurred` and no other information.  

---

