Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Combining Multiple Audio Streams By Using Filter
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
eveellence
Posted: Dec 9 2012, 08:49 AM


Newbie


Group: Members
Posts: 1
Member No.: 35795
Joined: 9-December 12



I am new to virtualdub and will be using it to compress recorded video game footage that is recorded with dxtory. Dxtory records audio from my mic as one stream and the game in a different one. When I import the file into virtualdub, both streams show up. I need a simple way to combine these two streams into one, preferably having virtualdub do this while it compresses the video into an .mpeg video file.

I have played around with the audio filters and thought I found exactly what I was looking for- the 'mix' filter, of which the description reads: 'mixes two streams together linearly'. Great! So I built my diagram like the screenshot below shows, but the ironic part of this is that I must use an 'input' filter, and connect these two inputs into the mix filter, which outputs into the output filter. Ironically, the input filter only 'produces audio from current audio source' so.... since you cant have more than one audio source selected at any time, how on earth could the mix filter ever be used for my purpose, or any other??

I must be missing something, or perhaps the 'mix' filter is just still under development. Could anyone shed some light on what i'm doing wrong?

Screenshot of my filter setup: http://1.bp.blogspot.com/-dlMsfymagIk/UMRQ...c.+09+00.46.jpg
 
     Top
malky
Posted: Dec 9 2012, 06:07 PM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



I can't figure that out either;it does work if you have one stream with two channels that each have different content (like some VCD's).
You can probably do it using an Avisynth script in VirtualDub.

http://avisynth.org/mediawiki/MixAudio
 
    Top
phaeron
Posted: Dec 16 2012, 09:50 PM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



I'm afraid you're correct in that currently you can only bring in one input into the audio filter graph. There is some support for multiple sources, but it isn't piped all the way through yet.

The mix filter still has some other uses, such as downmixing split stereo channels into mono.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
2 replies since Dec 9 2012, 08:49 AM Track this topic | Email this topic | Print this topic

<< Back to VirtualDub Filters and Filter Development