Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding flags #9

Open
dquinton opened this issue Aug 28, 2017 · 1 comment
Open

Adding flags #9

dquinton opened this issue Aug 28, 2017 · 1 comment

Comments

@dquinton
Copy link

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
Copy link
Member

hperrin commented Feb 5, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants