sciactive / pulverize

A multi-process rendering script for Blender VSE.
GNU General Public License v2.0
60 stars 13 forks source link

Adding flags #9

Open dquinton opened 7 years ago

dquinton commented 7 years ago

I'm very glad I found your Pulverize because otherwise Blender was going to fall second place to other video editors like openshot...

It works - I mean I can render my blender project utilising 4 cpu threads.

And I run it like this with (cheating) flags: run-pulverize -ke4

where 'run-pulverize' is a bash script to check the command line for flags and then run Pulverize.php..

and I added yad to browse for the blender file so that the command need not be run only in the blender dir

#!/bin/bash

t=`echo "$*" | grep -Eo '[0-9]{1,}'`
if [[ $* == *-*k* ]] ; then keep=true ; else keep=false ; fi
if [[ $* == *-*e* ]] ; then err=true ; else err=false ; fi

pulverize.php "`yad --center --title='Choose a Blender file' --file \
--filename=$HOME/Projects/blender/ --height=400 --width=500`" $t \
'{\"keepTempFiles\":$keep,\"displayStdErr\":$err}'

If I knew PHP then perhaps I would try making this to work in the Pulverize script? unless its a bad way of doing flags.

anyway, at least I can clear up the command line this way

the problem is that ffmpeg error messages don't display if the threads argument is given - and without it they do show. Also the script output always shows "Removing temporary video files..." whatever the keepTempFiles value is.

hperrin commented 6 years ago

I think I just need to redesign the way it takes arguments.