Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Picture In Picture Plugin?, two or more videos combined in one?
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
trodas
  Posted: Mar 3 2013, 07:33 PM


Advanced Member


Group: Members
Posts: 88
Member No.: 22291
Joined: 22-October 07



I wonder, if there exist a plugin, witch will allow over still image, or even a video another video(s) - smaller of course - to be placed over it. I wonder if something like that can be done, or if it even actually do exist. Becuase I check the plugins list and did not find anything that will do the trick to put a 2, 3 small videos at the same time over a still or another bigger video...

Anyone can help me out, or this is not possible?

--------------------
"It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
...just keep folding, just keep folding... :) my config - my caps
 
         Top
dloneranger
Posted: Mar 3 2013, 07:42 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



For anything 'special' like this it'd be easier to use Avisynth and write a script
Here's a sample script
CODE
a=Directshowsource("O:\mainvideo.wmv",pixel_type="RGB")
b=Directshowsource("O:\overlay.wmv",pixel_type="RGB").bicubicresize(320,240) #resize overlay video to 320x240

c=overlay(a,b,16,16) #overlay the second clip at x=16, y=16

return(c)


--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
vladimir_klimov_3d
Posted: Mar 23 2013, 08:04 AM


Newbie


Group: Members
Posts: 4
Member No.: 36309
Joined: 22-March 13



The function "overlay" is not perfect in AviSynth (some noisy). That is why I recommend to use ImageMagick for it.

1. Export first video to a sequence of pictures .bmp
2. Resize second video by AviSynth and export to a sequence of small pictures .bmp
3. Move the sequence of small pictures in the same folder where background pictures are located.
4. Use ImageMagick.

Text of .bat file:
CODE
@echo off
echo Hello this is a batch file for overlay
::Background images must have the prefix bgr_ in the beginning their name, but overlay images must be top_ exactly
mkdir overlaid
setlocal EnableDelayedExpansion
for %%a in (top_*.bmp) do (
set file=%%~nxa
set file=!file:top_=!
echo. Processing file: “%%~nxaâ€
convert bgr_*!file!.bmp %%a -composite -alpha off overlaid\over_%%a
)


5. Recreate .avi file from a sequence of overlaid pictures
 
      Top
-vdub-
Posted: Mar 23 2013, 01:56 PM


Advanced Member


Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10



A quick search gives twelve overlay filters located here http://www.infognition.com/VirtualDubFilters/
 
    Top
vladimir_klimov_3d
Posted: Mar 24 2013, 05:02 AM


Newbie


Group: Members
Posts: 4
Member No.: 36309
Joined: 22-March 13



Thank you for the link! This site is elegant and very convenient to use.

I shall download and test the filters.
 
      Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
4 replies since Mar 3 2013, 07:33 PM Track this topic | Email this topic | Print this topic

<< Back to VirtualDub Filters and Filter Development