PDA

View Full Version : What acm is this?


Cococokie
5th May 2007, 12:06
Hi guys what audio codec do i need when this error comes out?
it's PCM...but weird it says converting to mp3/ac3 is not possible...why??

In GSpot:
PCM Audio
48000Hz 3840 kb/s tot (5 chnls)
No Codec Required

Error:
C:\Documents and Settings\Jerry Low\Desktop\fmptsr.avi::Audio 1
ACM Wrapper::Output

Media Type 0:
--------------------------
Audio: PCM 48000Hz 5ch 3840Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 10
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 5
nSamplesPerSec: 48000
nAvgBytesPerSec: 480000
nBlockAlign: 10
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 05 00 80 bb 00 00 00 53 07 00 0a 00 10 00 ....€»...S......
0010: 00 00 ..


Media Type 1:
--------------------------
Audio: PCM 44100Hz stereo 1411Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 44100
nAvgBytesPerSec: 176400
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 44 ac 00 00 10 b1 02 00 04 00 10 00 ....D¬...±......
0010: 00 00 ..


Media Type 2:
--------------------------
Audio: PCM 44100Hz mono 705Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 44100
nAvgBytesPerSec: 88200
nBlockAlign: 2
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 44 ac 00 00 88 58 01 00 02 00 10 00 ....D¬..ˆX......
0010: 00 00 ..


Media Type 3:
--------------------------
Audio: PCM 44100Hz stereo 705Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 44100
nAvgBytesPerSec: 88200
nBlockAlign: 2
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 44 ac 00 00 88 58 01 00 02 00 08 00 ....D¬..ˆX......
0010: 00 00 ..


Media Type 4:
--------------------------
Audio: PCM 44100Hz mono 352Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 44100
nAvgBytesPerSec: 44100
nBlockAlign: 1
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 44 ac 00 00 44 ac 00 00 01 00 08 00 ....D¬..D¬......
0010: 00 00 ..


Media Type 5:
--------------------------
Audio: PCM 22050Hz stereo 705Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 22050
nAvgBytesPerSec: 88200
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 22 56 00 00 88 58 01 00 04 00 10 00 ...."V..ˆX......
0010: 00 00 ..


Media Type 6:
--------------------------
Audio: PCM 22050Hz mono 352Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 22050
nAvgBytesPerSec: 44100
nBlockAlign: 2
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 22 56 00 00 44 ac 00 00 02 00 10 00 ...."V..D¬......
0010: 00 00 ..


Media Type 7:
--------------------------
Audio: PCM 22050Hz stereo 352Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 22050
nAvgBytesPerSec: 44100
nBlockAlign: 2
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 22 56 00 00 44 ac 00 00 02 00 08 00 ...."V..D¬......
0010: 00 00 ..


Media Type 8:
--------------------------
Audio: PCM 22050Hz mono 176Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 22050
nAvgBytesPerSec: 22050
nBlockAlign: 1
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 22 56 00 00 22 56 00 00 01 00 08 00 ...."V.."V......
0010: 00 00 ..


Media Type 9:
--------------------------
Audio: PCM 11025Hz stereo 352Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 11025
nAvgBytesPerSec: 44100
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 11 2b 00 00 44 ac 00 00 04 00 10 00 .....+..D¬......
0010: 00 00 ..


Media Type 10:
--------------------------
Audio: PCM 11025Hz mono 176Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 11025
nAvgBytesPerSec: 22050
nBlockAlign: 2
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 11 2b 00 00 22 56 00 00 02 00 10 00 .....+.."V......
0010: 00 00 ..


Media Type 11:
--------------------------
Audio: PCM 11025Hz stereo 176Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 11025
nAvgBytesPerSec: 22050
nBlockAlign: 2
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 11 2b 00 00 22 56 00 00 02 00 08 00 .....+.."V......
0010: 00 00 ..


Media Type 12:
--------------------------
Audio: PCM 11025Hz mono 88Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 11025
nAvgBytesPerSec: 11025
nBlockAlign: 1
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 11 2b 00 00 11 2b 00 00 01 00 08 00 .....+...+......
0010: 00 00 ..


Media Type 13:
--------------------------
Audio: PCM 8000Hz stereo 256Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 8000
nAvgBytesPerSec: 32000
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 40 1f 00 00 00 7d 00 00 04 00 10 00 ....@....}......
0010: 00 00 ..


Media Type 14:
--------------------------
Audio: PCM 8000Hz mono 128Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 8000
nAvgBytesPerSec: 16000
nBlockAlign: 2
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 40 1f 00 00 80 3e 00 00 02 00 10 00 ....@...€>......
0010: 00 00 ..


Media Type 15:
--------------------------
Audio: PCM 8000Hz stereo 128Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 8000
nAvgBytesPerSec: 16000
nBlockAlign: 2
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 40 1f 00 00 80 3e 00 00 02 00 08 00 ....@...€>......
0010: 00 00 ..


Media Type 16:
--------------------------
Audio: PCM 8000Hz mono 64Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 8000
nAvgBytesPerSec: 8000
nBlockAlign: 1
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 40 1f 00 00 40 1f 00 00 01 00 08 00 ....@...@.......
0010: 00 00 ..


Media Type 17:
--------------------------
Audio: PCM 48000Hz stereo 1536Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 48000
nAvgBytesPerSec: 192000
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 80 bb 00 00 00 ee 02 00 04 00 10 00 ....€»...î......
0010: 00 00 ..


Media Type 18:
--------------------------
Audio: PCM 48000Hz mono 768Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 48000
nAvgBytesPerSec: 96000
nBlockAlign: 2
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 80 bb 00 00 00 77 01 00 02 00 10 00 ....€»...w......
0010: 00 00 ..


Media Type 19:
--------------------------
Audio: PCM 48000Hz stereo 768Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 48000
nAvgBytesPerSec: 96000
nBlockAlign: 2
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 80 bb 00 00 00 77 01 00 02 00 08 00 ....€»...w......
0010: 00 00 ..


Media Type 20:
--------------------------
Audio: PCM 48000Hz mono 384Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 48000
nAvgBytesPerSec: 48000
nBlockAlign: 1
wBitsPerSample: 8
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 01 00 80 bb 00 00 80 bb 00 00 01 00 08 00 ....€»..€»......
0010: 00 00 ..


Media Type 21:
--------------------------
Audio: PCM 32000Hz stereo 1024Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 32000
nAvgBytesPerSec: 128000
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 00 7d 00 00 00 f4 01 00 04 00 10 00 .....}...ô......
0010: 00 00 ..

etc

buzzqw
5th May 2007, 12:25
multichannel wav

use ffdshow as decoder

BHH

Cococokie
6th May 2007, 07:51
How to do that? in the ffdshow audio decoder there is only MS ADPCM, IMA ADPCM, OTHER ADPCM which are nearest to PCM codec. set them libavcodec?

buzzqw
6th May 2007, 08:54
yep... set all to ffdshow

and btw but weird it says converting to mp3/ac3 is not possible
what are you using for converting ?

BHH

Cococokie
7th May 2007, 13:04
I try...^^

I'm using virtual dub, NCH wavepad, NCH switch..why ask?

buzzqw
7th May 2007, 14:29
.but weird it says converting to mp3/ac3 is not possible

with virtualdub you must downmixing the channels to 2 for encoding in mp3 (lame) or ac3 (ac3.acm i suppose)

i don't know other mentioned programs

BHH

Cococokie
7th May 2007, 15:48
it appears to have 5 channel in the PCM audio stream of that video file i am trying to convert.

How do i downmix it to 2 channels in virtual dub mod or 1.71?

setarip_old
7th May 2007, 15:55
Hi!How do i downmix it to 2 channels in virtual dub mod or 1.71?Although I don't think you can accomplish this with those tools, I believe you should be able to get it done with BeLight/BeSweet...

buzzqw
8th May 2007, 08:12
i am using virtualdub-mpeg (masterpiece of fcchandler)
and look here http://img300.imageshack.us/img300/905/vdubdownmixxt7.png (http://imageshack.us) ... is possible to downmix

BHH

Cococokie
8th May 2007, 11:55
I tried downmix it...but it's no good. some channel just seems to be washed away...

Please see this...i've uploaded the 5channel and a stereo one in zip.
click here to download. (http://www.filesend.net/download.php?f=fd3c748be3b6969377699d7fef48e76c)
http://www.filesend.net/download.php?f=fd3c748be3b6969377699d7fef48e76c

buzzqw
8th May 2007, 12:50
here the 2 file encoded with lame 3.97 128kbps ABR (j-stereo)

http://www.64k.it/andres/data/a/music_2ch_stereo_wav.mp3
http://www.64k.it/andres/data/a/music_5ch_wav.mp3

i have used automkv as encoder using soundout plugin

here the avs script

LoadPlugin("path\to\NicAudio.dll")
LoadPlugin("path\to\SoundOut.dll")
WavSource("C:\Programmi\PureBasic4\AutoMKV\test\Nuova cartella\music_5ch_wav.wav")
#Applying STEREO downmixing routines
function stereo(clip a)
{
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)
Return MixAudio(lrc, blr, 1.0, 0.2929)
}
#
6==Audiochannels() ? stereo() : last
Normalize()
Soundout(output="mp3",type=0,format=0,autoclose=true,mode=1,abrrate=128,showoutput=false,filename="audio.mp3")

you can open this script with virtualdub

BHH

tebasuna51
8th May 2007, 13:58
@buzzqw
Here there are only 5 channels and seems channel 3 is lfe (only low frequency), a Quadro + lfe, really strange.
With:
WavSource("G:\mu5ch.wav")
function stereo(clip a) {
flr = GetChannel(a, 1, 2)
lfe = GetChannel(a, 3, 3) # (1)
lrc = MixAudio(flr, lfe, 0.2929, 0.2071)
blr = GetChannel(a, 4, 5) # (2)
Return MixAudio(lrc, blr, 1.0, 0.2929)
}
#
stereo() # (3)
Normalize()
Soundout(output="mp3",type=0,format=0,autoclose=true,mode=1,abrrate=128,showoutput=false,filename="audio.mp3")
1) lfe duplicated to mix with fl and fr
2) Now bl, br are 4, 5
3) without 6==Audiochannels()

I obtain this mp3 (http://www.mytempdir.com/1321931), with better sound.

Cococokie
8th May 2007, 14:37
When i open the scipt with virtual dub it says there is no "Soundout function". So i open it with automkv that buzzqw suggest?

Great!! tebasuna's got the audio converted right!

PS: You guys know a lot on avisynth, teach me pls. ^^ any tutorial or guide u have created?
btw, what happen to dvd decrypter? how come the author created imgburn and stop developing dvd decrypter...?

tebasuna51
8th May 2007, 15:39
When i open the scipt with virtual dub it says there is no "Soundout function".

You need SoundOut.dll (http://forum.doom9.org/showthread.php?t=120025) in ...\AviSynth 2.5\plugins folder.

Cococokie
9th May 2007, 17:54
Thanks for the help buzzqw and tebasuna. Greatly appreciated.

cya

Cococokie
21st May 2007, 16:42
hi im back a little.

Is there any tutorial on avisynth or virtualdub on down-mixing 6 channel ac3 to 2 channel mp3 stereo?

tebasuna51
21st May 2007, 19:27
Is there any tutorial on avisynth or virtualdub on down-mixing 6 channel ac3 to 2 channel mp3 stereo?
I don't know.
Here are some ideas, first mathematics formulas with channel values:

FL' = FL + 0.707 x C + SL
FR' = FR + 0.707 x C + SR

Each stereo channel is the Front channel plus half Center and plus the Surround. Half Center is 0.707 instead 0.5 because the acustic power is the square of the amplitude then (0.7 x 0.7) + (0.7 x 0.7) = 0.5 + 0.5 = 1.

To avoid overflows the audio signal can't exceed '1' then we need attenuate before add to guarantee this:

FL' = 0.369 x FL + 0.262 x C + 0.369 x SL
FR' = 0.369 x FR + 0.262 x C + 0.369 x SR

Now, even if all channels have a peak at same time (0.369 + 0.262 + 0.369 = 1) don't overflow.

- And LFE ?. Dolby don't recommend mix this channel, but everybody is free to do. Adding half LFE to each channel and attenuating:

FL' = 0.293 x FL + 0.207 x C + 0.207 x LFE + 0.293 x SL
FR' = 0.293 x FR + 0.207 x C + 0.207 x LFE + 0.293 x SR

- There are also other downmix kind, the Dolby ProLogic (dpl) and the Dolby ProLogic II (dpl2). If you have an audio equipment with Dolby ProLogic decoder capabilities you can restore 4 channels (dpl) or 5 channels (dpl2) from your stereo signal with special mix. Theese mixes are compatible with stereo only players.

For instance, if you play the next mix, with PowerDvd in your PC, you can recover the original channels (more or less):

FL' = 0.325 x FL + 0.230 x C + 0.282 x SL + 0.163 x SR
FR' = 0.325 x FR + 0.230 x C - 0.163 x SL - 0.282 x SR


- The next question is implement theese formulas in AviSynth. You can go to http://avisynth.org/mediawiki/Internal_filters#Audio_filters
and know:

GetChannel()
MixAudio()
MergeChannels()
Normalize()

Here are some options to downmix 6 to 2 channels:
function Dmix6Stereo(clip a)
{
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.3694, 0.2612)
blr = GetChannel(a, 5, 6)
return MixAudio(lrc, blr, 1.0, 0.3694)
}
function Dmix6Dpl(clip a)
{
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)
return MixAudio(lrc, blr, 1.0, 1.0)
}
function Dmix6Dpl2(clip a)
{
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)
return MixAudio(lrc, blr, 1.0, 1.0)
}
function Dmix6StereoLfe(clip a)
{
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)
return MixAudio(lrc, blr, 1.0, 0.2929)
}
function Dmix6StereoLfe2(clip a)
{
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.2929, 0.2071)
lfe = GetChannel(a, 4, 4)
lrc = MixAudio(lrc, lfe, 1.0, 0.2071)
blr = GetChannel(a, 5, 6)
return MixAudio(lrc, blr, 1.0, 0.2929)
}
function Dmix6DplLfe(clip a)
{
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)
return MixAudio(lrc, blr, 1.0, 1.0)
}
function Dmix6Dpl2Lfe(clip a)
{
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)
return MixAudio(lrc, blr, 1.0, 1.0)
return MergeChannels(l, r)
}

- After a downmix is recommended use the AviSynth filter Normalize() because the audio level can be low after the attenuations to prevent the overflow.