tests/camerainput: refine code

guess fourcc from input file name
move m_dataMode to EncodeInputCamera
use pure virtual for isEOS().