So I'm trying to write a simple Sylia script to compress avi files with VirtualDub. It gets stuck on the line
VirtualDub.audio.SetCompression(0x0055,2,0,8000,1) ;
It gives an error message saying "Overloaded method SetCompression(int, int, int, int, int) not found". I'm not sure why this is, but my guess is that I need to provide the other two arguments, cbData and data (as described here). Problem is, I'm not sure what those are supposed to be. The page at the link says:
And I'm not sure precisely what that means. Can somebody please help me interpret it?These fields are present when using an audio compressor with
private data, opaque to VirtualDub:
cbData: Size of data in bytes
data: MIME BASE64 encoded data string
Usually, you will want to derive these fields by querying the compressor
or looking at job scripts VirtualDub saves, because audio compressors
tend to only accept specific values. Some, but not all, of the private
data formats are documented in MMREG.H in the Win32 Platform SDK.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
Why don't you just configure the compression you want from the GUI, save the processing settings, then look at the resulting script. Copy the compression settings from that script.
-
Because I wasn't aware I could do that. But I will try it. Thank you for the suggestion, it sounds like it will work.
Similar Threads
-
The script VirtualDub.subset.AddRange
By griha09 in forum ProgrammingReplies: 0Last Post: 24th Jul 2015, 00:36 -
What avisynth script to play a .VOB file in Virtualdub?
By brassplyer in forum Video ConversionReplies: 8Last Post: 4th Jun 2014, 02:45 -
Avisynth error when loading a script in virtualdub, please help
By auto7890 in forum EditingReplies: 10Last Post: 28th Nov 2013, 19:48 -
Importing Cineform avi in avisynth script in to Virtualdub
By malleson in forum Video ConversionReplies: 13Last Post: 18th Oct 2012, 16:45 -
Errors compressing Audio using VirtualDub
By Shockro in forum Newbie / General discussionsReplies: 5Last Post: 13th Jul 2012, 23:40