Log in

View Full Version : Import Avisynth scripts in a new Blender build!


tin3tin
12th August 2008, 20:23
Apparently there is a Blender (http://www.blender.org/) build out now which supports avisynth in the Sequence Editor (http://wiki.blender.org/index.php/Manual/Video_Sequence_Editing). You can find it here! (http://graphicall.org/builds/builds/showbuild.php?action=show&id=751)

And using Avisynth to import AVC in Blender here! (http://www.openfilmmaking.com/wiki/index.php?title=BlenderAVC)

Spamagnet: This is for the Sequence Editor. AviSynth is a frame server tool which allows you to process video on the fly. For example, let's say you have an HDV or AVC camcorder which records 24p, but encodes it as 60i. You might be able to pull this video into Blender directly, but there is no way to filter it ("telecide") to get the nice clean 24 fps video stream. You then have two options:

Process and transcode the whole video to an intermediate format. In order to avoid quality degradation, you'd want to use lossless compression, so your hard disk usage will be huge.

Create an AviSynth script which processes/transcodes the video on the fly.

Basically, AviSynth lets you trade CPU for hard disk space. (The CPU load issue can be addressed by using the new proxy feature in Blender.)

Even better, the creation of AviSynth scripts (and proxies) can be automated. I am working on a project to handle this for AVC video; I'll post details when I get it to a usable state.

More Info here. (http://blenderartists.org/forum/showthread.php?t=129000)

Blue_MiSfit
12th August 2008, 20:40
Very cool!

If I still had my 3d modeling chops I'd be chomping at the bit!

~MiSfit

tin3tin
12th August 2008, 20:57
Check out this manual (http://wiki.blender.org/index.php/Manual/Using_VSE).

Blender can now be used as a NLE for Avisynth!

mikeytown2
12th August 2008, 22:24
Nice find tin3tin! This is quite an amazing development!
Found another link with more "behind the scene" details
http://www.blender.org/forum/viewtopic.php?p=68387


What would be very cool is if Blender used Avisynth code for some of the editing that it does. This at it's current stage is highly unlikely since they use FFMPEG to load avs files. I wonder if they knew about AVFS (http://www.turtlewar.org/avfs/)? Either way, another win for Open Source! BTW does this mean that FFMPEG on linux can read avs files? Looks like I need to kill some time with blender and see what it's NLE is capable of in the near future.

EDIT: Windows only as of right now

tin3tin
12th August 2008, 22:48
TheNut has added a lua processing script reader (http://www.nutty.ca/blog/index.htm?service=htm/&page=luaBlender.htm&title=luaBlender)in the plugin folder - which can ex. fade in/out.

I guess if he can do this it is possible(for him?) to add Avisynth scripts for processing as plugins too?

For Blender newbees (as myself). Here are a few tips:

When opening the new Avisynth Blender build, in the menu-bar at the top Change the drop down SR2: - Model to SR4: - Sequence and the Sequence window will open.
Left click in the Sequence window to activate it(the one with the the yellow filmstrip in the lower left cornor).
Hit 'space' for a menu. Select 'Movie' to import(avisynth) video.
Move the mouse around untill the strip/clip is visible in the sequencer window and left click it to release it.
Right clicking on a clip will allow you to move the clip around and right clicking in the beginning/end will allow you to change the in/out point by scrubbing.
Adding plugins is done by selecting(RMB) clip(s), 'Space' for menu, select Plugin, load a plugin from the plugin folder and place the new strip above the selected clip to affect it.
To change the properties of a clip/plugin/transition: Click the yellow filmstrip icon(Sequencer buttons) in the lowest window(The one with 'Panels').

jemmel
28th November 2008, 23:34
all versions (2.46, 2.47, 2.48a) of those avisynth-enabled blender builds crash when loading any avs.script?
athlon x2, windows xp, latest avisynth 2.58 beta (2.57 crashed too).
any suggestions on why this happens to me?
avisynth scripts in blender would save my life!!!

mikeytown2
29th November 2008, 08:37
option B for loading avs in blender is to use AVFS
http://www.turtlewar.org/avfs/

jemmel
29th November 2008, 12:30
thanks for the tip, mikeytown2!
however, there is a problem with avfs and blender!
i cannot open a AVFS uncompressed rgb32 file! "the selected file is not a movie or FFMPEG-support is not compiled in"
it seems that blender can only open the uncompressed YUV format.
but rgb32 format is needed for its alpha-channel.