If you don't have the omxplayer do apt-get -y install omxplayer
To play a video file you just need to type :
omxplayer myvideo.mp4
If you are using HDMI you should use this command to pass audio over the HDMI interface :
omxplayer -o hdmi myvideo.mp4