*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: 1 ... 11 12 13 [14] 15
Print
Author Topic: MPlayer working on the XO  (Read 187625 times)

#195 Re: MPlayer working on the XO

anna
Master Contributor
***
Posts: 326


April 09, 2011, 02:46:15 PM

Hi Anna,

The download link is no longer working, could you please repost or reupload?


Here ya go:

http://www.sendspace.com/file/c817y7
Logged

#196 Re: MPlayer working on the XO

Ricardo
Commenter

Posts: 10


G1G1D1 2007


April 10, 2011, 09:23:10 AM

Thank you Anna,

It is working great.  I can now play shows on the XO for my kids, most of which I have in flv and m4v format.

In case the link does not last long, I copied the file over to this online folder at http://www.4shared.com/dir/WHdEr6xJ/XO_online.html

And since it might be useful to someone else, below are all the steps I followed, thanks to your instructions plus a few more details while trying to minimize typing:

How to Install MPlayer on the XO and Play Video Files

1.   Download the ‘mplayer.tar’ file (thanks to Anna) http://www.4shared.com/file/Yhne9Zf3/mplayer.html onto a USB stick, which in my case is named ‘XOUSB’,

2.   Start the XO on Sugar, and Open the Terminal activity,

3.   Type the following, pressing enter after each line:
 
  su
  cd /usr/bin/
  mv /media/XOUSB/mplayer.tar .

  tar -xf mplayer.tar
  chmod +x mplayer

  rm mplayer.tar
  mkdir /home/olpc/.mplayer
  mv config /home/olpc/.mplayer/
  exit


4a.   Play all flv videos that are in the same USB stick under a folder named Videos:

  mplayer –fs /media/XOUSB/Videos/*.flv


And you can use  >  (shift .) to skip to the next video, and pause with the space bar.

4b.   Play while in Gnome by right clicking on the desired video file, select 'Open with Other Application...', 'Use a custom command', and type:

  mplayer -fs


This will be remembered, so now you can play video files in Gnome by right click and select "Open with 'mplayer'".

Cheers,

Ricardo
« Last Edit: May 15, 2011, 09:07:48 AM by Ricardo » Logged

#197 Re: MPlayer working on the XO

jl
Commenter

Posts: 25


May 08, 2011, 07:17:24 PM

I followed Ricardo's instructions, but videos playback only in the centre of the screen. Is there a way to make them full screen?

Thanks,

JL
Logged

#198 Re: MPlayer working on the XO

anna
Master Contributor
***
Posts: 326


May 08, 2011, 08:25:27 PM

I followed Ricardo's instructions, but videos playback only in the centre of the screen. Is there a way to make them full screen?

The f key should toggle fullscreen.  If it doesn't, it might be an issue with the video file.

And make sure you have the latest and greatest mplayer and your /home/olpc/.mplayer/config file set up properly.
Logged

#199 Re: MPlayer working on the XO

jl
Commenter

Posts: 25


May 09, 2011, 04:55:17 PM

Anna,

Thanks for the suggestions, but the F key doesn't work, the files worked on the earlier version of mplayer and apart from following the instructions Ricardo has above -- which seem to work for him -- I'm not sure how to make sure it is the latest and greatest or set up the necessary files. I'll keep at it.

jl
Logged

#200 Re: MPlayer working on the XO

anna
Master Contributor
***
Posts: 326


May 09, 2011, 05:22:54 PM

Thanks for the suggestions, but the F key doesn't work

Leave off the -fs switch and see if then the f key will toggle fullscreen.  Also make sure you've got this in /home/olpc/.mplayer/config

Code:
vo=sdl
ao=alsa
framedrop=1
lavdopts=skiploopfilter=all:fast=1
Logged

#201 Re: MPlayer working on the XO

Ricardo
Commenter

Posts: 10


G1G1D1 2007


May 15, 2011, 09:00:16 AM

Hi jl,

The video files I have played so far have played in full screen thanks to the -fs when calling mplayer as mentioned by Anna, so all I can think of that could be causing this is the file itself.    Please take a look at the format I have been using with very good results on this post: http://www.olpcnews.com/forum/index.php?topic=4992.msg33306#msg33306

BTW, there is an easier way to play video files on the XO than having to go to Terminal and run a command, I simply switched to Gnome and did the following:

  • On the Gnome desktop, open the SD card, and
  • right click on a video file
  • select 'Open with Other Application...'
  • expand 'Use a custom command'
  • and type:   mplayer -fs
  • then click Open, and the video will play.

The best part is that the option to "Open with 'mplayer'" is now available when you right-click a video file.  But you have to close and reopen the window/folder with your video files (only this first time) for the menu option to show up.

Cheers.
Logged

#202 Re: MPlayer working on the XO

jl
Commenter

Posts: 25


July 24, 2011, 09:45:50 AM

I never did get Mplayer working with Anna's "latest and greatest", and so have still been using an older version of Sugar that I had working with Roto's instructions. Since Sugar 11.2.0 has just been released I thought I'd download it and try again, but just wanted to make sure it should work with Anna's version. Any thoughts?

Thanks,

jl
Logged

#203 Re: MPlayer working on the XO

anna
Master Contributor
***
Posts: 326


July 24, 2011, 01:46:00 PM

I never did get Mplayer working with Anna's "latest and greatest", and so have still been using an older version of Sugar that I had working with Roto's instructions. Since Sugar 11.2.0 has just been released I thought I'd download it and try again, but just wanted to make sure it should work with Anna's version. Any thoughts?

I haven't tested it, but probably not.  11.2.0 is based on Fedora 14.  My "latest and greatest" was compiled for Fedora 11.  It's on my todo list to update it.
Logged

#204 Re: MPlayer working on the XO

jl
Commenter

Posts: 25


July 24, 2011, 06:11:41 PM

Thanks Anna.
Logged

#205 Re: MPlayer working on the XO

anna
Master Contributor
***
Posts: 326


July 24, 2011, 10:48:52 PM

Thanks Anna.

Don't thank me yet.  But if this works, then you can thank me.  Smiley

http://www.sendspace.com/file/lmv5k4

I tested it on a clean 11.2.0 XO and it looks beautiful.  Though I did have to hit f to get fullscreen.  But it's working on an F14 XO.  This was horrible and ugly to compile, much more than usual.

Before y'all gripe at me about fullscreen, make sure to hit f to get fullscreen!  It starts off as a tiny little window in the upper left, but then hit f and then you'll get fullscreen goodness.
« Last Edit: July 24, 2011, 11:28:06 PM by anna » Logged

#206 Re: MPlayer working on the XO

jl
Commenter

Posts: 25


October 30, 2011, 07:01:31 PM

Hi Anna,

Sorry to bother you again, but if you still have this file is there any chance you could post the link again?

thanks very much

jl
Logged

#207 Re: MPlayer working on the XO

anna
Master Contributor
***
Posts: 326


November 15, 2011, 07:05:33 PM

I had to redo Pianobar anyway, so I went ahead and did a fresh compile of mplayer from the latest svn snapshot.  On and for the XO-1 running 11.3.0.

http://www.sendspace.com/file/hcbbh1
Logged

#208 Re: MPlayer working on the XO

jl
Commenter

Posts: 25


November 18, 2011, 08:18:53 PM

Thanks very much Anna.
Logged

#209 Re: MPlayer working on the XO

MARTINS
New

Posts: 2


May 29, 2012, 08:13:37 AM

Hello and thank you very much for your effort anna.

Can you please repost the latest version? The file is gone...
Logged
Pages: 1 ... 11 12 13 [14] 15
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 36
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 19
Total: 19