Notices


Reply
Thread Tools
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#121
Thanks to Eduard Bartosh, MPlayer is now available as a .deb package for Nokia 770. You can download this new version here: https://garage.maemo.org/frs/?group_id=54
Be sure to read release notes first if you used one of the older older non-packaged versions.
 
Posts: 27 | Thanked: 2 times | Joined on May 2006 @ India
#122
Originally Posted by Serge
Thanks to Eduard Bartosh, MPlayer is now available as a .deb package for Nokia 770. You can download this new version here: https://garage.maemo.org/frs/?group_id=54
Be sure to read release notes first if you used one of the older older non-packaged versions.
I have successfully installed the mplayer, but it does not apper anyhere in the start menu. How can I start the mplayer?

Thanks.
 
=DC='s Avatar
Posts: 564 | Thanked: 8 times | Joined on Nov 2005 @ Fayetteville, GA
#123
I think Serge failed to mention that you still need to use xterm to use the player. It's just an easier way to install the important stuff. We're still waiting for the GUI to be created. It would be nice to have something similar to the newly released Media Streamer , but I'd be happy with something like the built-in audio/video players.
__________________
NET9 - The Future of Mobile Information Technology
solid.gold.code - Is Your Code Solid Gold?
Internet Tablet Art Gallery - Artwork Made Using Internet Tablets
3pm - So good, it's illegal
 
Posts: 106 | Thanked: 3 times | Joined on Dec 2005
#124
Originally Posted by Serge
Thanks to Eduard Bartosh, MPlayer is now available as a .deb package for Nokia 770. You can download this new version here: https://garage.maemo.org/frs/?group_id=54
Be sure to read release notes first if you used one of the older older non-packaged versions.
Very nice, thank you.

As well as handling video nicely, an unexpected extra is that mplayer also plays my Ogg Vorbis files. What's more, it seems to do so more smoothly than the specific Ogg Vorbis Player application, and using negligible CPU. Is this expected? How is mplayer doing this - is it converting to mp3 and then using the DSP, or something like that?

Regards - Neil
 
Posts: 106 | Thanked: 3 times | Joined on Dec 2005
#125
Originally Posted by =DC=
I think Serge failed to mention that you still need to use xterm to use the player. It's just an easier way to install the important stuff. We're still waiting for the GUI to be created. It would be nice to have something similar to the newly released Media Streamer , but I'd be happy with something like the built-in audio/video players.
Here's a GUI of sorts ... Install Midnight Commander, and add the following to its Extension File setup anywhere before the existing entry for ogg123/xmms:

shell/.ogg
Open=mplayer %f

(And obviously, likewise for the other file extensions you want to go through mplayer.)

Then you can use MC to browse your videos/music, and double clicking on a file in MC will cause mplayer to play it.

It's not exactly Rhythmbox, I know, but it works (rather well).

- Neil
 
=DC='s Avatar
Posts: 564 | Thanked: 8 times | Joined on Nov 2005 @ Fayetteville, GA
#126
Thanks Neil, that definitely helps. Now we just have to wait for a proper GUI and we're set.
__________________
NET9 - The Future of Mobile Information Technology
solid.gold.code - Is Your Code Solid Gold?
Internet Tablet Art Gallery - Artwork Made Using Internet Tablets
3pm - So good, it's illegal
 
Posts: 27 | Thanked: 2 times | Joined on May 2006 @ India
#127
Originally Posted by =DC=
I think Serge failed to mention that you still need to use xterm to use the player. It's just an easier way to install the important stuff. We're still waiting for the GUI to be created. It would be nice to have something similar to the newly released Media Streamer , but I'd be happy with something like the built-in audio/video players.
I tried the following
./mplayer /home/user/MyDocs/.videos/Discovery.avi

I got the following error
Sh: ./mplayer: not found

Any help?

Thanks.
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#128
Just run 'mplayer /home/user/MyDocs/.videos/Discovery.avi' without './' part. It would be needed if you had mplayer binary in the current directory and wanted to run it, that was the case with older non-packaged versions. Now mplayer binary is installed in the system and can be run from anywhere.

As for Discovery.avi video, it is not the best file to play by mplayer right now. Mplayer is optimized for video resolutions that are exactly twice smaller than the screen size (320x240 and 400x240 for example). For such resolutions it uses hardware pixel doubling and works fast. Discovery video is smaller than that, so it needs to be scaled and scaling takes a lot of cpu resources. If you want to get the best performance for Discovery video, you can run mplayer as 'mplayer -vo x11 /home/user/MyDocs/.videos/Discovery.avi' (explicitly force it to use a faster x11 driver with hardware pixel doubling), but you will get some black borders around image.

Currenly mplayer is good at playing video transcoded to 400x240, 400x224 (16:9) and 320x240 (4:3) resolution and is capable to play it at full frame rate.

Also youtube video seems to have 320x240 resolution, so it gets played fine by mplayer too. Used the following python script to download youtube files (though did not try it to run on the device itself yet ): http://www.arrakis.es/~rggi3/youtube-dl/

A better universal scaler that will work reasonably fast for any resolutions is planned in the future releases (along with YUV colorspace support).

As for the GUI, it would be really good to have it, any volunteers to create and contribute it?

Last edited by Serge; 2006-09-05 at 13:43.
 
MikeL's Avatar
Posts: 356 | Thanked: 27 times | Joined on Jun 2006 @ Madrid, Spain
#129
Serge

I am using the latest version of mplayer (.deb) and attempting to stream mpeg1 provided files from TVersity. When the files are on the Nokia's MMC the files play very well on the Nokia 770 using mplayer with a 320x240 video resolution (Set in TVersity profiles.xml for Nokia 770), with only a slight audio miss-alignment.

If however I attempt to stream the file to the Nokia 770 it's locking up, however I then noticed that the mplayer has an option to add a "bandwidth" value.

So....

I added mplayer -bandwidth to a TVersity supplied Video URL and what do you know; I had almost perfect streaming, not withstanding the above audio issue and some slight frame dropping. (The bandwidth I used is a wild guess at this stage)

The following is a capture of the xterm information while streaming this mpeg1 video file.

mplayer -bandwidth 10000000 http://***.***.****.***:41952/geturl...f%26ext%3d.mpg
MPlayer 1.0pre8-maemo.4 (C) 2000-2006 MPlayer Team
CPU: ARM


Unknown option on the command line: -bandwidth
Error parsing option on the command line: -bandwidth
/ $ mplayer -bandwidth 10000000 http://***.***.****.***:41952/geturl...f%26ext%3d.mpg
MPlayer 1.0pre8-maemo.4 (C) 2000-2006 MPlayer Team
CPU: ARM


/usr/share/fonts/SwaRR4nh.ttf doesn't look like a font description, ignoring.
Cannot load font: /usr/share/fonts/SwaRR4nh.ttf
Terminal type `xterm' is not defined.

Playing http://***.***.****.***:41952/geturl...f%26ext%3d.mpg.
String appears to be already escaped in url_escape %21F2
String appears to be already escaped in url_escape %21F2
String appears to be already escaped in url_escape %31A2
String appears to be already escaped in url_escape %21F2
String appears to be already escaped in url_escape %21F2
String appears to be already escaped in url_escape %21F2
String appears to be already escaped in url_escape %21F2
String appears to be already escaped in url_escape %21F2
String appears to be already escaped in url_escape %21F2
STREAM_HTTP(1), URL: http://***.***.****.***:41952/geturl...f%26ext%3d.mpg
Connecting to server ***.***.****.***[***.***.****.***]: 41952...
Cache size set to 300 KBytes
Cache fill: 2.67% (8192 bytes)
MPEG-PS file format detected.
VIDEO: MPEG1 320x240 (aspect 1) 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
================================================== ========================
Trying to force audio codec driver family libmad...
Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.
Requested audio codec family [mp3] (afm=mp3lib) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [ffmp2] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio decoder)
================================================== ========================
[VO_SDL] Using driver: x11.
================================================== ========================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
================================================== ========================
[AO ESD] latency: [server: 0.28s, net: 0.00s] (adjust 0.28s)
AO: [esd] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [sdl] 320x240 => 320x240 Planar YV12 [fs]
[VO_SDL] Info - please use -vm or -zoom to switch to the best resolution.
A: 133.5 V: 133.4 A-V: 0.063 ct: 0.167 3204/3204 33% 35% 24.9% 1801 0
Exiting... (Quit)
/ $
So I am now wondering what slight tweaks I should/could make to improve situation for these TVersity transcoded and streamed mpeg1 files?
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#130
2MikeL: Seems like you use old non-optimal settings from stale '/home/user/.mplayer/config' file (sdl for video, esd for audio), it is better to remove it. Currently default options are stored in '/etc/mplayer/mplayer.conf' (this file should not be edited), you can override any of them with '/home/user/.mplayer/config' which contains your local options and has higher priority. And the command line options have the highest priority.

If you find that '-bandwidth 10000000' works best for you and don't want typing it every time you invoke mplayer, you can add it to '/home/user/.mplayer/config' in the following way:
Code:
bandwidth=10000000
Hope this helps.

Last edited by Serge; 2006-09-05 at 17:54.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:48.