maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   MPlayer which version is suitable (https://talk.maemo.org/showthread.php?t=2405)

Serge 2006-09-04 03:43

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.

syam 2006-09-04 15:05

Quote:

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= 2006-09-04 17:33

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.

neiljerram 2006-09-04 22:33

Also handling Ogg Vorbis?
 
Quote:

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

neiljerram 2006-09-04 22:50

Gui :-)
 
Quote:

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= 2006-09-04 23:14

Thanks Neil, that definitely helps. Now we just have to wait for a proper GUI and we're set.

syam 2006-09-05 06:55

Quote:

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.

Serge 2006-09-05 07:19

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? ;)

MikeL 2006-09-05 16:52

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.

Quote:

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?

Serge 2006-09-05 17:52

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.

MikeL 2006-09-05 18:04

Quote:

Originally Posted by Serge
Hope this helps.

Thanks Serge, I did follow the instructions to remove the config file before installing the new .deb version of mplayer but then tried to run the old ./mplayer command from the previous directory where an old version of mplayer was still stored. I imagine this could have re-created the file? (What else should we delete from an old mplayer install i.e. the old mplayer executable?)

Anyway config was there again, I removed it and now mplayer playback is very good and it looks like audio is fine with a quick test thank you for your help! :D

--edit-- It seems I do not need the -bandwidth option now either :o Thanks very much Serge it works very very well streaming from TVersity.

itkach 2006-09-06 01:49

Tried the new .deb package. It installed fine, but all I get when I try to run mplayer in xterm is "Segmentation fault" message. Any ideas why this happens?

Serge 2006-09-06 05:15

2itkach: Do you use swap? Some problems with crashes on start have been observed before: http://www.internettablettalk.com/fo...8&postcount=96
Also you can try to reboot the device to see if it helps.

itkach 2006-09-06 14:40

Rebooting didn't help. Turning swap off didn't help. Rebooting after turning off swap didn't help. It doesn't even get to the point of printing out something meaningful like in the other thread. All I get is
Code:

/ $ mplayer
Segmentation fault


maxilogan 2006-09-06 14:46

Can mplayer play .rm files? Is there any particular command line to input?

polyesterangst 2006-09-06 16:09

how do I play video on memory card
 
I am a newbie to Linux and Xterm, I understand how to run mplayer in Xterm, but have a few questions.

Do I need to be root to run a video off my memory card? If so, does 'sudo su' solve that issue.

I have a video in a folder 'Videos' on my memory card. Do I need to have mplayer installed somewhere specific to access it, like I have seen in this forum, about moving it to the /usr/bin? So to run the video off the memory card, what would be the path I need for mplayer to access it?

Thanks

MikeL 2006-09-06 16:15

If you have latest mplayer installed just start xterm session and type

mplayer /media/mmc1/Videos/<filenameandextension>

If you have used a combination of upper and lower case characters for your video folder and filename then type the same in xterm.

polyesterangst 2006-09-06 16:48

Thanks MikeL, you keep saving me. Next I will try the Opera to mplayer that you are doing with TVersity. That I need to gain root on for that to work correct? Which means I will need Dropbear and work with Wiki directions for gaining root, right?

MikeL 2006-09-06 17:42

Quote:

Originally Posted by polyesterangst
Thanks MikeL, you keep saving me. Next I will try the Opera to mplayer that you are doing with TVersity. That I need to gain root on for that to work correct? Which means I will need Dropbear and work with Wiki directions for gaining root, right?

Wait, If you are just trying TVersity from inside your own network you do not need Hamachi etc. Its just simply a matter of pointing the browser to ***.***.***.***:41952/LIB Then if you traverse the Tree and select a video URL pasting it in xterm i.e. mplayer -bandwidth 10000000 <TVersity provided URL> it should work more or less. Take a look at this thread over at TVersity forum http://forums.tversity.com/viewtopic...er=asc&start=0

Please read end of thread as this is more relevant with regard to profiles.xml settings in TVersity when using mplayer.

Please do bare in mind I have been testing so thoughts ideas and collection of information may be a bit hap hazard at this stage.

Luna 2006-09-06 18:52

When trying the new deb version I cannot seem to get the same performance with the mplayer.conf setup as I can with the following script I was using

Code:

/usr/bin/mplayer /media/mmc1/Video/$1 -fs -vo x11  -ao gst -ac dspmp3
Code:

vo=x11
ac=dspmp3
ao=gst
framedrop=yes
afm=dspmp3
noslices=true
monitorpixelaspect=1
fs=yes
cache=300
font=/usr/share/fonts/SwaRR4nh.ttf
subfont-text-scale=3

It seems to ignore the gst also and uses esd unless I specify in the command line. Same goes with x11.

So what am I doing wrong?

polyesterangst 2006-09-06 18:56

Thanks MikeL,

I will check that out to get a better understanding. But this may be a dumb question, how did you toggle from full screen to mplayer in the header?

I do wish to do the Hamachi concept you are working with, as I saw on another forum, that you able to stream from TVersity through Hamachi using mplayer, but not through Media Streamer, yet. I will keep my fingers crossed for that when they at TVersity do their update.

So with Hamachi running in the background, in theory, then Media Streamer should be working with TVersity over a secure network. I might need to bug you on the hamachi setup when I get some time to put that together on the N770.

Cheers

MikeL 2006-09-06 19:38

Quote:

Originally Posted by polyesterangst
I do wish to do the Hamachi concept you are working with, as I saw on another forum, that you able to stream from TVersity through Hamachi using mplayer, but not through Media Streamer, yet. I will keep my fingers crossed for that when they at TVersity do their update.

Yes but even when we get TVersity working we will not be able to stream pictures and Video to the Nokia 770 using Media Streamer until a new release of Media Streamer announces these features. (However Media Streamer already works as a controller passing them to my UPnP Philips SL300i connected to TV & Hi-Fi) We will need to use mplayer for the Videos and the Opera browser to view the pictures.
Quote:

Originally Posted by polyesterangst
So with Hamachi running in the background, in theory, then Media Streamer should be working with TVersity over a secure network. I might need to bug you on the Hamachi set-up when I get some time to put that together on the N770.

Yes that's about the size of it! Can you imagine having your PC in one country running TVersity and be in another country streaming all your media securely to either the Nokia 770 (A truly portable Wi-Fi device) or alternatively a UPnP Hardware player.

I am looking forward to the GUI Version of Hamachi for the Nokia 770 :)

polyesterangst 2006-09-06 20:08

Quick hints for mplayer
 
Can someone give me a summary list of commands for mplayer.

I am looking for any volume control or adjusting frame size. I ran a video off my mmc that I used an older version of mconvertor for N770 that works in the system video player fine, but was really quiet in mplayer, and was full screen and the screen toggle button by the power switch did not reduce the size.

Thanks,

elpaso 2006-09-07 08:31

Any hope for mms?
 
Hello,

I've just installed mplayer and it works with avi and mp3's, but I couldn't play any test WMV mms stream.

What am I doing wrong?

Where could I find a list of supported formats/streams?

this was my test command:

mplayer 'mms://media.fastweb.it/WM9/raiclick/FMVRAI04000001062556.wmv?idCnt=35094&path=RaiClick Web^Home^Fiction^Poliziesco^IL+COMMISSARIO+MONTALB ANO#1'

Thanks!

bsterix 2006-09-07 19:01

Quote:

Originally Posted by Nickster
First, become root.

Then create a new file named /usr/bin/runmplayer

$ vi /usr/bin/runmplayer

Add these lines to it and save it:

Code:

#!/bin/sh

/usr/bin/mplayer -fs -framedrop -vo x11 -ao sdl -cache 800 "$1"

Make it globally executable.

$ chmod 0755 /usr/bin/runmplayer

Why do i have to become root to create runmplayer? Wouldnt it work, if i create the file in my home-directory?

What is the meaning of the second runmplayer in the line inserted in opera.ini?

floone 2006-09-07 20:13

Hi,

I suppose asx streams are not supported? E.g. http://www.omroep.nl/live/radio1-breed.asx or http://www.omroep.nl/live/radio1-smal.asx

Cheers,

Floone

maba 2006-09-07 22:34

Ok, so I'm now announcing MPGUI, a simple GUI frontend for MPlayer.

Read more about it here.

This of course requires you to have MPlayer installed (via the application manager).

Let me know if it works for you.

Also, Serge, I would be happy to contribute the source code of this program for inclusion in your project. Please contact me if you find this interesting. :)

=DC= 2006-09-08 00:40

Nice work maba! Works perfectly. Now all we need is a way to launch it from the menu and we'er pretty much set. Thanks for making this.

maba 2006-09-08 05:12

Quote:

Originally Posted by =DC=
Nice work maba! Works perfectly. Now all we need is a way to launch it from the menu and we'er pretty much set. Thanks for making this.

Thanks, nice to hear.

Also, I have now made a .deb package which installs via the Application Manager and comes with a menu entry to launch it so there you go ;)

=DC= 2006-09-08 05:49

Quote:

Originally Posted by maba
Thanks, nice to hear.

Also, I have now made a .deb package which installs via the Application Manager and comes with a menu entry to launch it so there you go ;)

Wow, that was quick. Awesome! Thanks Mauricio. :)

faber 2006-09-08 06:46

Quote:

Originally Posted by elpaso
mplayer 'mms://media.fastweb.it/WM9/raiclick/FMVRAI04000001062556.wmv?idCnt=35094&path=RaiClick Web^Home^Fiction^Poliziesco^IL+COMMISSARIO+MONTALB ANO#1'

Mplayer doesn't support WMV9, it can play up to v8.

maxilogan 2006-09-08 07:11

I tried opening a .rm file (a Family Guy episode) but only could hear the sound.

I know that playing Real files on a PC needs some particular codecs; is there anything similar for mplayer on 770?
I tried with the standard player but, guess what? I get "Resolution not supported" :mad:

Ed_ 2006-09-08 08:36

Quote:

Originally Posted by maba
Ok, so I'm now announcing MPGUI, a simple GUI frontend for MPlayer.

Read more about it here.

This of course requires you to have MPlayer installed (via the application manager).

Let me know if it works for you.

Also, Serge, I would be happy to contribute the source code of this program for inclusion in your project. Please contact me if you find this interesting. :)

Great work! Thank you.
It would be nice to look at the sources. We had discussion with Sergei about GUI concept recently and his opinion was that we need exactly what you've done - simple graphical file/stream chooser.
So, if you send us sources I'd try to integrate MPGUI into mplayer.
Just in case you've already done some work on this direction don't hesitate to send us (me or Sergey) patches.

Thank you.

MikeL 2006-09-08 09:13

Quote:

Originally Posted by =DC=
Wow, that was quick. Awesome! Thanks Mauricio. :)

I second that, program is simple to use and operates from locally Stored/Filed and/or Streamed Media URL's.

Tweak 2006-09-09 04:53

What media encoder settings are you guys using to encode video? I'm using the max video resolution and highest bit rate sound and I'm getting video that plays between 1 and 3 seconds out of sync with the sound track. Looking at the cpus usage it's near max.

TB303 2006-09-09 09:01

Noob installation problem
 
Hi People,
I'm new to Linux, so please be kind if I ask totally noobish questions.

I'm trying to install StreamTuner on my 770 and it says I need to install Mplayer. I duly downloaded Mplayer and tried to install it - however, I recieve an error message that says:

Packages missing:
libncurses5 (>=5.4-1)

I believe I have the 2006 OS.

WHat does it mean? how do I get past it?
I tried "Auto-update" but it didn't find anything.

Please advise, thanks.

Serge 2006-09-09 10:03

Quote:

Originally Posted by TB303
I'm trying to install StreamTuner on my 770 and it says I need to install Mplayer. I duly downloaded Mplayer and tried to install it - however, I recieve an error message that says:

Packages missing:
libncurses5 (>=5.4-1)

I believe I have the 2006 OS.

Please check exact version number of your OS to be sure (go to launch menu, select "tools" -> "control panel" -> "device" -> "about product"). For IT OS 2006 it should be '1.2006.26-8'. From a package reference list seems like libncurses should be preinstalled. Unless you managed to uninstall it or cripple in some other way, it should be available :)

Serge 2006-09-09 10:11

Quote:

Originally Posted by Tweak
What media encoder settings are you guys using to encode video? I'm using the max video resolution and highest bit rate sound and I'm getting video that plays between 1 and 3 seconds out of sync with the sound track. Looking at the cpus usage it's near max.

I believe it was explained many times in this thread already :) But you should use 320x240 (4:3), 400x224 (16:9) or 400x240 (15:9) video resolution for best playback. Bitrate should not exceed 400 with video codec mpeg4. It should play fine (with some frame dropped on scenes with lots of motion and panning, but that's not a big deal). Audio should be encoded to MP3, bitrate does not matter much here as it is decoded by DSP anyway. You can also try this encoder with 'mplayer' preset: http://www.internettablettalk.com/fo...6&postcount=99

Serge 2006-09-09 10:25

Quote:

Originally Posted by faber
Mplayer doesn't support WMV9, it can play up to v8.

The latest development version of mplayer from SVN already has native WMV9 support. Once they make the next public release, it can be packaged for Nokia 770.

Quote:

Originally Posted by maxilogan
I tried opening a .rm file (a Family Guy episode) but only could hear the sound.

I know that playing Real files on a PC needs some particular codecs; is there anything similar for mplayer on 770?
I tried with the standard player but, guess what? I get "Resolution not supported" :mad:

It is unlikely for mplayer to support real files on Nokia 770. On PC mplayer is able to use closed source binary codec which is compiled for x86, it just will not work on arm.

I guess, information in .deb file description is somewhat misleading, does not quite apply to maemo port and should be edited (at least parts about win32 dll's and 3dfx).

Also unfortunately MPlayer on Nokia 770 has problems with AAC and AC3 audio (they are either buggy or unusable because of floating point math being too slow). We need to either find and use integer only decoders for them or use DSP based gstreamer decoder for AAC.

Serge 2006-09-09 10:40

Quote:

Originally Posted by maba
Ok, so I'm now announcing MPGUI, a simple GUI frontend for MPlayer.

Read more about it here.

This of course requires you to have MPlayer installed (via the application manager).

Let me know if it works for you.

Also, Serge, I would be happy to contribute the source code of this program for inclusion in your project. Please contact me if you find this interesting. :)

Sure it is interesting. As Eduard said already, we can integrate this GUI in MPlayer package. To do this we need the sources of it. A preferred form (but not strictly required) is a patch against maemo mplayer SVN. You also can use garage trackers to submit your code.

Unfortunately I could not try this gui (your web page seems to be down at the moment), but considering other's comments, it can't be bad :)

It is good to see many people consolidating efforts in improving mplayer and video support for Nokia 770. Availablility of GUI will also give us a way to proper credit all the maemo port contributors (it can have a special tab for this). As for other GUI related things, it would be a good idea to be able to edit some configuration options (and save them to '/home/user/.mplayer/config'), some of the settings that I need to have configurable are subtitles code page and language for example.

Keep up the good work.


All times are GMT. The time now is 06:31.

vBulletin® Version 3.8.8