How to play avi files Raspberry Pi?

Raspberry Pi B 2014-01-07 Raspbian fully up to date.
Installed and configured motion for surveillance.
It works just fine and creates .avi files and .jpeg.
Installed Mplayer trying to run it from desktop was
not successful. I did try to do a command line by
executing sudo mplayer /path/to/file/video.avi. File
does not play.
Does someone have a config file for just playing an
".avi" file?

tia
oldcity

In what way was it "not successful"?

In what way does it "not play"?

Try running it without sudo.

I just did a straight sudo apt-get install mplayer
Here is my error message:

 $ mplayer /home/pi/Dropbox/xdropbox/01-20140222161921.aviMPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/pi/Dropbox/xdropbox/01-20140222161921.avi.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO:  [FMP4]  320x240  24bpp  5.000 fps  368.3 kbps (45.0 kbyte/s)
Clip info:
 Software: Lavf53.21.1
Load subtitles in /home/pi/Dropbox/xdropbox/
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
Error opening/initializing the selected video_out (-vo) device.


Exiting... (End of file)

$
Hope this helps,
oldcity

Hm, does your system have a graphical display manager installed?

I only did a straight sudo apt-get install mplayer.
There is a graphical presentation that comes up after dbl-clk of
the avi file you wish to watch.

  1. A large blue square with the mplayer wording.
  2. At upper right of screen is some kind of clickers dealing with
    audio and a showing of the avi file that was selected to view.
    However there is no way to cause the selected item to play.
    I clicked many combinations to no avail.

Have you tried running it from a console without sudo? sudo doesn't actually help you here, it removes you from your X session.

You have to run it from an xterm or the like.

I have tried it with and without sudo.
It simply does not work with Raspbian
on the Raspberry Pi.

I have abandoned mplayer.

I have installed vlc and it does the
job for me

Thank you for your responses.
oldcity