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
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)dss2("FILE", fps=25)
QTGMC(preset="slow")
Please let me know! Cheers
+ Reply to Thread
Results 1 to 6 of 6
-
-
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) -
-
You made a transcription error. Or you made an error when you changed the line.
This line makes no sense at all. The original line was:Code:Overlay(v1,v2, x=v1.1080,x=v2.320)
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.Code:Overlay(v1, v2, x = (v1.width) - (v2.width))
Last edited by jagabo; 30th Apr 2017 at 09:11.
-
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 thisv1= 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 15:46.
-
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
Similar Threads
-
Windows 7 video player that can save URL videos with applied video effects?
By coolvibe in forum Newbie / General discussionsReplies: 7Last Post: 13th Jun 2016, 17:52 -
Synchronize video from 1.video and sound from 2.video using compare videos
By ad48 in forum EditingReplies: 0Last Post: 3rd Apr 2015, 07:18 -
Video Production: video overlay in real time over existing video
By tobyoneknobi in forum Newbie / General discussionsReplies: 4Last Post: 6th Feb 2015, 09:11 -
How to cut any video with the free Video to Video Converter
By Baldrick in forum User guidesReplies: 12Last Post: 26th Apr 2014, 07:31 -
Best Application to capture video from Component/S-video video inputs
By techspark in forum Capturing and VCRReplies: 17Last Post: 8th May 2012, 17:09


Quote
