Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro image and clip automation for new media added to project and timeline

  • image and clip automation for new media added to project and timeline

    Posted by Fred Speece on July 9, 2009 at 12:22 am

    I capture jpg image sequences from my video game, I would like to automate or speed up the below process that I currently do.
    ——–
    I import the jpg sequences with File ->Import ->Media. [found out I can hit the button above my media for this]

    I then check “Open still image sequence”, then hit ok.

    the clip’s properties to be set as:
    Frame Rate: 25
    Field Order: None
    Pixel Aspect: 1.0 square
    alpha: none [all these should turn into clip default I believe?]

    then when I drag the clip on to the timeline, I change the Properties to:

    -Disable Resample <-- the "by pass motion blur" button doesn't seem to stop "Smart Resampling" from applying (the default option for media). -increase playback rate to: 2.0 -add a velocity envelope, and set that envelope to 200% -have the file not loop but shrink itself down so it doesn't repeat. (I drag the file down to 25% the length) I do all this because I capture 100FPS and export 25fps to maintain smoothness, but I don't want extra motion blur (as I do the blurring in game) Any ideas on how to minimize the number of clicks I need to do? I did look pretty hard in the Options->Preferences. I don’t know anything about scripting in vegas but willing to learn if it will help. appreciate any ideas.

    https://www.shaolinproductions.org/

    John Rofrano replied 17 years ago 3 Members · 6 Replies
  • 6 Replies
  • John Rofrano

    July 9, 2009 at 10:39 am

    You could script the last couple of steps after you import the image sequence to make it one click but you need to know how to program in C#, VB, or JavaScript to write a script. I could write you a script to do this unless you want to try and tackle it yourself.

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Theo Van laar

    July 9, 2009 at 10:40 am

    Did you check already the Vegas production Assistant to quickly set up new projects?
    https://www.sonycreativesoftware.com/vegasproassist

    Theo

  • Fred Speece

    July 9, 2009 at 9:33 pm

    If you don’t mind scripting some of this that would be awesome. I don’t know how to script.

    Thanks for the Production Assistant suggestion I will check that out also.

    oh and i’m currently using vegas 8 Pro.
    timeline: https://img38.imageshack.us/img38/9674/vegase.jpg

    https://www.shaolinproductions.org/

  • John Rofrano

    July 10, 2009 at 12:34 pm

    Here is a script that performs the procedure you explained:

    1. Disable resample
    2. Set playback rate to 2.0
    3. Disable looping
    4. Add velocity envelope at 200%
    5. Adjust length to 25%

    I don’t know why you set the playback to 2x and then add a 2x velocity envelope. Why not just set the playback to 4x? (it’s the same thing)

    Anyway, here is the script: (save is at AdjustPlayback.cs in your Script Menu folder.)

    /**
     * Program: AdjustPlayback.cs
     * Description: This script will change the playback rate of the selected events
     * Author: John Rofrano
     *
     * Revision Date: July 10, 2009
     **/

    using System;
    using Sony.Vegas;

    class EntryPoint
    {
        public void FromVegas(Vegas vegas)
        {
            foreach (Track track in vegas.Project.Tracks)
            {
                if (track.IsVideo())
                {
                    foreach (VideoEvent videoEvent in track.Events)
                    {
                        if (videoEvent.Selected)
                        {
                            videoEvent.ResampleMode = VideoResampleMode.Disable; // disable resample
                            videoEvent.PlaybackRate = 2.0; // double the playback rate
                            videoEvent.Loop = false; // turn off looping

                            // create a velocity envelope
                            Envelope velocityEnvelope = videoEvent.Envelopes.FindByType(EnvelopeType.Velocity);
                            if (velocityEnvelope == null)
                            {
                                velocityEnvelope = new Envelope(EnvelopeType.Velocity);
                                videoEvent.Envelopes.Add(velocityEnvelope);
                            }

                            // get the default point and change it 2.0
                            EnvelopePoint velocityPoint = velocityEnvelope.Points[0];
                            velocityPoint.Y = 2.0;

                            // adjust the event length to 1/4 it's original size
                            videoEvent.Length = new Timecode(videoEvent.Length.ToMilliseconds() / 4.0);
                        }
                    }
                }
            }
        }
    }

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Fred Speece

    July 10, 2009 at 7:07 pm

    most of my clips I change the speed on at different points to sync the events in the video to points in the audio. I could do 4x + add a velocity envelop and set at 100%, or 2x + 200%. I assume the resulting quality of the video will be the same?

    Thanks for the script, I will try it out this weekend. The commenting is very helpful also, thanks.

    Another question: is their such a thing as an audio velocity envelope that will work similar to the video version?

    https://www.shaolinproductions.org/

  • John Rofrano

    July 11, 2009 at 12:21 am

    Yes, either way the quality should be the same. I kinda thought you might be changing the velocity so using both makes sense.

    As for audio, no there is no velocity envelope equivalent. 🙁

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy