Remove trailing spaces
Allow stdin input video