How to play avi files Raspberry Pi?


 
Thread Tools Search this Thread
Operating Systems Linux Debian How to play avi files Raspberry Pi?
# 1  
Old 02-23-2014
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
# 2  
Old 02-24-2014
In what way was it "not successful"?

In what way does it "not play"?

Try running it without sudo.

Moderator's Comments:
Mod Comment Posting "Does not work" without explanation does not help you or anyone. If a command does not work for you, please show the exact circumstances you used it, and the exact error or malfunction you received. Do not paraphrase errors, or post the text as links, images, or attachments if you can avoid it: Paste the exact message, in code tags, like [code] text [/code] or by selecting the text and using the Image button.

Thank you.

The UNIX and Linux Forums
# 3  
Old 02-24-2014
I just did a straight sudo apt-get install mplayer
Here is my error message:
Code:
 $ 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
This User Gave Thanks to oldcity For This Post:
# 4  
Old 02-24-2014
Hm, does your system have a graphical display manager installed?
# 5  
Old 02-24-2014
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.
# 6  
Old 02-25-2014
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.
# 7  
Old 02-25-2014
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
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

How to play video files one after the other continously?

Hi, There are many MP4 files in a folder say 50 files . All these files are video clipping files.Instead of playing the video one by one , is it possible to play all video clipping files into single shot ? Say for example when i play one video file it gets over after sometime and to view... (5 Replies)
Discussion started by: Maddy123
5 Replies

2. What is on Your Mind?

Raspberry PI

The small red box to the left of TV is the Raspberry PI. Successfully installed and running Raspbian Wheezy. I learnt about Raspberry PI from Neo here on unix.com. Thanks to you Neo :b: (6 Replies)
Discussion started by: balajesuri
6 Replies

3. UNIX and Linux Applications

Burn avi to cd with k3b

Is there a way to burn avi to cd with k3b? When I tried the disc became unusable. I tried to open the disc on 2 different computers with no luck. (0 Replies)
Discussion started by: cokedude
0 Replies

4. What is on Your Mind?

Raspberry Pi anyone?

Anyone order or get the new Rasberry Pi? I'm still waiting. Even though it's a fun project, I think these will turn out to be toys for people who already have PC's, and a boon to those who do not. But that is not stopping me. If my wallet holds out, maybe I can build a Raspberry Pi beowulf... (1 Reply)
Discussion started by: jim mcnamara
1 Replies

5. Slackware

Can't play sound files with aplay or cat to /dev/dsp

I am having problems using soundes. Until a few moments ago the following commands produced errors and no sound: cat /usr/share/apps/kolf/sounds/blackhole.wav/ > /dev/dsp yielded: /dev/dsp: Invalid argument cat /usr/share/apps/kolf/sounds/blackhole.wav > /dev/audio yelded: /dev/audio:... (3 Replies)
Discussion started by: slak0
3 Replies

6. UNIX and Linux Applications

Convert .mp4 to .avi

Hello, I need software to convert multimedia files. What is the good software? I was looking for it on the web, but I did not find any special. Thanks... (1 Reply)
Discussion started by: feliks
1 Replies

7. Linux

fedora: problem to play mp3 files.

hi friends. i have tried all above option to play mp3 files but i am not able to listen mp3 files. i have tried above option using yum like $ su - # yum install gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg i got a error like Loaded plugins: refresh-packagekit Could... (5 Replies)
Discussion started by: praneshmishra08
5 Replies

8. Solaris

Playing AVI in solaris 8

how to play avi file in solaris8 ??... it is not opening in realplayer 7 ..... i also dont have the root login ...plz help !!! (2 Replies)
Discussion started by: coolguyshail
2 Replies
Login or Register to Ask a Question