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 First Plan And Movie In Second
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
lagirafe23
Posted: Jun 1 2014, 02:11 AM


Newbie


Group: Members
Posts: 2
Member No.: 38019
Joined: 1-June 14



Hello every body,

My name is John-nathan i live in La Rochelle in France.

I speak just little bit english very sorry.

Virtual dub is beautiful and very very good log ! ! !

I would like to put a picture in the foreground and a video in the background.
My video will bunk Photo.

Exemple :

http://s2.dmcdn.net/wXF5/193x108-LWe.jpg

Like this photo explosion covers the wall, the wall being "my image" (the foreground) and the explosion "my video" (the background).
As if the explosion was lively and gradually cover the wall and watch the wall when the explosion disappear

The video straddles the small picture somehow.
So that the video will hide the picture depending on how she will ride.
I do not know if I'm clear enough.

Is this possible?

I really am a newbi an explanation for this picture would be great.

Thank you very much;)
 
     Top
raffriff42
Posted: Jun 1 2014, 03:56 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



Still picture over video: very easy, use the Logo filter.

Video over still picture: harder. Use the Layer filter, or Avisynth.

(all 3 methods are explained in this thread)
 
     Top
lagirafe23
Posted: Jun 1 2014, 07:11 PM


Newbie


Group: Members
Posts: 2
Member No.: 38019
Joined: 1-June 14



Thank you for answering me.

The problem with the filter logo is that it lasts the whole video.

Actually I want to do this "Video over still picture. Harder Use the Layer filter, or Avisynth."

In the download it gives me a zip with this:
http://hpics.li/3b45f59

I put it in the VirtualDun / plugins folder?

Hide a piece of the image when the video overlaps a part of the image becomes clear that the complicated to make air ...
 
     Top
raffriff42
Posted: Jun 1 2014, 10:25 PM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



I'm looking at the the web page from your screen shot in translation: Virtualdub for Dummies - First AviSynth script.
It's a very good introduction to VirtualDub and Avisynth!

It's slightly out of date, however. Here are some updated links:
QUOTE
In the download it gives me a zip with this ... I put it in the VirtualDub / plugins folder?
Basically, yes - except you put the files in the Plugins32 folder in newer versions of VirtualDub. Also, you only need two files from the Layer filter's ZIP archive: "vdf_layer.vdf" and "vdf_layer.txt." The others you can delete (although keeping them does no harm)

I am not competent to advise you on the VirtualDub Layer filter, but I can write a simple AviSynth script that does the same thing:
CODE
## put a video (reduced size) over a background image.
## The color (R=64, G=64, B=64) is transparent.
## *** assumes you are running Avisynth 2.6.0 ***

## foreground video (replace "example.avi" with full path to file)
F = DirectShowSource("example.avi")

## background image (replace "example.jpg" with full path to file)
B = ImageSource("example.jpg", fps=F.FrameRate, end=F.FrameCount)

## ensure they are in a compatible format
F = F.ConvertToRGB32
B = B.ConvertToRGB32

## resize background image to desired video size
B = B.BicubicResize(1280, 720)

## resize foreground to desired size
F = F.BicubicResize(Round(0.5*F.Width), Round(0.5*F.Height))

## create color key mask (optional)
## the color (R=64, G=64, B=64) (plus/minus 2) is transparent.
F = F.ResetMask().ColorKeyMask(to_rgb(64, 64, 64), 4)

## overlay the video @ 32 pixels from left, 16 pixels from top
L = Layer(B, F, x=32, y=16, level=257)

## Fade IN the top layer:
R = UUDissolve(B, L, 120, 30)

## Fade OUT the top layer:
R = UUDissolve(R, B, 220, 30)

return R.ConvertToYV12

#######################################
## return an Avisynth color number
##
function to_rgb(float r, float "g", float "b") {
   r = Min(Max(0, Round(r)), 255)
   g = Min(Max(0, Round(Default(g, r))), 255)
   b = Min(Max(0, Round(Default(b, r))), 255)
   return (r*65536) + (g*256) + b
}

#######################################
### dissolve to alternate clip
# http://atlas.kennesaw.edu/~dhirschl/avisynth.html
#
#@ A - main movie
#@ B - angle2 (synchronized with clip A)
#@ lenDissolve - number of frames for dissolve;
#               make sure lenDissolve is not too high
#
function UUDissolve(clip A, clip B, int "markIn", int "lenDissolve")
{
   markIn = Default(markIn, 0)
   lenDissolve = Default(lenDissolve, 0)

   return Dissolve(A.Trim(0, markIn + lenDissolve),
   \               B.Trim(markIn, 0), lenDissolve)
}
See Avisynth: Layer for more information about layering.

EDIT - fade the top layer in and out

This post has been edited by raffriff42 on Jun 2 2014, 05:10 AM
 
     Top
dloneranger
Posted: Jun 2 2014, 02:09 PM


Moderator


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



Just to add a bit about this
QUOTE
The problem with the filter logo is that it lasts the whole video.


Any filter can be 'blended' to alter the effect from 100% to 0% (transparent)
So, you could make a logo be 0% after 1 minute etc
Here's a how-to https://www.youtube.com/watch?v=hVLsDW5nQso



--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
malky
Posted: Jun 2 2014, 04:21 PM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



Version 1.7 you can have animated logos and specify position and when to display.

http://neuron2.net/logo/logo.html
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
5 replies since Jun 1 2014, 02:11 AM Track this topic | Email this topic | Print this topic

<< Back to Newbie Questions