added two pass support (same syntax as mencoder)