Adding flags #9

Open
opened 2017-08-27 19:31:02 -07:00 by dquinton · 1 comment
dquinton commented 2017-08-27 19:31:02 -07:00 (Migrated from github.com)

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.

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 2018-02-05 10:54:01 -08:00 (Migrated from github.com)

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

I think I just need to redesign the way it takes arguments.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sciactive/pulverize#9
No description provided.