video format detection