View Full Version : cutting and inserting frames
forjononly
16th June 2002, 09:05
let's say frame of 25-30 of 0-100 has massive blocks and i want to remove them to improve the video, how do i go about doing it? i tried cutting the frame out or masking it but when i do that, the audio for that particular frame seems to be cut off as well, how do i fix this?
also, in reference to the above problem, if i have 2 sources of the file, is it possible to cut/copy good frames from the better spurce to patch up the missing frames i cut/mask out earlier?
Thx
manono
16th June 2002, 10:10
Hi-
You can only cut at keyframes, so it might be more than just the frames you want to replace that you will have to replace. And of course the audio will go with it unless you have saved the audio in advance, and then add it back after (with possible audio asynch problems).
As for cutting and pasting-yes, it's fairly easy. Cut out and save the part before the problem section and call it Part 1.avi. Then cut and save the part after the problem section and call it Part 3.avi. Then you should also have the good Part 2.avi from the other source. Then using the Append command in Nandub, just add together Part 1.avi+Part 2.avi+Part 3.avi, and give it a new name, like Fixed AVI.avi.
sprit
16th June 2002, 12:22
Originally posted by forjononly
also, in reference to the above problem, if i have 2 sources of the file, is it possible to cut/copy good frames from the better spurce to patch up the missing frames i cut/mask out earlier?
I've used AviSynths FreezeFrame to fix frames, but only a couple at a time. When I've used it, I only had to fix one or two frames (like MPEG-blocks in a live broadcast).
Freezing 10s of frames could be really noticable (depending on frame rate, of course). One way to double the amounts of frames would be to freeze from both ends: if frames 4 and 5 is bad, freeze frame 3 2 times and 6 two times. Delete/DuplicateFrame together could also be used to do the same thing.
Oh, and BTW, you can cut on every frame, but only if you don't use 'Diract Stream copy' - Use the help, Luke.
lark
16th June 2002, 16:08
there is one way to fix single frames,
but it takes a lot of time (and requires avisynth
and re-encoding):
save first the sound as such (File - Save WAV).
go to the frame you want to fix.
copy it to clipboard
and edit in your favorite image editing program.
save the fixed frame to disk.
create an avisynth script that has three pieces:
1. video before the broken frame
2. ImageSequence only for the broken frame (your saved, edited one)
3. video after the broken frame
join those 3 together and do a quick recompress in virtualdub and add the sound using direct stream copy.
ref to imagesequence:
http://forum.doom9.org/showthread.php?s=&threadid=26855
regards
t :)
Leuf
17th June 2002, 08:44
You don't need to use avisynth for that, just save the edited frame as a bmp then use donald graft's logo filter to overlay it back on the video. You can then make it last however long you need.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.