INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
Avisynth stackhorizontal Audio possible from the RIGHT video?

Forum Index -> Video -> Editing Printer-friendly version
Reply to topic
Author Message
dererik
Member


Joined: 19 Jun 2008
Location: Germany

Post Posted: Jul 19, 2008 08:32 Posts Comp View users profile Send private message Reply with quote

Hi,

I use avisynth to play two videos in one, great.

But, I would like to get the audio from the right video.

a=avisource("xx.avi").converttoYUY2().Crop(40,60,-40,-60).BilinearResize(720,576)
b=avisource("xx.avi").converttoYUY2().Crop(40,0,-80,0)
c=StackHorizontal(a,b)
return(c)

####
The Avisynth docs say: Most other information (sound track, frame rate, etc) is taken from the first clip
####

Is there any possibility to get the audio from the right file?

thanks in advance
erik


guns1inger
So Very Tired


Joined: 01 Apr 2004
Location: Miskatonic U

Post Posted: Jul 19, 2008 09:50 Posts Comp View users profile Send private message Reply with quote

given the stack statement doesn't care which clip is first, why not just load the clip you want to get audio from as a, then stack them b,a

Otherwise try adding false to the AVISource(() statement for clip a to turn it's audio off.
_________________
The views expressed in this post are mine alone, unless plagiarised from others
Read my obscure DVD reviews here and my general blah here


dererik
Member


Joined: 19 Jun 2008
Location: Germany

Post Posted: Jul 19, 2008 10:40 Posts Comp View users profile Send private message Reply with quote

Hi gunslinger

thats what I tried:

Avisynth takes the audio from the file which is on the left, whether its b or a. When I turn the audio from the left video off, no audio at all.


dererik
Member


Joined: 19 Jun 2008
Location: Germany

Post Posted: Jul 19, 2008 10:47 Posts Comp View users profile Send private message Reply with quote

got it (thanx to bigotti5 from doom9):

a=avisource("xxx.avi").converttoYUY2().Crop(40,0,-80,0)
b=avisource("xxx.avi").converttoYUY2().Crop(40,60,-40,-60).BilinearResize(720,576)
c=StackHorizontal(b,a)
d=audiodub(c,a)
return(d)

a is on the right side and the audio is from a!


erik


Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Editing Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics