chaynik
23rd November 2008, 12:33
I'd like to utilize VirtualDub's command line/scripting options to do some batch processing. All I really need to do is open an AVISynth script, set the processing mode to "fast recompress" and export the AVI with the HuffYUV codec. This is my VCF file:
VirtualDub.Open("clip.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetCompression(HFYU);
VirtualDub.SaveAVI("clip_huffyuv.avi");
However, it doesn't work and VirtualDub returns with an error:
http://i38.tinypic.com/34xo08m.png
This leads me to believe that the variable for SetCompression is something other than the FourCC of the codec, which is what I assumed, as the VirtualDub scripting reference document is a bit confusing to me on this topic:
void SetCompression(int fccHandler, int keyrate, int quality, int datarate);
The argumentless syntax turns off video compression. The other two
syntaxes select a video compressor. Note that the fccHandler can be
specified as either an integer or a string. If the string is shorter
than 4 bytes, it is padded with spaces.
Any help would be greatly appreciated!
VirtualDub.Open("clip.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetCompression(HFYU);
VirtualDub.SaveAVI("clip_huffyuv.avi");
However, it doesn't work and VirtualDub returns with an error:
http://i38.tinypic.com/34xo08m.png
This leads me to believe that the variable for SetCompression is something other than the FourCC of the codec, which is what I assumed, as the VirtualDub scripting reference document is a bit confusing to me on this topic:
void SetCompression(int fccHandler, int keyrate, int quality, int datarate);
The argumentless syntax turns off video compression. The other two
syntaxes select a video compressor. Note that the fccHandler can be
specified as either an integer or a string. If the string is shorter
than 4 bytes, it is padded with spaces.
Any help would be greatly appreciated!