Added video format and updated code.

Added video format and updated code.