VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Jun 2008
    Location
    Germany
    Search Comp PM
    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
    Quote Quote  
  2. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    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.
    Read my blog here.
    Quote Quote  
  3. Member
    Join Date
    Jun 2008
    Location
    Germany
    Search Comp PM
    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.
    Quote Quote  
  4. Member
    Join Date
    Jun 2008
    Location
    Germany
    Search Comp PM
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!