Log in

View Full Version : Pro-Res File with 7.1 audio and want to downmix to 2ch stereo


EncodeThis
6th July 2009, 20:33
I have a pro-res file with 7.1 audio and would like to downmix the audio to a 2ch stereo file. Does anyone have any suggestions?

Inspector.Gadget
6th July 2009, 20:44
What container format and what audio format?

EncodeThis
6th July 2009, 20:54
The audio is 7.1 wav. The container is .mov

SeeMoreDigital
6th July 2009, 22:31
The audio is 7.1 wav. The container is .movYou can do what you require quite easily with QuickTime7 Pro.

Without QuickTime7 Pro the most difficult task will be to extract the audio stream from the .MOV container.

EncodeThis
6th July 2009, 22:38
Here is the catch. I can not use QT pro 7. I need to put this into an .avs script so I can encode in Rhozet to an .mp4 with stereo .aac audio.

Blue_MiSfit
6th July 2009, 22:41
Use QTInput along with soundout like this:

QTInput("movie.mov")


Rhozet should have a 2ch downmix. If not, you can use soundout or something else to export a WAV and then downmix with eac3to.

~MiSfit

EncodeThis
6th July 2009, 22:46
That's what I kinda figured. Thanks for the help.

tebasuna51
7th July 2009, 02:01
Here is the catch. I can not use QT pro 7. I need to put this into an .avs script so I can encode in Rhozet to an .mp4 with stereo .aac audio.

If you need an avs script to make the downmix you can convert first your 7.1 to 5.1:
v = QTInput("movie.mov")
# 7.1 Channels L,R,C,LFE,BL,BR,SL,SR -> 5.1
fr = GetChannel(v, 1, 2, 3, 4)
blr = GetChannel(v, 5, 6)
slr = GetChannel(v, 7, 8)
bs = MixAudio(blr, slr, 0.5, 0.5)
a = MergeChannels(fr, bs)

and after select one of this 6 methods to downmix to stereo:
# 5.1 Channels L,R,C,LFE,SL,SR -> Stereo
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.3694, 0.2612)
blr = GetChannel(a, 5, 6)
MixAudio(lrc, blr, 1.0, 0.3694)

# 5.1 Channels L,R,C,LFE,SL,SR -> dpl
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.3205, 0.2265)
bl = GetChannel(a, 5)
br = GetChannel(a, 6)
sl = MixAudio(bl, br, 0.2265, 0.2265)
sr = MixAudio(bl, br, -0.2265, -0.2265)
blr = MergeChannels(sl, sr)
MixAudio(lrc, blr, 1.0, 1.0)

# 5.1 Channels L,R,C,LFE,SL,SR -> dpl II (recommended method)
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.3254, 0.2301)
bl = GetChannel(a, 5)
br = GetChannel(a, 6)
sl = MixAudio(bl, br, 0.2818, 0.1627)
sr = MixAudio(bl, br, -0.1627, -0.2818)
blr = MergeChannels(sl, sr)
MixAudio(lrc, blr, 1.0, 1.0)

# 5.1 Channels L,R,C,LFE,SL,SR -> Stereo + LFE
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3)
lfe = GetChannel(a, 4)
lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
mix = MergeChannels(lfc, lfc)
lrc = MixAudio(flr, mix, 0.2929, 1.0)
blr = GetChannel(a, 5, 6)
MixAudio(lrc, blr, 1.0, 0.2929)

# 5.1 Channels L,R,C,LFE,SL,SR -> dpl + LFE
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.2613, 0.1847)
lfe = GetChannel(a, 4, 4)
lrc = MixAudio(lrc, lfe, 1.0, 0.1847)
bl = GetChannel(a, 5)
br = GetChannel(a, 6)
sl = MixAudio(bl, br, 0.1847, 0.1847)
sr = MixAudio(bl, br, -0.1847, -0.1847)
blr = MergeChannels(sl, sr)
MixAudio(lrc, blr, 1.0, 1.0)

# 5.1 Channels L,R,C,LFE,SL,SR -> dpl II + LFE
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.2646, 0.1870)
lfe = GetChannel(a, 4, 4)
lrc = MixAudio(lrc, lfe, 1.0, 0.1870)
bl = GetChannel(a, 5)
br = GetChannel(a, 6)
sl = MixAudio(bl, br, 0.2291, 0.1323)
sr = MixAudio(bl, br, -0.1323, -0.2291)
blr = MergeChannels(sl, sr)
MixAudio(lrc, blr, 1.0, 1.0)