PDA

View Full Version : AC3 to PCM Audio


fifer55
15th August 2007, 20:24
Hey everyone,

i have found many threads here to encode uncompressed audio to AC3, but nothing really on doing it the other way around.

basically what i am doing is creating a *.avs script that joins a QT file with a *.vob. i have successfully merged and outputted a video file, but having more trouble with the audio file.

source audio for QT is uncompressed 48Khz and for *.vob is *.ac3 48Khz (192Kbps-stereo).

so far, my *.avs script look like this:
-------------------
LoadVFAPIPlugin("C:\\QTReader\\QTReader.vfp", "QTReader")
movie0 = QTReader("V:\Mike test\ColorBars_AVSynth.mov")
movie0= movie0.AssumeFPS(29.97)
movie0 = movie0.FlipVertical().ConvertAudioTo24bit().ConvertToRGB24().Lanczos4Resize(720,480)


movie1=directshowsource("V:\Mike test\VIDEO_TS\VTS_01_2.VOB") + directshowsource("V:\Mike test\VIDEO_TS\VTS_01_3.VOB").ConvertAudioTo24bit()
movie1= movie1.ConvertToRGB24().Lanczos4Resize(720,480)
all=movie0 ++ movie1

return all
----------------------

i do understand that i can convert the audio using BeSweet to *.wav, but i was wondering if there a way to do it in *.avs.

any help would be greatly appreciated!

tebasuna51
16th August 2007, 03:04
What is the objective of:
.Audiochannels ==2
in the script?

Audiochannels is not a function, is a property

fifer55
16th August 2007, 03:43
hey tebasuna51,

oops, forgot to take out that version of syntax... had some guys messing around with it.

i guess its a noob mistake :( (blushing)...

any thoughts on my issue?

thanks

tebasuna51
16th August 2007, 11:21
The two parts works separately and have the same properties?

Maybe have diferent samplerate.