GNOME Bugzilla – Bug 636046
The -r command line argument does not work if specified after the project name
Last modified: 2010-12-08 14:03:17 UTC
If I run "bin/pitivi project.xptv -r output.mkv" it does not seem to do anything, at least it doesn't render, the CPU is not used. If there is a good reason for not making it work, at least an error should be printed.
FWIW, it worked for me the other day with a syntax such as bin/pitivi --no-ui --render output.mkv input.xptv But I found bug #634715 along the way.
I found the problem, I'm working on a fix.
Created attachment 175611 [details] [review] Using the OptionParser correctly The basic change was to properly use OptionParser (change -r to store a str, not a boolean), then I had to change the run() method to properly use that value. I also did some cleanup, if you think it's too much please tell me and I'll split it into multiple patches.
Review of attachment 175611 [details] [review]: My main concern is the removal of the "no-gui" option. Is there a use case for headless pitivi other than rendering?
so the verdict seems to be - we would appreciate the up the patch to be split up - don't remove the --no-ui option - we would prefer you not to change the copyright information in the file. Your name and email address will be included in the commit history.
(In reply to comment #6) > - we would prefer you not to change the copyright information in the file. Your > name and email address will be included in the commit history. Just wanted to clarify this point a bit further. It's fine to assign copyright if the change is 'substantial' (and this could be considered 'substantial') but we would appreciate it if you would include a contact address.
The minimal change to fix this bug is to correctly use OptionParser, please have a look: https://github.com/aleb/pitivi/commit/716186045593f3acffb9f1cf2fd9ddb1fc05687f
commit 505017b7cfa1261abe04a608761097b5d01e2a53 Author: Alex Băluț <alexandru.balut@gmail.com> Date: Wed Dec 1 23:57:08 2010 +0100 fix bug 636046 - Properly use OptionParser