fixed binary count and access binary bug. adapted createVideo function