refactor: cleaned up videocapture opening