Log in

View Full Version : Audio and video processing in the same script


aklendathu
17th February 2004, 11:21
This is more like a general question:

I'd like to know how to write a script for audio and video processing with AVISynth with one go. I've noticed by trial and (mostly :( ) error that audio processing can't be just placed anywhere in the script.

A generic script could look like:

----------------------------
AVISource(...)
WAVSource(...)
AudioDUB

Video processing commands (e.g., frame rate conversion, resizing)

Audio Processing commands (e.g., resampling, normalization)
-----------------------------

Is this the proper way ?

TIA.

stickboy
17th February 2004, 12:17
Originally posted by aklendathu
I've noticed by trial and (mostly :( ) error that audio processing can't be just placed anywhere in the script.What do you mean?

A generic script could look like:AVISource(...)
WAVSource(...)
AudioDUB

Video processing commands (e.g., frame rate conversion, resizing)

Audio Processing commands (e.g., resampling, normalization)Is this the proper way ?The first part should be:
video = AVISource(...)
audio = WAVSource(...)
AudioDub(video, audio)(You can name the video and audio variables however you want.)

Alternatively, you can skip variable names altogether:AudioDub(AVISource(...), WAVSource(...))