video events

netkoala wrote on 9/7/2003, 10:30 PM
Saw script to remove all "Effects" (http://www.creativecow.net/articles/vegas_scripts.html ), but has anybody created script to remove all "video events" yet leave "pan/crop" in place.

ie. want to take snapshots but end results are better if remove levels
and colour changes, then adjust the jpg in an image editor.

Can someone point me to where this type of code may be please ?

Comments

netkoala wrote on 9/7/2003, 10:47 PM
Other thing is, how do you get snapshot to give a better resolution picture ?

imageFormat = ImageFileFormat.JPEG;
Vegas.SaveSnapshot(filename.ToString(), imageFormat, stepTime);

RenderStatus SaveSnapshot(String outputFile, ImageFileFormat format, Timecode seekTime)

Is this a win32 call that is needed?
Grazie wrote on 9/8/2003, 1:16 AM
netkoala - I aint no programmer, but from I understand you want to "Replace" certain Stills with others - and keep the settings (Pan/Crop) you have from the original still sets - yes? V4 has the Replace option. I guess you know this . . but I'd thought I'd remind you. Now maybe someone can create a script that will do this automatically . . I don't know if Scripting delves around in the Replace option or not . . .

I'm a wee bit confused by your understanding of, "but has anybody created script to remove all "video events" yet leave "pan/crop" in place . .. . " - P/C, as far as I understand it, require an actual Event to be in place to work. Taking away the Event, in my understanding would similarly remove the P/C settings? I've been wrong before - I could be wrong again! - You could also make P/C presets and reuse them . . this an option?

Does this help?

Grazie
jetdv wrote on 9/8/2003, 9:23 AM
First, if you remove an event you will also remove Pan/Crop as there is no longer an event to HAVE Pan/Crop. Not sure of your question here.

To get the highest quality image, set your preview on Best (Full). However, there are already several scripts that take snapshots and do all of this for you. I have a couple to do specialized snapshots on the Cow site but there are some more on the Sundance Media Group site.

Maybe if you could clarify the question a little?
netkoala wrote on 9/8/2003, 10:30 PM

VideoRenderQuality.Best; - will only give a jpg approx 120kb.

This is a low res pic. Although it is web ready, it aint great, but probably have to do.
It is not helped if I apply an event to adjust the levels on the vid either - more grainy and blotched for low light vid.

I would like to get a 1,220 jpg. With detail like that I can later adjust 'levels' in an image editor and get a really good result - even from video.

How do you get a better res pic ? Is it possible ?

A 120k jpg is not that bad seeings that it is a representation of the vid only.


jetdv wrote on 9/9/2003, 8:49 AM
A video frame (in NTSC) is 720x480 at 72dpi (which you can get by using "copy to clipboard"). That is the resolution you will get. You can't expect a photo-quality image from a video frame. If you take a snapshot, you will get a 655 x 480 image to account for the difference between square and non-square pixels. That is as big as it gets.

Have you read issue #5 of the Vegas Tips, Tricks, and Scripts Newsletter?