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.

 
A Plugin That Mirrors Video
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Denizen
Posted: Aug 24 2012, 01:03 AM


Newbie


Group: Members
Posts: 2
Member No.: 35350
Joined: 24-August 12



I need a plugin for VDub that mirrors the video along a set line. For example, the right side of this video has a person, the left side doesn't. I set this line to mirror down the middle, now the left side also has a person except that person is a mirror image of the person on the right. Get what I'm saying?

Help would be appreciated VERY much so since these forums are kind of inactive.
 
     Top
dloneranger
Posted: Aug 24 2012, 05:10 AM


Moderator


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



I don't think I've seen one of those

AviSynth can do it though
Install that and then make a new file - lets call it mirrored.txt
edit that and paste these lines into it

CODE
# put correct video name here
orig = avisource("H:\Video Output\lags\All American Girls.avi")

# keep 320 pixels wide and 480 high
# change these numbers to match the 'left' bit of your video
vidleft = orig.crop( 0,0,322,480 )
vidright = vidleft.fliphorizontal()

finished = stackhorizontal(vidleft, vidright)
return(finished)


(replace the video name with your own file)

Then rename mirrored.txt to mirrored.avs and load it with virtualdub

That should give you something like
user posted image



--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Denizen
Posted: Aug 24 2012, 03:42 PM


Newbie


Group: Members
Posts: 2
Member No.: 35350
Joined: 24-August 12



QUOTE (dloneranger @ Aug 24 2012, 05:10 AM)
I don't think I've seen one of those

AviSynth can do it though
Install that and then make a new file - lets call it mirrored.txt
edit that and paste these lines into it

CODE
# put correct video name here
orig = avisource("H:\Video Output\lags\All American Girls.avi")

# keep 320 pixels wide and 480 high
# change these numbers to match the 'left' bit of your video
vidleft = orig.crop( 0,0,322,480 )
vidright = vidleft.fliphorizontal()

finished = stackhorizontal(vidleft, vidright)
return(finished)


(replace the video name with your own file)

Then rename mirrored.txt to mirrored.avs and load it with virtualdub

That should give you something like
user posted image

That's exactly what I wanted, thanks. I was just looking for a plugin as I'm actually using VideoPad and it supports most VirtualDub plugins, but I'll just use a combo of both, thanks
 
     Top
dloneranger
Posted: Aug 24 2012, 05:26 PM


Moderator


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



Yeah, it'd be a really limited use plugin though, so I can't see anyone going to the effort to be honest
Avisynth is brilliant at that kind of thing though, just doing a mirror effect barely scrapes the surface of it

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
3 replies since Aug 24 2012, 01:03 AM Track this topic | Email this topic | Print this topic

<< Back to VirtualDub Filters and Filter Development