PDA

View Full Version : Converting Mono to Stereo


Trippin
26th February 2005, 01:40
Hi, first thanks for all the help I've recieved just from everyones previous posts. I seem to have found an issue I can't resolve with search though. I'm using QuEnc to encode my old tapes to DVD. I'm attempting to convert the mono source into "Stereo". I based my script off of this post by sh0dan (http://forum.doom9.org/showthread.php?s=&threadid=51821&highlight=mono).

Here is the piece that does the audio conversion.


v1 = DirectShowSource("Honeymoon.avi",Seek=True).killaudio()
lf_ch = DirectShowSource("Honeymoon.avi",seek=True,Audio=True,Video=False).GetChannel(1)
rh_ch = DirectShowSource("Honeymoon.avi",seek=True,Audio=True,Video=False).GetChannel(1)
a1 = mergechannels(lf_ch, rh_ch)
AudioDub(v1, a1)

The problem I'm having is that although I can view and hear the video with VirtualDub, when I either try to use the Preview piece of AVSEdit or put the script name in QuEnc, those two programs close immediatly. No error, they just close.

The only thought I have left on this is to borrow a hard drive or in order to be able to save the Movie with VirtualDub then use QuEnc. Problem is the person I could borrow it from is in Africa for a month :( Any thoughts are welcome.

I've tried this with AviSyth 2.5.5, 2.5.6 Beta1 and 2.5.6 Beta2.

Boulder
26th February 2005, 09:17
Is there a specific reason for using DirectShowSource?

zettai
26th February 2005, 10:54
Originally posted by Boulder
Is there a specific reason for using DirectShowSource?

I'm guessing it's the DV Type that doesnt use vfw filters (I forget which type that is, but it's the one that you use microsoft's DV decoder via directshow)

Wilbert
26th February 2005, 14:26
Your script should work i guess, but try


v = DirectShowSource("Honeymoon.avi", seek=true, audio=true)
ch = v.GetChannel(1)
a = mergechannels(ch, ch)
AudioDub(v, a)


Perhaps the pb is that you use DSS multiple times?

Trippin
27th February 2005, 07:01
That didn't seem to fix it either. I was able to clean up some files and use VirtualDub to "Save Wav", then this worked just fine.


v = DirectShowSource("Honeymoon.avi",seek=True,audio=False,video=True)
a_left = WavSource("Honeymoon.wav").GetChannel(1)
a = MergeChannels(a_left, a_left)
AudioDub(v, a)


As for the DirectShowSource, I use it to save converting the color space to many times as I have YUY2 plugins and then the final YV12 for DVD. The Panasonic DV codec only allows you to bring it over in RGB24 if I recall and the Wife already yells at me for spending to much to pay for a Codec when Microsoft's is "good enough".