Log in

View Full Version : Can you ask avisynth to encode to a specific codec?


pdbowling
8th November 2005, 19:55
Hi all.

I've got an avisynth script that does everything I need except the fact that Premiere Pro won't read it.

I've got Premiere using HuffYuv codec and wondered if I can tell avisynth to use this codec when encoding. I have Tons of drive space so I will be OK with the massive output. All my other files are huffyuv so I thought keeping the trend would be smart.

The script I have is pasted below. Does anyone know a function/command/available plugin/ that I can use in this script?

Thanks everyone.

# Created with Gordian Knot
#
# http://gknot.doom9.org

# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")


# SOURCE
mpeg2source("F:\Editing\pMillion2\VTS_01_1.d2v")


# DEINTERLACING (1)
FieldDeinterlace()

# CROPPING
crop(4,54,710,366)

# RESIZING
LanczosResize(640,368)

# DENOISING: choose one combination (or none)
Undot()

# BORDERS
AddBorders(0,60,0,60)

# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
SelectRangeEvery(280,14)

Scintilla
8th November 2005, 20:01
Do you have the Premiere Pro AVISynth import plugin (http://sourceforge.net/project/showfiles.php?group_id=105017) properly installed? If so, Premiere should take your AVISynth script without you having to encode it to an AVI at all.

mg262
8th November 2005, 20:03
The AVISynth output is always uncompressed video; you can open this up in any video editing program (e.g. VirtualDubMod) and save it in any format you like, such as HuffYUV. I assume Premiere should work as well. My guess is that the reason you have trouble opening the file is because you don't have a YV12 codec installed... there is information on fixing this in the YV12 FAQ on this forum.(But you could give us the error message...)

pdbowling
8th November 2005, 20:22
Wonderful you guys. My mistake was failing to mention that GKnot was using XVid to make my file. When I switched over to using VDubMod to call the avs file, I got every compression option in the GKnot Codec pack and then some. I should be A.OK now. THanks