Avisynth For Mac

вторник 18 февраляadmin

AVSMeter is a CLI (command line interface) tool which measures the speed/efficiency of Avisynth scripts and checks if Avisynth and its plugin sub-system are set up and working correctly. Documentation for usage and features is included in the distribution package.

AviSynth
Developer(s)AviSynth developers, Doom9 forum users
Stable releaser2772 (unofficial)[1] (December 20, 2018; 14 months ago) [±]
Preview release2.6.1 Alpha (May 17, 2016; 3 years ago) [±]
Repository
Written inC++
Operating systemWindows
Type
LicenseGNU GPL
Websitewww.avisynth.nl

AviSynth is a frameserver program for Microsoft Windows developed by Ben Rudiak-Gould, Edwin van Eggelen, Klaus Post, Richard Berg, Ian Brabham and others.[2] It is free software under GNU GPL license.

Scripting video editor[edit]

AviSynth acts as a non-linear video editor controlled entirely by scripting (without a GUI).[3] It emulates an AVI video file (or WAV audio file) as seen by the VFW downstream application, which is typically a media player, video editing software, or an encoder.[4]

AviSynth is built upon filters, which are much like DirectShow filters, but with a different binary interface. Filter capabilities include cropping, deinterlacing, inverse telecine, working with still images, doing basic color grading, reducing video noise, and many other things. AviSynth also performs traditional video editing tasks like cutting, trimming and re-sequencing segments.

For example, consider the script 'myAvi.avs' (just a plain text-file saved with the extension 'avs')

This script file can be opened in most media players (such as Windows Media Player). The program will play the video file 'myAvi.avi' cropped down to its top-left 320 pixels by 240 pixels and blurred by a small amount. Operations occur in sequential order, so the cropping occurs first, then the blurring.

Technically, AviSynth constructs a filter graph (like MicrosoftGraphEdit but with added capabilities),[5] controlled by scripts written in the AviSynth scripting language. Its functionality can be extended through the use of third-party filters known as plugins. An external plugin list is maintained at AviSynth Filter Collection.

AviSynth is a frameserver – the calling program requests audio/video frames and the script serves them. The calling program can call frames in any order, allowing it to pause, jump forward or backward etc., just as with a physical file.

AviSynth scripting language[edit]

The scripting language is a dataflow language:[5] a programming paradigm that describes a directed graph of the data flowing between operations. It lacks most procedural programming control structures,[6] but containing many features familiar to programmers, including variables, distinct datatypes, conditionals, and complex expressions.

The language works primarily with the audio/video clip as a built-in data type. The clip is a complex structure with many attributes such as width, height and duration.[7] The language also has several other more standard data types: int, float, bool and string.[8] These can be used to perform calculations, decisions, and write text such as subtitles to the video.

The script has a single return value, which is the audio and video 'seen' by the program running the script. This is normally the last line of the script, but a return statement may be inserted at any point.

'Hello World'[edit]

This example is a 'Hello World' program.

If the above text is entered into a text file with the .avs extension, it can be opened in Windows Media Player or any of the other programs in the list below, and a video containing the words 'Hello, world!' will be displayed.

Citrix receiver audio not working windows 10. The BlankClip function creates a new video. The parentheses at the end of the word are optional, since no arguments are being passed, but are given in this case to indicate it is a function and not a variable.

The Subtitle function draws the words 'Hello, world!' on top of the previously-created blank video.

In order to run MAC OS Applications that leverage the CUDA architecture of the NVIDIA GPU, you will need to download a runtime CUDA driver. There are specific CUDA versions depending on which driver/OSX version you are using with the Quadro FX 4800 for MAC. In order to run Mac OS X Applications that leverage the CUDA architecture of certain NVIDIA graphics cards, users will need to download and install the 7.5.29 driver for Mac located here. New in Release 346.03.15f09: Graphics driver updated for Mac OS X El Capitan 10.11.6 (15G1611). Nvidia quadro fx 4500 driver for mac. After 10.6.6 update, the NVIDIA.com driver update will likely not be necessary. Most drivers are provided through Apple via the Apple System Update. If you are running the latest version of Snow Leopard, you will have the latest driver for your graphics card. We then bought a nvidia quadro fx 4500, installed it (with the power cable), but it won't turn on. So i installed both cards, and plugged the monitors on the geforce 7300. When it started, i went to system info and found out that the mac os x recognizes the card as a g70 Board - q348-0 and not as a NVidia Quadro FX 4500.

Although both functions both accept many more arguments (for example, controlling the size and length of the blank video, and the positioning, font, and color of the subtitle), this example leaves them out; the functions use built-in default arguments.

Avisynth uses syntactic sugar that makes simple scripts far easier to write: an implicit variable called Last. Without implicit variables, the above script would have to be written like this:

or like this:

Explicit clip variables are normally only used for functions involving more than one clip:

Video-processing[edit]

This example takes an actual video, applies some simple processing, and returns it to the output.

The AviSource function is used to load an AVI video from a real location. To open other media types, the DirectShowSource function could be used instead. ReduceBy2 divides the vertical and horizontal size of the video in half, and GreyScale removes all color information.

AviSynth filters work in many RGB and YUVcolor spaces to allow all kinds of video input and output.[9] Certain functions only work on specific color spaces, requiring conversion – for example, most videos are distributed in a YUV color space, but most color correction is done in one of the RGB spaces. A color-correcting script might look like this:

User defined[edit]

The AviSynth scripting language allows for users to define their own functions.

This is an example of a function that allows you to dissolve from one clip to another without damaging interlacing lines.

AviSynth 3.0 and AviSynth+[edit]

AviSynth 3.0 was a complete rewrite of AviSynth 2.x, and aimed to overcome the limitations of AviSynth 2.x.Adding improvements such as an abstracted color space model, in which new color spaces (including two with 45-bit depth) could be supported through a plug-in mechanism, better cache management for better performance, and using Ruby rather than the homegrown language employed in current versions.[10]

AviSynth 3.0 was to be available for other operating systems than Windows, instead relying on GStreamer, extending support to platforms such as Linux, Mac OS X and BSD. Development has been stalled since August 2007.[10][11]

The most current and modern version of AviSynth today is AviSynth+, originally a fork of the official AviSynth 2.xx, but AviSynth+ has since gained widespread recognition and has become the go-to implementation. It rewrote most of the original AviSynth code, and introduced long-sought features such as 64-bit support, multithreading, deep color spaces, support for recent compilers, new scripting constructs (new control-flow constructs such as loops), and increased performance in many areas.[12] At the same time it retained 100% compatibility to the AviSynth 2.5/2.6 series, both for filters and host applications. At the time of writing (2019-05), it is also actively maintained.

AviSynth for non-Windows operating systems[edit]

AviSynth 2.xx may be used under operating systems other than Windows through the use of Wine. To work on scripts VirtualDub/VirtualDubMod can be used as on Windows. To interface between AviSynth under Wine and for example FFmpeg running on a Linux host, Avs2YUV can be used. Avs2YUV is a Windows command line program that is run under Wine and renders the output of an AviSynth script to stdout that is then piped to FFmpeg. Avs2YUV also supports writing to a named pipe.[13]

There is a Linux port of AviSynth called AvxSynth.[14]

AviSynth compatible programs[edit]

Program nameLicenseCommentsHomepage
Adobe Premiere ProProprietary, commercialVersions 6.0 and later (up to and including CS4) have an AviSynth import plugin available.Premiere AviSynth import plugin
Avanti GUIProprietary, freewareAvanti GUI is a free front-end for FFmpeg with the option to insert AviSynth as pre-processor.Avanti GUI
AvsPmodGPLAvsPmod is AviSynth script editor with builtin player, syntax highlighting and code autocompletion.AvsPmod
Cinema Craft EncoderProprietaryCinema Craft Encoder is a commercial MPEG-2 encoder that supports AviSynth input.Cinema Craft
FFmpegLGPL2.1+, GPL 2+FFmpeg compiled for windows can receive AviSynth inputinstructions
GOM PlayerProprietary, freeware, ad-supportedcan play .avs files
Media Player ClassicGPLMedia Player Classic is capable of loading and playing AviSynth scripts. The 32-bit version is needed.Media Player Classic
Microsoft Expression EncoderProprietary, freemiumMicrosoft Expression Encoder can import and transcode .avs files.
MPlayerGPLMPlayer can play .avs files
Nero Multimedia SuiteProprietary, commercialNero Showtime can play avs files
SUPERProprietary, freeware, ad-supportedSUPER (Simplified Universal Player, Encoder and Renderer) is freeware from eRightSoft that can encode most common video formats and has full AviSynth support.SUPER
TMPGEncShareware/freewareTMPGEnc is a free MPEG-1 and MPEG-2 encoder. TMPGEnc Plus and TMPGEnc Express are commercial versions of TMPGEnc that include enhanced functionality, as well as the removal of a 30-day restriction on MPEG-2 encoding present in TMPGEnc.Pegasys Inc.
Total video converter]Proprietary, trialwareTotal video converter has an AviSynth import plugin available.Total Video Converter
VirtualDubGPLVirtualDub is a widely used all-purpose video converter.VirtualDub
VirtualDubModGPLVirtualDubMod contains several AviSynth-specific features such as explicit support for AviSynth scripts, an AviSynth script editor, and more. However, it has not been updated since 2006 and contains many bugs.[15]VirtualDubMod
Windows Media PlayerProprietary, component of Windows / freewareWindows Media Player is capable of loading and playing AviSynth scripts, so it is a good choice for simple playback and testing. It may require some registry tweaks to get it working.Windows Media Home

In addition, several programs have now been created which accept only AviSynth scripts as input - thereby simplifying the programs themselves but giving users the full power of AviSynth for input.

There are also several batch encoding applications that tie together AviSynth with command line audio and video encoders and muxers to provide an all-in-one, modular, customizable video encoding application. MeGUI is an example of this kind of application.

Although AviSynth scripts are meant to be easily opened in simple text editing programs, there are several editors meant especially for editing AviSynth scripts such as AvsPMod.

See also[edit]

References[edit]

  1. ^'AviSynth+'. GitHub. 2018-12-20. Retrieved 2018-12-23.
  2. ^'Avisynth Copyright'. AviSynth Mediawiki. AviSynth Team. Retrieved 11 September 2015.
  3. ^'Main Page - Avisynth'. AviSynth Mediawiki. AviSynth Team. Retrieved 10 April 2013.
  4. ^'More about AviSynth - Avisynth'. AviSynth Wiki. AviSynth Team. Retrieved 10 April 2013.
  5. ^ ab'The Script Execution Model: The Filter Graph'. AviSynth Wiki. AviSynth Team. Retrieved 25 October 2019.
  6. ^'AviSynth syntax: control structures'. AviSynth Wiki. Avisynth Team. Retrieved Sep 21, 2014.
  7. ^'Clip Properties'. AviSynth Wiki. Avisynth Team. Retrieved Oct 27, 2019.
  8. ^'Script Variables'. AviSynth Wiki. Avisynth Team. Retrieved Sep 14, 2017.
  9. ^'Convert - Avisynth'. AviSynth Wiki. AviSynth Team. Retrieved 27 October 2019.
  10. ^ ab'Avisynth 3 - dead project?'. Doom9 Forum. Retrieved 2009-06-17.
  11. ^'AviSynth v3'. AviSynth Mediawiki. Retrieved 22 September 2019.
  12. ^'AviSynth+'. AviSynth Mediawiki. Retrieved 22 September 2019.
  13. ^'Avs2YUV'. Akuvian.org. Retrieved 2011-01-09.
  14. ^'avxsynth/avxsynth: Linux Port of Avisynth'. GitHub. Retrieved 2017-09-16.
  15. ^'SourceForge.net: VirtualDubMod: Bugs'. Retrieved 2009-12-03.

External links[edit]

  • AviSynth home page: (English)(Japanese)
Retrieved from 'https://en.wikipedia.org/w/index.php?title=AviSynth&oldid=934076234'