Rendering changes region markers? johnmeyer script help?

jhawken wrote on 6/19/2004, 11:28 AM
I successfully used johnmeyer's script (Preview, them name regions using listbox dialog) to break a long .avi file into separate events with each event as a named region. Then I rendered the project to an .avi file as johnmeyer suggests in his workflow. The problem is that in the new avi file, the region markers are slightly "off". The regions are longer than the events. For example, the first event is 11.345 seconds long, but the region marker is at 12.348 seconds. The second event ends at 21.321 seconds, but the region marker is at 23.207 seconds, and so on. The effects are cumulative, so by the 4th/5th event/region, the event video and the region markers are significantly out of sync. Any ideas what's happening?

Thanks very much for any help. This forum is great!

Comments

johnmeyer wrote on 6/20/2004, 7:50 AM
I have used my script on several projects and not had this problem.

While I cannot tell you for sure what is causing your problem, I note that the ratio of your markers to the events is 1.08846 in each case. This is EXACTLY the ratio of 48 kHz to 44.1 kHz. Thus, I suspect that the problem has something to do with your project audio setting.

Go to File -> Properties, click on the Audio tab and change the Sample rate setting from 44,100 to 48,000. Try rendering again.

There have been many threads about how Vegas' Project Properties defaults to 44.1 kHz because of its origins as an audio editor (where 44.1 kHz is the standard for CDs). However, 48 kHz is the standard for DV editing. Many of the experts who replied in those threads claimed that you didn't need to worry about this when rendering, because if you chose a DV template, the audio would be rendered at 48 kHz and there would be no problem. Perhaps, if changing this fixes your problem, this is an instance where it DOES matter.

Anyway, I am pretty sure, given the information you supplied, that the answer lies in an audio setting. If the project properties doesn't fix it, look around for other places the audio sampling rate may be set, and change it and see if that helps.

Let us know if you are able to fix it.
jhawken wrote on 6/21/2004, 9:46 AM
Thanks - I will try this tonight.
jhawken wrote on 6/22/2004, 7:14 PM
johnmeyer, you were correct that the problem was audio-related. Since the avi file I was rendering had no audio, I had excluded audio rendering by clicking the "Custom" button on the "Render As" dialog, then I unchecked the "Include audio" box on the "Audio" tab of the "Custom Template". When I rendered without disabling the audio (at 48,000 hz), the problem went away - all the regions were perfect.

Thanks for the help!
johnmeyer wrote on 6/22/2004, 8:13 PM
When I rendered without disabling the audio (at 48,000 hz), the problem went away

Glad I got you on the right track. I hadn't thought about what effect rendering without an audio track might have. It never occurred to me.