Log in

View Full Version : Using Avisynth downmixes my DTS sound with AC3 filter


MalickT
10th January 2012, 00:03
Im using Avisynth to play 3D SBS movies to red-blue Anaglyph using this code:


video2d = DirectshowSource("E:\3DSBS.mkv")
c = ConvertToRGB32(video2d)
w = c.width()/2
h = c.height()/2
LeftRight3DToRCAnaglyph(c)


Im using the latest AC3 filter for sound playback but using this code downmixes the sound and I think it converts from 5.1 to 2.0 channel. Is there a way to use this script so that it only effects video not sound?

poisondeathray
10th January 2012, 04:35
Im using Avisynth to play 3D SBS movies to red-blue Anaglyph using this code:


video2d = DirectshowSource("E:\3DSBS.mkv")
c = ConvertToRGB32(video2d)
w = c.width()/2
h = c.height()/2
LeftRight3DToRCAnaglyph(c)


Im using the latest AC3 filter for sound playback but using this code downmixes the sound and I think it converts from 5.1 to 2.0 channel. Is there a way to use this script so that it only effects video not sound?

use audio=false for directshowsource:

video2d = DirectshowSource("E:\3DSBS.mkv" , audio=false)

sneaker_ger
10th January 2012, 06:01
use audio=false for directshowsource:

video2d = DirectshowSource("E:\3DSBS.mkv" , audio=false)

So instead of downmixing to stereo he will get no sound? :confused:

More like setting the correct output format in ac3filter, I'd say.

poisondeathray
10th January 2012, 06:07
So instead of downmixing to stereo he will get no sound? :confused:

More like setting the correct output format in ac3filter, I'd say.

Yes, I was addressing his original question.

Or he could use AudioDub() with different audio source filter , e.g. NICAC3Source , FFAudioSource, BassAudioSource() .... Who knows what other filters are in the directshow chain; this way you avoid directshow , at least for audio

MalickT
10th January 2012, 07:13
If I use Audio=false then there is no audio playback at all. I am using AC3filter with all my movies with 5.1 sound and custom audio settings where I have each audio channel tuned to my needs like slightly highly elevated bass channel, slightly elevated center channel. All my movies are with DTS sound and AC3 filter handles them well. If I watch 3DSBS.mkv without the script the AUDIO is exacly as I want it to be (no Anaglyph video) but as soon as I use this script AC3Filter sound level is about 50% lower and suddenly 2.0 on the speakers. Nothing has changed in the AC3filter settings while playback (it still shows 5.1 with my custom settings on each channel) but I can hear the difference. Please not that Im new to Avisynth (discovered it 3 days ago) Please advice...

poisondeathray
10th January 2012, 07:19
Render the mkv in graphstudio (or graphedit, or graphstudio plus) , check to see if there are any extraneous filters where it might be downmixing

Is it routed through ffdshow in anyway ? Are you seeing the audio icon pop up? I've seen sometimes AC3Filter connect to FFDShow, and FFDShow is set to downmix stereo in some strange setups

If you add Info() to the end of the script, does it report 5.1 or stereo ?




Or you can route it through another decoder other than AC3Filter in the script (but you lose custom audio AC3Filter settings)

MalickT
10th January 2012, 18:44
I drag the .avs script file into Windows Media Player Classic Home Cinema to play 3D SBS movies to Anaglyph. If i do the same to Graphedit it throws an error saying it can not open the file. However I noticed that Haalia Media Splitter logo is showing double when playing movie with the script file.

sneaker_ger
10th January 2012, 18:53
Poisondeathray meant opening the mkv in graphedit, not the avs.

MalickT
10th January 2012, 21:11
I see. Thats strange but Graphedit does not show that is using AC3Filter at all if I open the mkv in it. It only shows "some of the streams are unsupported" and when I click "OK" is shows that its using "Microsoft DTV-DVD Audio Decoder" and finaly "Default DirectSound Devide".

I remember now that I have edited WMP Classic Home Cinema to use AC3Filter in the "external filters" option. Maybe I have to use AC3Filter as default for all media players? How?

Im using Windows 7

BTW, Haali Media Splitter does not show double icons then opening mkv in graphedit, only if I open the scrips in WMP Classic Home Cinema it shows double icons and I have the sound problem...

poisondeathray
13th January 2012, 18:14
You'll have to sort out your directshow filters , it can be a PITA

I don't use ac3filter, but there should be some way of getting it to work, check the ac3filter forum

Or you can construct a directshow graph with graphedit