logo Sign In

2 Avisynth questions?

Author
Time
 (Edited)

Can I use avisynth to remove\delete unwanted single frames throughout a video, and how is this done.

2nd, how can I mark my video's so when I am doing a comparison I can have each one state which video it is up in the corner somewhere? kind of like having a timecode but I just want to know which is which.

Thanks

* edit, scratch the second question LOL, I just made a subtitle that ran the whole length of the video's.

Author
Time
 (Edited)

Yes; open your script in Virtualdubmod and find the number of the frame(s) in question.  You can read the frame number in Virtualdubmod, same as usual.  Go back to your script and use the trim command to cut the video at the frames before and after.  I hope I have made that clear enough.  (You can load the script back up in Virtualdubmod to preview your cuts, if you like.)

Then use aligned splice to join the rest of your video back together.  I usually use the ++ operators for this.

http://avisynth.org/mediawiki/Splice

As to marking the videos, adding this to the end of your script might help:

Info()

Don't forget to delete it from the script when you have finished working though, or the info will be burnt into the video.

Author
Time

Thanks man, I was hoping there was a simple command like delete(whatever) and go, I am familiar with trim, that is actually what I ended up using, but I am not sure what you mean here,

"I usually use the ++ operators for this."

and for info of video, I just wanted to name each so I knew which was which, like TB source Jedi, GKAR source Jedi, I needed to compare the 2 for frames and such for audio sync'ing, so I just added a subtitle line to the script and had those subs throughout the entire video in the upper right corner, very helpful when comparing.

Thanks again

Author
Time
 (Edited)

By the ++ operators, I mean typing ++ between trim commands to join up, rather than having to type AlignedSplice and brackets.

To cut out frames 100 and 200 from a video, it might look like this:

AviSource("video.avi")
Trim(0,99) ++ Trim(101,199) ++ Trim(201,0)

I think that's right.  I assume this is being done without audio, so I guess it doesn't matter whether you use aligned or unaligned splice.  I just do it this way out of habit.

Author
Time

F'n A, learn something new everyday, that will come in very handy, I will have to test that out.

Thanks

Author
Time

Wait, now I'm confused, you need to use double plus signs?  I've always used a single one.  Is there a difference in what that does?

Dr. M

Author
Time
 (Edited)

dark_jedi said:

Can I use avisynth to remove\delete unwanted single frames throughout a video, and how is this done.

DeleteFrame()?

Doctor M said:

Wait, now I'm confused, you need to use double plus signs?  I've always used a single one.  Is there a difference in what that does?

+ is a shortcut for UnalignedSplice(), ++ is AlignedSplice(). The difference is in the way the audio is handled.

Guidelines for post content and general behaviour: read announcement here

Max. allowable image sizes in signatures: reminder here

Author
Time
 (Edited)

Doctor M said:

Wait, now I'm confused, you need to use double plus signs?  I've always used a single one.  Is there a difference in what that does?

As Moth3r said, it is how the audio is handled.  As I said, I don't think it makes a difference if with video-only splicing: I just do it this way out of habit.

I'm ashamed to say that I didn't know about DeleteFrame().  That would probably be the best opion.