VirtualDub-MOD Scripting - LAME MP3 CBR 320 parameter
Hello. I wrote a small script on VirtualDub-MOD 1.5.10.2 build 2542:
Code:
VirtualDub.Open("d:\\video\\01.avs",0,0); http://www.digitalfaq.com/archives/error.gif The problem is in this line of the script: VirtualDub.stream[0].SetCompression(0x0055,48000,2,16,40000, x); Accordingly to VdubHelp: Quote:
What is Block Align and which value should it be ? :D |
any1 ? :D
|
Simply process to a conversion manually and go in the "File" menu and choose "Save process settings" to save the vcf file. Then open it in a texteditor and you will have the parameter value you need.
|
@thanks DialHot :!: :!:
Code:
VirtualDub.RemoveInputStreams(); SetCompression(int wFormatTag, int nSamplesPerSec, int nChannels, int wBitsPerSample, int nAvgBytesPerSec, int nBlockAlign, int cbSize, string ex_data) So Block Align (whom is integer) must be 1 :D |
You're welcome.
Personally I never tried to understand the parameters for vdubmod, I always proceed like this :) |
Quote:
Blockalign means the size of ONE audioframe (mono, stereo or multich.). I dont know in case of mp3, here it "could" be that its a byte aligned order as its compressed so maybe 1 (1byte) is correct, just test your encoding and you'll hear. In case of an uncompressed PCM Wave the blockalign will be calculated as followed. BitsPersample/8*Channels So 16bit/8*2channels = 4 Means in a 16bit wav one sample uses 2bytes (16bit) and in case of stereo we got 2 channels, so 2*2bytes = 4 bytes |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.