Vegas 12 won't rename .tmp file after MP4 render

smhontz wrote on 7/10/2013, 2:17 PM
I have a very short (< 1 min) project with some video test patterns (stills) and a short video clip. Project properties are 1920x1080 29.97p.

When I render to Main Concept MP4, using the YouTube template I created and have used many times in the past, the render gets to 100%, and I get the Open Folder button, but I don't get the Open button nor do I hear the ding indicating the render is done. I'm left with a file myvideo.mp4.tmp in the output folder. If I rename it to just myvideo.mp4, it works properly.

I have run into this problem before in a random fashion, but this is happening every time with this project. Does anyone have a work-around? My usual standbys of setting Ram Preview to 0, restarting Vegas, and rebooting Windows have all failed to correct the problem.


Mr. Yoshen wrote on 9/29/2013, 3:41 PM
I am having the same exact problem, did you ever find a solution to this?
fivestarmaster wrote on 10/8/2013, 4:16 PM
Same problem. Needs to be addressed here and fixed asap.
robwood wrote on 10/8/2013, 4:32 PM
I have a very short (< 1 min) project with some video test patterns (stills) and a short video clip. Project properties are

my guess is the progressive setting is the problem: there is no 1080p30 in the BD spec, just 1080i30 or 1080p24.

the interlaced version should render correctly: tho in your situation, the interlacing would mean you've traded one problem for another.
ChrisDolan (SCS) wrote on 10/9/2013, 11:06 AM
The only time I know that we create a .mp4.tmp file is during the "Enable progressive download" step where we move the frame index from the back to the front of the file.

Could you please try unchecking that option via "Customize Template..." and see if that works around the issue? Coincidentally, I was working on the same feature for the Sony AVC format last month so I'm pretty familiar with it.

Here's how it works under the hood: 1) we render the whole file with the index at the back, 2) we read the index and write it to the .tmp file (fixing the file offsets) 3) we read the media and append it to the .tmp file, 4) we delete the original .mp4 file and 5) we rename the .tmp file to the .mp4 name

It looks like the final rename step is what's failing. In my personal (not professional) experience, rename failures like that most often are caused my virus checkers. The Virus checker locks a file when its deleted for a few milliseconds while its scanning. During that few milliseconds window, you can't rename anything new to that old name. I'm just guessing, but that sounds like what's happening here. If you feel like experimenting, you could try temporarily disabling your anti-virus software, if any, and see if that fixes the issue.
georgiaguy wrote on 8/25/2014, 7:36 PM
For GOD's sake......... someone please answer this question from SONY....
Steve Mann wrote on 8/25/2014, 11:18 PM
gawebs - this is a user forum and Sony rarely checks in here. If you want help from Sony, then go to the Sony Support site to ask your question.
Steve Mann wrote on 8/25/2014, 11:24 PM
Do you have the file 'myvideo.mp4' from an earlier render open in a media program like VLC? Or is 'myvideo.mp4' one of the media in Project Media? If the file is open, no program can rename it.
john_dennis wrote on 8/25/2014, 11:55 PM
I haven't been bothered by this bug but I was able to reproduce it as Chris Dolan suggested by running a Microsoft Security Essentials scan on the destination drive while the render was in progress.

Mark_e wrote on 8/26/2014, 2:12 AM
Just change the .tmp ext to .mp4 if it happens. When it's happened to me it's just been the rename piece that failed mainly I suspect because it was a short project and I was hovering over the finish button and the rename might be running in a separate process that you interrupt if you at too speedy to say ok :) (guess!) anyway every time it's happened to me renaming worked.
Steve Mann wrote on 8/26/2014, 12:58 PM
That's because an active scan by MSE or any anti-virus program will open a file to look for virus signatures. No program can rename a file that is opened by another program.

It's not a bug

john_dennis wrote on 8/27/2014, 12:30 AM
I'm not advocating for a Manhattan Project to deal with this issue, I was just pointing out that at least one scenario is understood. In fact, in most renders I never even see the .tmp file with hidden and system files turned on. I've also watched the Resource Monitor / Disk Activity screens and have only seen the .mp4 with I/O.