Is There A Way To Permanently "Disable Resample"

Comments

WayneM wrote on 3/23/2015, 2:11 PM
I just double-checked (no pun intended) and Options/Preferences/Editing does have "enable looping on event by default" Unchecked. Go figure.

So I caught that at sometime! I thought it was long before this current project got started. So either I'm wrong OR I started this project from an earlier file from before the Pref was changed. . .but that doesn't make sense either.

Thanks for reminding me that's where that setting is located.

Wayne
johnmeyer wrote on 3/23/2015, 7:07 PM
I just searched the API (VegasScriptAPI.html) and wasn't able to find any of that info, but they may be useful. Maybe I'm looking in the wrong place.You did try it, right? I tried it before I posted, and adding that one line does exactly what you want.
WayneM wrote on 3/23/2015, 7:30 PM
Sorry, at that time I hadn't yet put it in the script. First I wanted to see if I could track it down in the API so I didn't have to annoy you unnecessarily! :-)

Next, I put the line in, saved as a new script labeled to do both Resample Disable and Loop Disable. Works like a charm. . .of course.

The thing I've told myself to remember is that it make the change to ALL events with that property. I'm thinking there might be some Events where I have unintentionally had Loop enabled and that made a Title or something last as long as I wanted just by dragging and edge.

I'm going to search the Vegas Scripts area to find out how to create a button for my scripts on the Toolbar. I think I did that some years ago. That's easier than navigating the menu. And it seems that by the time I migrate to the next release I've forgotten how to do it. Creaky Brain Syndrome.

Thanks much again.

Wayne
johnmeyer wrote on 3/24/2015, 5:49 PM
Are you saying that you want to modify the script so that it only works on selected events, rather than ALL events? That is pretty easy to do. You must add an outer IF statement that tests for "if event is selected" and then only apply the two changes when that condition is true. You can also do a similar thing to only change events on selected tracks.

Rather than add a dialog, which takes more time, you can just have two scripts, one that changes everything, and the other one which changes selected events. Then, run whichever one you need at that moment. In essence, you are moving the choices in the dialog up to the toolbar (or wherever you keep your list of scripts).
TRJohnsen wrote on 4/8/2015, 1:02 PM
I have Sony Vegas pro version 13 and Movie Studio Platinum 13.
I do not know if this is possible in previous versions.
I mark all event on timeline, not the sound.
Or, hold ctrl.key and click to chose witch one you want to disable resample on.
Right-click, popup menu appears, here is a selection of switches.
Chose disable resample.
This disable resample at all event on timeline.


Newbee from Norway:)
johnmeyer wrote on 4/8/2015, 1:48 PM
Right-click, popup menu appears, here is a selection of switches.That sure is a lot easier than using my silly script. Thanks for sharing!
john_dennis wrote on 4/8/2015, 2:50 PM

@ TRJohnsen

"I do not know if this is possible in previous versions."

I verified that all versions of Vegas Pro 9 through Vegas Pro 13 allow one to disable resample as you described with a context sensitive right-click menu at the track level.

MikeyDH wrote on 5/20/2015, 2:22 PM
I copied and entered the disable resample scripts offered but keep getting an error message when trying to apply them to the timeline. Used both the .cs and .js extensions. Puzzled. Never had this problem before.
ritsmer wrote on 5/21/2015, 7:08 AM
... and after having got 2 new cameras with different Fps etc. this script is needed all the time here - and it works great (Vegas Pro 12) ...

If Vegas 14 comes with a setting to permanently kill that %¤#/ "smart" resample - then please consider this to be my preorder of V 14...

Edit: Jerry did you Smart Resample your post ?? :- ))
amendegw wrote on 5/21/2015, 8:05 AM
[I]"Jerry did you Smart Resample your post ??"[/I]Ha! I don't hang around this forum as much as I used to and realized my post from this morning was a duplicate of a post I made in March.

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

MikeyDH wrote on 5/21/2015, 12:04 PM
OK lets try this.....Error message details

C:\Program Files\Sony\Vegas Pro 13.0\Script Menu\Disable Resample.JS(1) : Syntax error. Write 'var identifier : Type' rather than 'Type identifier' to declare a typed variable


What is this telling me? Thanks
amendegw wrote on 5/21/2015, 2:12 PM
Bet you copied "Code Block:" from the post. Start on the next line.

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

NormanPCN wrote on 5/21/2015, 3:52 PM
"If Vegas 14 comes with a setting to permanently kill that %¤#/ "smart" resample - then please consider this to be my preorder of V 14..."

+1
MikeyDH wrote on 5/22/2015, 12:38 PM
You won the bet, Jerry...Thx much :^)
Joebb3 wrote on 4/6/2016, 8:42 PM
I'm guessing that scripts are a Vegas thing only? I can't find any way to access the script in MS Plat 13.
wwaag wrote on 4/6/2016, 10:20 PM
I'm guessing that scripts are a Vegas thing only?

Scripting is available only in the Pro versions of Vegas, not Movie Studio.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Gene Aum wrote on 4/8/2016, 10:33 PM
Strange thing happened: I put the script in the approprate folder, and successfully used it a few times.

After rebooting the computer the script file was no longer in the folder.

So, todayI re-copied the file and set the read-only bit. See if this happens again.

Does VP delete files from Vegas folders?

Very odd.

Steve
Chienworks wrote on 4/11/2016, 4:47 PM
"Correct me if I'm wrong, but isn't the re-sampling essential if one is mixing different source media formats, or have media that is different to the overall project specs ?"

Geoff, i don't think anyone ever directly answered your question, so here goes:

If the project frame rate doesn't match what's on the timeline, either through the source frame rate being different or the event being changed in speed, Vegas will resample. It's the physics of the thing and just has to be done. What that switch affects is how the resampling happens. I guess the name of the switch is misleading. The three choices really ought to be "force smart resample, auto smart resample, and disable smart resample".

Smart resampling (also a bad name because it's not very smart at all) blends adjacent frames together when the rates don't match. So if you put 30fps on a 24fps timelline, your output frames would be something like this:

output frame 1 = 80% source frame 1 + 20% source frame 2
output frame 2 = 60% source frame 2 + 40% source frame 3
output frame 3 = 40% source frame 3 + 60% source frame 4
output frame 4 = 20% source frame 4 + 80% source frame 5
output frame 5 = 80% source frame 6 + 20% source frame 7

at which time 5 original frames have been "squeezed" into 4 output frames and then the pattern repeats. 24fps in a 30fps project would be similar, but inside out, with 4 original frames being blended out into 5 output frames.

Resampilng "disabled" (actually smart resample disabled, with "dumb" resampling still happening) would be done this way:

output frame 1 = input frame 1
output frame 2 = input frame 2
output frame 3 = input frame 3
output frame 4 = input frame 4, input frame 5 dropped
output frame 5 = input frame 6

No blending happens. So, with what Vegas calls "resampling", you can end up with doubled images warbling in and out of the finished output. The attempt is to make the motion smoother, but the result looks ghostly. With resmapling disabled you always end up with single frames rather than blended frames, but at the expense of doubling or dropping a source frame which can result in ever so slightly jerky motion.

Some folks object more to the bending/doubling, while others object more to the jerkiness. It just seems that in reading the comments here far more fall into the first group than the second.
placeboing wrote on 7/10/2016, 9:48 PM
Thank you for the Disable script! This is great!
TheVeggieNerdYT wrote on 1/29/2020, 5:30 PM

Signed

I think it is enabled by default because of slow motion. If you Ctrl-Drag the edge of an event to slow it down, and if you then disable resamble, you get pretty lousy slow motion, with frames repeated, as needed, in order to get the slower speed.

This old, simple script, will turn off resample on all events:
//****************************************************************************

//Disable resample on all events

//****************************************************************************



import System.Windows.Forms;

import Sony.Vegas;





try {

    for (var track in Vegas.Project.Tracks) {

       if (track.IsVideo()) {                          // Proceed only if selected track is video track.

	  for (var trackEvent in track.Events)  {

             trackEvent.ResampleMode = VideoResampleMode.Disable;

          }

       }

    }

}

catch (errorMsg)

{

	MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

}
In case there are those who do not know, the script from johnmeyer can be copied and pasted into Note Pad minus the line that says, "Code Block:", saved as name.js and then put in the Vegas script folder.

'name' = whatever name you want to give it.

I used options to edit the tool bar and added it to the top so I can use it real easily with one click.

I also found an *.cs script that does the same thing but the events need to be selected with that one. With this one, the events do not need to be selected. Saves an extra step this way.

Thanks much, johnmeyer.

P.S. Seems with all of the discussions there has been on this subject that SCS would make the needed change by now.
 

These two comments. I signed up just to say thank you. I learned so much just now.

EricLNZ wrote on 1/29/2020, 7:28 PM

Doesn't Vegas Pro not have an option in Project Properties to Disable Resample, so it applies by default to all clips added to the timeline? You don't need to play with scripts any more.

This is an old thread so this was probably introduced at a later date. I don't know with what version of VP it came in.

Edit: Disable Resample was introduced into Project Properties with VP15.

john_dennis wrote on 1/29/2020, 11:54 PM

@EricLNZ

"This is an old thread so this was probably introduced at a later date. I don't know with what version of VP it came in.

Edit: Disable Resample was introduced into Project Properties with VP15."

Eric, Global Disable Resample was introduced into Project Properties in Vegas 14. That is the one and only reason that I start all projects in Vegas Pro 14 instead of my long-held habit of starting all projects in 13-453.

EricLNZ wrote on 1/30/2020, 12:54 AM

Thanks @john_dennis, that would have been Sept 2016 and the first release under Magix.

wwjd wrote on 1/31/2020, 6:36 AM

History says the default of "ON" for everything dates back to the 1800's when people were converting things from 60i. 60i was banned by world governments around the time of the Salem Witch trials, and is thus, not used anymore. It should be DISABLED at power on, and only added by users when needed. At least that is what Abe Lincoln wrote.

That's my story and I'm sticking to it. :)