Packaging machinery for all types of capsules