Add a state to the input methods.
Read frame data from stdin as single stream of concatenated frames.
Get video width/height from command-line arguments.