VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Hi,

    I usually come to this forum when I need help with megui or anything avisynth related, so I thought I'd better sign up here for my own question now:
    Is it possible to get two videos encoded into one? (picture in picture like here).

    my current script is just like
    dss2("FILE", fps=25)
    QTGMC(preset="slow")
    What else would I need to put below in order to get one video into the top right of another video? (both to be deinterlaced as well)

    Please let me know! Cheers
    Quote Quote  
  2. Assuming FILE2 is a smaller video:

    Code:
    v1= dss2("FILE1", fps=25).QTGMC(preset="slow")
    v2 =dss2("FILE2", fps=25).QTGMC(preset="slow") # resize here if necessary
    Overlay(v1,v2, x=v1.width-v2.width)
    Quote Quote  
  3. Originally Posted by jagabo View Post
    Assuming FILE2 is a smaller video:

    Code:
    v1= dss2("FILE1", fps=25).QTGMC(preset="slow")
    v2 =dss2("FILE2", fps=25).QTGMC(preset="slow") # resize here if necessary
    Overlay(v1,v2, x=v1.width-v2.width)
    Thanks for the quick answer! Using this script gives me the error "script error: expected a , or )" in line 3 colounm 24.

    Overlay(v1,v2, x=v1.1080,x=v2.320)
    I added a "," and a ")" in this line but it still gave me that error. How do I correct this?
    Quote Quote  
  4. You made a transcription error. Or you made an error when you changed the line.

    Code:
    Overlay(v1,v2, x=v1.1080,x=v2.320)
    This line makes no sense at all. The original line was:

    Code:
    Overlay(v1,v2, x=v1.width-v2.width)
    Maybe this will make it clearer:

    Code:
    Overlay(v1, v2, x = (v1.width) - (v2.width))
    Ie, the x position is set to the width of the background image (v1.width) minus the width of the foreground image (v2.width). So if the background image is 1080 pixels wide, and the foreground image is 320 pixels wide, the x position of the overlay is 1080-320, or 760. The y position defaults to 0.
    Last edited by jagabo; 30th Apr 2017 at 08:11.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    You made a transcription error. Or you made an error when you changed the line.

    Code:
    Overlay(v1,v2, x=v1.1080,x=v2.320)
    This line makes no sense at all. The original line was:

    Code:
    Overlay(v1,v2, x=v1.width-v2.width)
    Maybe this will make it clearer:

    Code:
    Overlay(v1, v2, x = (v1.width) - (v2.width))
    Ie, the x position is set to the width of the background image (v1.width) minus the width of the foreground image (v2.width). So if the background image is 1080 pixels wide, and the foreground image is 320 pixels wide, the x position of the overlay is 1080-320, or 760. The y position defaults to 0.
    Hi,

    I was about to give it up, because I didn't want to ask again but then I noticed how stupid I was so I got that now. Is there a way to set a timeframe for the second video to get in? Like after 3 minutes and 54 seconds for example. Either by time or frame

    edit: the current script is like this
    v1= dss2("File1", fps=25).QTGMC(preset="slow")

    v2 =dss2("File2", fps=25).QTGMC(preset="slow").spline36resize(364,21 4).crop(8,0,-0,-0)

    Overlay(v1,v2, x=1600)
    Last edited by xMike; 4th May 2017 at 14:46.
    Quote Quote  
  6. Originally Posted by xMike View Post
    Is there a way to set a timeframe for the second video to get in? Like after 3 minutes and 54 seconds for example. Either by time or frame

    edit: the current script is like this
    v1= dss2("File1", fps=25).QTGMC(preset="slow")

    v2 =dss2("File2", fps=25).QTGMC(preset="slow").spline36resize(364,21 4).crop(8,0,-0,-0)

    Overlay(v1,v2, x=1600)
    Use Trim() to split the background into two parts, overlay onto the second part, then join the two parts together. Note that 2 minutes and 54 seconds is 234 seconds, frame number 5850 for a 25 fps video (234 x 25).

    Code:
    v1= dss2("File1", fps=25).QTGMC(preset="slow")
    
    v2 =dss2("File2", fps=25).QTGMC(preset="slow").spline36resize(364,21 4).crop(8,0,-0,-0)
    
    v1a = v1.Trim(0,5849)
    v1b = v1.Trim(5850,0).Overlay(v2, x=1600) 
    
    v1a++v1b
    Quote Quote  



Similar Threads

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