MPlayer which version is suitable
Hi,
can anyone tell me if I can install mplayer on my N770? Do I need a special version? I'm going to see videos streamed through a socket connection. Will that be possible with mplayer installed on a N770? Thanks. |
There was some work on porting mplayer to 770, but I'm not sure what is the state of the port now. Should be easier now that we have eabi and softfloat.
I think it's indeed possible to get mplayer with limited codecs working on 770, but oto, just compiling more codecs would be just as good. |
Compiling mplayer for 770 is not difficult. Just tested MPlayer1.0pre8 (the only tweaks are a minor change in the source to workaround internal compiler error and explicit addition of -march=armv5te optimization option). The problem is that it works too slow to be usable:
Code:
AVI file format detected. Code:
What can be done with the hardware? |
I see that you are using X11 for video output.
You may want to try using SDL in stead, it should work much better as the X11 driver tends to be cpu-intensive. Also, could you post your binary somewhere? |
Here is a binary: http://ufo2000.xcomufo.com/files/mpl...9-armel.tar.gz
Also here is some interesting link: http://maemo.org/pipermail/maemo-dev...ay/003957.html Probably mplayer can be improved by using DSP for audio decoding, enabling pixels doubling for faster video playback and finding a way for enabling hardware accelerated colorspace conversion. But I don't have any time to work on this in the forseeable future. So compiling mplayer is pretty much simple, a harder task is to optimize it and tune for Nokia 770 so that it can become useful :) |
Just experimented with mplayer a bit more. Looks like it is really mp3 decoding built in mplayer that is very slow (probably because of floating point use as pointed by Frantisek). I tried to encode video with vorbis audio stream (mplayer has fixed point vorbis decoder) and it works a lot better, actually it is even almost watchable :)
Here is a script I used for encoding video in this test: Code:
#!/bin/bash Also tested streaming video from http url, it works fine but seeking is not supported. Mplayer also has its own streaming server, probably it should support seeking and work better, but I did not test it. So I see a good potential for mplayer :) edit: Looks like mplayer can be compiled with libmad which is a fixed point mp3 decoder implementation. So even 'normal' AVI files created by following instructions from https://maemo.org/maemowiki/VideoEncoding could be probably played with mplayer :) And some more interesting links: http://n770galaxy.blogspot.com/2006/...-progress.html http://maemo.org/pipermail/maemo-dev...ry/002457.html http://maemo.org/pipermail/maemo-dev...ne/004244.html http://maemo.org/pipermail/maemo-dev...ay/004024.html http://maemo.org/pipermail/maemo-dev...ry/002859.html |
Quote:
What do I have to do to start mplayer? Thanks |
Quote:
./mplayer -vo sdl -ao sdl [filename or url] Adding '-fs' option will start video playback scaled to fullscreen, but it will work even slower. All in all it is just a test of video decoding capabilities of a single ARM core (with certain optimizations and device features still not used) and not quite enduser ready. |
Updated mplayer binary: http://ufo2000.xcomufo.com/files/mpl...2-armel.tar.gz
Changes: * compiled with libmad (fast decoding of mp3 audio) * tweaked keybindings, now it is completely usable on Nokia 770 - fullscreen key works, sound volume can be changed, enter key works as pause/resume, so all the keys work more or less the same as in default video player Installation: 1. Copy this file to device (for example into Documents folder) 2. Start X Terminal 3. Find this file on the device (run 'cd MyDocs/.documents' for Documents folder) 4. Unpack archive: 'tar -xzf mplayer-1.0pre8-20060712-armel.tar.gz' 5. Enter 'MPlayer-1.0pre8' directory: 'cd MPlayer-1.0pre8' 6. Try to play discovery video: './mplayer /home/user/MyDocs/.videos/Discovery.avi' 7. Have fun Note: if you tried a previous build, also delete old configuration file: 'rm /home/user/.mplayer/config', a new build has a different default configuration file (sdl for video output, esd for audio, framedrop option enabled, enabled libmad library, configured aspect ratio). A patch with tweaks for mplayer 1.0pre8 is here: http://ufo2000.xcomufo.com/files/mpl...-20060712.diff Configured with the following options: ./configure --disable-mencoder --disable-alsa --enable-mad --disable-xv --disable-mp3lib --disable-x11 --target=arm-linux That's all, I'm done now and not going to do anything else :) Possible future improvement can be some kind of files selection gui that can start mplayer for playing video. And of course performance optimizations for mplayer itself. |
Very cool. Uses about 80% CPU to decode a DVD encoded with the "good" setting.
The only real annoyance is that the screen blanking isn't disabled, but presumably a wrapper script or other form of GUI launcher could fix that by topping and tailing the mplayer invocation. |
All times are GMT. The time now is 08:48. |
vBulletin® Version 3.8.8