Log in

View Full Version : Problem with 7.1 to 5.1 with BeHappy


RRAH
28th October 2014, 11:06
Hello,
I want to downmix a 7.1 W64-File (32bit float) to 6 mono Wavs (32bit float) with BeHappy.

As Input I use the following AVS-Script:

# Downmix 7.1 to 5.1
RaWavSource("audio.w64")
fl = Getchannel(1)
fr = Getchannel(2)
fc = Getchannel(3)
lf = Getchannel(4)
bl = Getchannel(5)
br = Getchannel(6)
sl = Getchannel(7)
sr = Getchannel(8)
sul = Mixaudio(sl, bl, 1.0, 1.0)
sur = Mixaudio(sr, br, 1.0, 1.0)
Mergechannels(fl, fr, fc, lf, sul, sur)
Normalize()

BeHappy`s output is set to Wav Split @ Mono wav`s

Problem: The runtime of the output is only about half the runtime of the input.

What`s going wrong?

Thanks

tebasuna51
28th October 2014, 15:53
Please inform about AviSynth version and runtimes input and output.

RRAH
28th October 2014, 17:11
Please inform about AviSynth version and runtimes input and output.

AviSynth 2.6.0 ST 32-bit

Input: 02:16:24 Output: 01:29:15

tebasuna51
28th October 2014, 20:42
Seems a RaWavSource problem reading the w64 header. I need more time to solve the problem.

How do you create the w64 file? Maybe ffmpeg?

Work fine with RaWavSource("audio.wav") obtained with:

WavFix (http://forum.doom9.org/showthread.php?p=1624209#post1624209) audio.w64 audio.wav

EDIT:
To downmix 7.1 to 5.1 I recommend use AudioLimiter (http://forum.doom9.org/showthread.php?p=922027#post922027)

LoadPlugin("X:\your path\AudioLimiter.dll")
...
sul = Mixaudio(sl, bl, 1.0, 1.0).SoftClipperFromAudX(0.0)
sur = Mixaudio(sr, br, 1.0, 1.0).SoftClipperFromAudX(0.0)
Mergechannels(fl, fr, fc, lf, sul, sur)

without Normalize, because the volume of front channels can be reduced by a few peaks in sul-sur channels.
SoftClipperFromAudX only work to avoid clip in surround channels, most the times never or in very short samples.
The rest of channels remain unchanged.

RRAH
29th October 2014, 08:06
Thanks Tebasuna,

it works with WavFix and AudioLimiter.

Yes, the file was created with ffmpeg.