Hello, can someone reccomend the best/fastest way to crop this part of the video and then stretch it back out to 352x480 for the portion while the pop-up is present? Would rather not re-encode as it is already in the mpeg-2 format I want, but open to all suggestions. Also, if we can get even more advanced, the ad "slides in".. it doesn't just pop up at that side, so if there was a way to completely remove it without the final video showing signs of it, that would be fantastic. Thanks!
![]()
+ Reply to Thread
Results 1 to 10 of 10
-
-
There is no way of doing it sans re-encoding and even then it would be VERY tricky to do while leaving it interlaced and you really do NOT want to deinterlace ... I suppose you could do an IVTC but animation is often a BITCH to do that to and get it correct.
I'd just deal with it.
- John "FulciLives" Coleman"The eyes are the first thing that you have to destroy ... because they have seen too many bad things" - Lucio Fulci
EXPLORE THE FILMS OF LUCIO FULCI - THE MAESTRO OF GORE
-
Just drop a black mask over it if you don't want to see it. You'll still have to reencode though.
-
Thing is, it actually squishes the picture when the ad comes up, so I would rather stretch it back out if possible... again I am open to re-encoding if necessary. This is occurring on all of the episodes, so I wouldn't mind giving it a try on one to see how it turns out. If it's not worth it, I will just leave them in there.
Thanks again -
I think it could be done in AviSynth, but the results may be disappointing. And if this is one of those that "pushes it's way up", then for the duration of the "push" it becomes a frame by frame exercise. And unless the popup is exactly the same in each episode (height, duration, speed of "pop", speed of "retreat") then you'll have to edit the script for each episode.
"Shut up Wesley!" -- Captain Jean-Luc Picard
Buy My Books -
I've done it by simply cropping and resizing (not dynamically) for the duration of the ad. You get a weird resizing thing but it's better than seeing the ad.
-
Is this for viewing on a computer display or, viewing on a tv set ?
1. you note and record every ad popup start/end points
2. you write a trim() function that uses those start/end values to crop-out/resize
3. using the start/end values, you insert the trim()/crop-out/resize clips as replacement vids
If you want a definitive solution, post a small 10mb/20mb size sample and I'm sure one of the guys here can show you how
-vhelp 4887 -
I did this using your image as the source for this script:
Code:imagesource("popup ad.jpg", end = 300, fps = 29.97) separatefields() crop(0,0,-0,-61) lanczos4resize(352,240) weave()
"Shut up Wesley!" -- Captain Jean-Luc Picard
Buy My Books -
Here's an Avisynth script to do something similar.
Code:AVISource("whatever.avi") EnsureVBRMP3sync() Trim(0,10663) ++\ Trim(10685,11002).Crop(362,222,-122,-40).LanczosResize(688,384).Amplify(0) ++\ Trim(11024,0) LanczosResize(720,576,0,0,688,384)
The Crop is to the shrunk screen. I also used Amplify(0) to kill the voiceover.
Note I dropped a few frames between the Trims, (about 0.8 seconds each time) as the credits are zooming in/out in those; it leaves a little jump but better than the zoom.
I used AvsP's crop editor to work out the crops, you can also do it interactively in VirtualDub.
The result is far from perfect, but still much better than an annoying promo.
An alternate method, without resizing the credits:
Code:AVISource("whatever.avi") EnsureVBRMP3sync() Trim(0,38120) ++\ Trim(38121,0).Crop(0,0,-150,-0).AddBorders(150,0,0,0).FillMargins(160,0,160,0).Amplify(0) LanczosResize(720,576,0,0,704,400)
In all cases I use EnsureVBRMP3sync() as any Trims are likely to desync the sound otherwise, when I use wavi to extract audio from the AVS files.
~~~~~~~~~~~~~~~
Another thought: if this is during the epsiode itself, and doesn't last long, just freezeframe it. Cartoons often have static scenes anyway, or with minimal lip movement. You could use the frame before the ad or after, or both and split the duration.
Again in Avisynth:
Code:AVISource("whatever.avi") EnsureVBRMP3sync() FreezeFrame(10000,10075,9999)
Similar Threads
-
Resize & Crop MKV
By Kand in forum Video ConversionReplies: 2Last Post: 22nd Apr 2012, 13:50 -
Tool to aid in crop+resize
By Quaraxkad in forum Newbie / General discussionsReplies: 4Last Post: 26th Sep 2009, 18:16 -
Can I crop and resize video?
By maldb in forum EditingReplies: 6Last Post: 13th Jun 2009, 19:06 -
Video Crop and resize
By quxote in forum EditingReplies: 4Last Post: 27th Feb 2009, 11:48 -
Crop, then resize to 240x320?
By miamicanes in forum EditingReplies: 2Last Post: 29th Dec 2008, 23:56