Partially working proper video dump in linux