+ Reply to Thread
Results 1 to 11 of 11
Last edited by dcaro; 15th Aug 2015 at 12:02.
In AviSynth you can first Crop away the sides followed by using the AddBorders command to add back the sides as black.
Alternatively you can turn it on its side with TurnLeft, followed by using the Letterbox command to cover up whatever you want with black, followed by TurnRight.
VDub can do similar things.
Add border is one way, but the video looks more like the original video overlaying an enlarged(perhaps blurred also) version.
Can be done in any NLE.Stopping development until someone save me from poverty or get me out of Hong Kong...
Oh, reading your post I see I may have not figured out what he wanted correctly. You think he wants to create that blurry and enlarged version of the video for the sides, and not remove it to be replaced with black bars? Yeah, you may be right about that. Thanks.
If so, AviSynth can do it easily as well, by resizing up and then cropping down to the final size and blurring the video, followed by using the overlay command to put the original version inside the blurred version.
I usually use MedianBlur for my blur work.
Works perfectly but I went with stackhorizontal because it was easier than overlay for me. I might have oversized the edges but I went for nice round numbers and it only took about 15 minutes with calculations. In order to make it look right the sides must be a crop from middle areas to show distance from subject.
Image was 640x480 and left crop was x=160, y=0, w=80, h=480. This was resized and blurred to 160x960 and recropped to x=0, y=240, w=160, h=480 in the same operation as the crop. Similar calculations for right side and then Stackhorizontal
v1=DirectShowSource(("C:\Users\Bud\Desktop\Temp\bi rthday with audio_Timed_1.flv"), Pixel_Type="yuy2").Crop(0,0,-0,-0)
v2=DirectShowSource(("C:\Users\Bud\Desktop\Temp\bi rthday with audio_Timed_3.flv"), Pixel_Type="yuy2").Crop(0,0,-0,-0)
v3=DirectShowSource(("C:\Users\Bud\Desktop\Temp\bi rthday with audio_Timed_5.flv"), Pixel_Type="yuy2").Crop(0,0,-0,-0)
stackhorizontal(v2, v1, v3)
The 'Timed' thingy is just something my program throws in by default.
Last edited by Budman1; 13th Aug 2015 at 00:11.
Starting with the png image in the first post, cropping it to use just the center portion as a starting point:
ImageSource("attachment.png") # get the image, use an appropriate source filter for your video fg=Crop(176,50,-214,-82) # remove existing borders, may not be necessary for your video source bg=fg.BilinearResize(16,32).BicubicResize(fg.width*2,fg.height*2) # create a blurred background 2x as big Overlay(bg, fg, x=bg.width/4, y=bg.height/4) # overlay the image onto the background Crop(0, bg.height/4, -0, fg.height) # crop the top and bottom borders
WarpResized from http://avisynth.nl/index.php/SimpleResize - btw padding is something else (usually it is solid color)
I would never use a warped resize.