From Vegas to HandBrake

Comments

Grazie wrote on 8/19/2014, 12:49 PM
OK . . Same issue after success. If I then use FS inside of Vegas, I then can't re-proceed with the FS>>HandBrake. It'll work, but ONLY after a Re-BOOT of PC.

Grazie



Marco. wrote on 8/19/2014, 12:50 PM
Don't think so. I assume this file will be started anyway otherway the whole process would stop before anything happens, e.g. HandBrake would not open. Not sure though.
Marco. wrote on 8/19/2014, 12:53 PM
This sounds like one or several of the processes did not yet terminate. If you ever see the process hangs, freezes, stops unexpectedly – be sure you either use the "unmount" script function or manually start the batch file "unmount.bat". Both will clean and reset everything.
Grazie wrote on 8/19/2014, 1:00 PM
Yes, I'll try that now. I just repro-ed the need to RE-Boot the PC, after which it flew away perfectly.

So, If I use FS first, and get this issue again using the FS>>HB option, I'll just click oin the UN-mount.

Testing now.... brb . .

G

Grazie wrote on 8/19/2014, 1:07 PM
Yes, UN-MOUNT needed.

Working well as you said it would.

Thank you Marco.

Grazie

bsuratt wrote on 8/19/2014, 3:42 PM
I found that if you do not click on File/Exit on Handbrake when render is finished the unmount part will not process.. After clicking on FILE/EXIT wait for process to finish.
All will be fine.
Marco. wrote on 8/19/2014, 3:53 PM
This is why I suggest adjusting HandBrake that way it will quit automatically when it finished rendering. The unmount part waits on HandBrake. It does not proceed when HandBrake is still opened.

Also when HandBrake then quits you should wait another ten seconds or so until in Vegas Pro frameserving will be stopped and the last batch file will check and clean some things. You should see the Windows command prompt for that while (while the batch file is working).
Grazie wrote on 8/19/2014, 3:58 PM
I let HB finish and then it autos-out.

Grazie

winrockpost wrote on 8/19/2014, 8:24 PM
loaded the older Satish frame server working great in v12, which I edit in...this is a huge time saver for me, and file size saver...very generous to share,.thank you again.
CyberOtter wrote on 8/20/2014, 4:06 AM
Wow, thats just awesome.

I'm gonna try to adapt your workflow to TEncoder, which i can use for Prores encoding.

Thanks for the work, it opens many doors
Downunder wrote on 8/20/2014, 5:17 AM
Marco a BIG thank you for your time, effort and superb expertise in posting his time saving workflow. wow... I followed your install instuctions and so far I have rendered six one hour long excellent quality client videos for the web (almost) perfectly, just the audio looks to be a frame out of sync. As in another of my posts I am unable to get (any) .js JScript in Vegas Tools>Scripting !!! They are all in my Programs/C/Sony/Vegas Pro 13.00/Script Menu. So my workaround is Tools>Scripting>Run Script. This workflow direct to HB is a tremendous time saver so I am as happy as pig in s...you know what.

Once again Thank You.

Lee
ddm wrote on 8/20/2014, 11:32 AM
Marco, thanks so much for this. Great job and much appreciated!
VidMus wrote on 8/24/2014, 12:49 AM
Fails on some projects.

Some projects works fine. Some projects fail.

When it works, the Batch file cycles while DebugMode Frameserver creates the signpost.AVI and says Please wait... then the batch file will run HandBrake and all is fine.

When it does not work, the Batch file cycles while DebugMode Frameserver creates the signpost.AVI and says Please wait... the DebugMode Frameserver finishes creating the AVI file but the batch file keeps on cycling over and over and over again. It never runs HandBrake.

Videos are 60p.

I think that DebugMode Frameserver is supposed to do something the batch file is looking for and it is simply not happening. I have the one second 'black' event at the end and it still fails.

On a large project of 1 hour and 3 minutes it takes 1 minute and 21 seconds to write the signpost.AVI file. SSD drives make it quite fast. Maybe this setup does not like SSD's? Timing problem?

Most likely a bug with DebugMode Frameserver. I had the last build of Vegas 13 installed and updated it with the latest build and still no go.

So for me, this is dead in its tracks.

Update: It fails ALL large projects so this is a no go for me.

Marco. wrote on 8/24/2014, 6:54 AM
Maybe this is an issue with the file mount process or maybe it's due to partition C:\ is running out of stogare. Though the FrameServer only serves 1 Frame each cycle, the the file mount has to calculate and virtually reserve the storage for the complete file.

I know using partition C:\ is the real bottleneck of this process but due to my lack of better coding knowledge I can't optimize it in the way a user could individually select a render path.
Butch Moore wrote on 8/25/2014, 12:57 PM
On this Monday...I'm thankful for those smarter than I, and their willingness to allow me to bask in their light!

Thanks!
VidMus wrote on 8/25/2014, 6:01 PM
Plenty of room on the C:\ so no problem there.

Most likely a timing problem of some kind.

I got a ton of video work to do so I do not have time to figure it out right now. I cloned my system back to what it was before I started.

Once I get done with the videos I will try to figure this out again. I will then try it with the spinner drives and see what happens.

In the past, I have had some unreliable things happen when dealing with the C:\ and certain batch files.

Maybe someone who knows more about coding can help.

An additional thought, just for kicks I could try to stop the batch file that keeps cycling and run another one with the HB parts and see if it works or not. That will be later when I get the videos done.

Thanks...
Marco. wrote on 8/26/2014, 1:19 PM
What the batch file start_vegas2handbrake.bat does at this stage is:

- It waits until the Signpost AVI is bigger than 160000 bit (which is roundabout the least file size for a frame Vegas Pro could output).

- If the Signpost AVI is bigger than 160000 bit, it waits 5 seconds and then checks if the file size encreased.

- As long as the file size is encreasing (after a wait of 5 seconds for each cicle) this process will loop.

- Once after a wait of 5 seconds the file size will no longer encrease, the batch process assumes the Signpost AVI is finished, so it starts the file mount process.

This means if there's an issue in this part of the batch file, the only cases which could prevent leaving the cicles are: Either the Signpost AVI never reaches a size bigger than 160000 bit or the Signpost AVI never stops growing. Both cases would mean something's going wrong with the frameserving.

- There are no loop processes before file mounting then. Just a fixed time wait.

- Then again a re-check if the mounted file is bigger than 160000 bits, if not, after a 2 second wait it will re-try.

- Then HandBrake will be started and the process loops until the HandBrake start is done.

So my guess is either sometimes the FrameServer behaves strange or - like you said - for some unknown reason sometimes something breaks one of the batch commands between frameserving and file mounting.

.
Grazie wrote on 8/26/2014, 3:27 PM
Marco, this is working great. What could be done to OPEN the folder where the HB file was rendered to? I'm thinking along the lines of when Vegas finishes and it gives one the option to OPEN Folder - yes?

Cheers

Grazie

Marco. wrote on 8/26/2014, 4:13 PM
Good idea.

Via just these simple batch files there is no GUI, so no option available. But I'll investigate if there is a way to read the path of the destination folder and use the readout to automatically open it. Not sure if this works as you define the destination folder individually inside HandBrake.
If there is a way you could append the appropriate line to the given batch file. Gimme a while …
Marco. wrote on 8/26/2014, 4:23 PM
Ah, stop, there's a problem. In HandBrake you would individually define both file name and destination path. So the batch process has no chance to know where you saved which file, thus no chance get any information about that certain folder. So I see no way to get the folder opened automatically, at least not via the batch process It would have to be done by a HandBrake option.
Grazie wrote on 8/26/2014, 4:30 PM
I "hang" on your every word - Oh Great One!

Presently I'm:

* TWIXTOR-ing
*MERCALL-ing
*Magic Bullet Looks-ing
*NBTP-ing

ALL in one shot from VP>>FS>>HB . . . stunning.

Grazie

Marco. wrote on 8/26/2014, 4:42 PM
But what about if you needn't get that folder opened automatically while you still would use a fixed destination folder for your HandBrake renders?

Then you could open that folder (with fixed path) inside Vegas Pro via scripting and here again via a clickable icon in the toobar.

Would this kind of workflow help?
Grazie wrote on 8/26/2014, 4:52 PM
Tomorrow's another day? Need to get energy back. Sorry..... zzzzzzzzz

grazzzzzzieeeee
Marco. wrote on 8/26/2014, 4:55 PM
Same here. CU.