maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   mplayer port for N9 / Harmattan (https://talk.maemo.org/showthread.php?t=80031)

Hariainm 2011-11-16 02:47

mplayer port for N9 / Harmattan
 
mplayer_1.0svn20120427-1

cddiede 2011-11-17 01:26

Re: mplayer port for N9 / Harmattan
 
Holy Crap!!!

This let's me play .flv video files on my N9!!!!
Awesome!!!!!!!

For some inexplicable reason, I always attributed my ability to play .flv videos on my N900 to the fact that I had Adobe Flash. :p

rafael2k 2011-12-07 11:59

Re: mplayer port for N9 / Harmattan
 
I had to use the argument "-vo x11" in order to play a mpeg4 video without flickering.
The problem is that after some seconds the screen goes black, and I have to tap any key to get the screen up again.

Is there any way to disable screen blanking?

lanwellon 2011-12-07 14:06

Re: mplayer port for N9 / Harmattan
 
Try -fs command , still study on this ...

thedead1440 2011-12-17 07:34

Re: mplayer port for N9 / Harmattan
 
hi could a proper instructions guide on how to use this be provided.

Thanks in advance.

lanwellon 2011-12-20 13:08

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by thedead1440 (Post 1138633)
hi could a proper instructions guide on how to use this be provided.

Thanks in advance.

The command can be like below :

Code:

mplayer -vo x11 -framedrop -fs [filename]
But there is a easier way :

I found that in kmplayer, you can select the player (GStreamer, mplayer , etc.),

So you can use the mplayer as the backend and kmplayer as front end, it just worked fine.

www.rzr.online.fr 2012-01-08 00:50

Re: mplayer port for N9 / Harmattan
 
Can I try to rebuild it from sources ?

koos 2012-01-08 13:26

Re: mplayer port for N9 / Harmattan
 
1 Attachment(s)
Quote:

Originally Posted by www.rzr.online.fr (Post 1147293)
Can I try to rebuild it from sources ?

I've uploaded this mplayer build just to share a SMIL application for watching Arte.tv movies for people living in germany or france (handset forum). I think there is another mplayer build for n9 somewhere on the net, more split up in different packages. For this purpose I needed rtmp support however, so I created a pkg with rtmp support build in (and no external dependency to make it easy install-able).

Don't remember exactly what I did to build this package, but looking over my mplayer sources, what I did was a svn checkout of mplayer svn://svn.mplayerhq.hu/mplayer, replace the ffmpeg sub-directory with a git checkout git://git.videolan.org/ffmpeg.git and using the mplayer/debian directory from the N900 sources (see attachment).
Found the following diff in my mplayer svn checkout
Code:

Index: libvo/x11_common.c
===================================================================
--- libvo/x11_common.c  (revision 34173)
+++ libvo/x11_common.c  (working copy)
@@ -87,7 +87,7 @@
 static int orig_layer = 0;
 static int old_gravity = NorthWestGravity;
 
-int stop_xscreensaver = 1;
+int stop_xscreensaver = 0;
 
 static int dpms_disabled = 0;
 
@@ -1089,7 +1089,7 @@
      XWindowAttributes attribs;
      XGetWindowAttributes(mDisplay, vo_window, &attribs);
      vo_x11_selectinput_witherr(mDisplay, vo_window,
-                                attribs.your_event_mask | ExposureMask);
+                                attribs.your_event_mask | ExposureMask | KeyPressMask);
    } else
      // Do not capture events since it might break the parent application
      // if it relies on events being forwarded to the parent of WinID.

Don't remember why I had to disable the screensaver part, maybe it generated errors. But that explains the screen blanking problems mentioned in this thread.
KMPlayer does screen blanking prevention using the 'official' harmattan API, so that was okay for me.

Before building the package, I've looked what kind of mm related libraries are default installed on the device and installed the -dev pkg too (libasound2-dev libflac-dev libogg-dev libpulse-dev libsndfile1-dev libvorbisidec-dev libxv-dev) which should be added to the debian/control file which I apparently forgot.
For rtmp, I just make && make install rtmpdump with prefix /usr and deleted the shared library. Apparently its a git co, directory is called rtmpdump-2.4~20110711.gitc28f1bab on my disk.
Note, I'm talking about installing in scratchbox. After that, started the mplayer pkg build and I recall removing the -arm compiling flag somewhere because I was afraid with would somehow reset the pre configured arm options (like hard floating point).

Hope this helps ;-)

ladoga 2012-01-13 11:47

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by thedead1440 (Post 1138633)
hi could a proper instructions guide on how to use this be provided.

Thanks in advance.

http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html

yuvaraj 2012-02-20 07:34

Re: mplayer port for N9 / Harmattan
 
Hi

I need your help to port ffmpeg on N9. I developed on small app, which based on ffmpeg. I compiled ffmpeg

./configure --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi-


But getting memory related errors on device. Same code working fine with desktop

youmeego 2012-02-20 08:32

Re: mplayer port for N9 / Harmattan
 
my understanding is that n900 runs mplayer (command prompt) + sib(gui)

as for n9, where is the sib(gui)?

ZogG 2012-02-20 11:32

There should be ~/.mplayer/mplayer.conf where you can turn off screensaver and add default video output (vo)
As well it can be added by default

vzp916 2012-03-01 21:33

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by youmeego (Post 1167227)
my understanding is that n900 runs mplayer (command prompt) + sib(gui)

as for n9, where is the sib(gui)?

kmplayer is your GIU

ArnimS 2012-03-07 23:27

Re: mplayer port for N9 / Harmattan
 
as per my incessant nagging, mplayer now supports synchronized playback between devices - you can sync playback of music and video between n900 and pc for example.

note this is just syncrhonizing the playback of files accessible to both devices; it is not streaming audio.

if we could get a new mplayer build uploaded we could do this!
---------------------------

Multiple instances of MPlayer can synchronize playback over a network. This is useful for creating "video walls" with multiple screens controlled by different computers. Each MPlayer instance can play a different video, but they all will try to stay at the same time offset in the file. It is recommended but not necessary to encode the video files using the same codec and parameters.

The relevant options are -udp-master, -udp-slave, -udp-ip, -udp-port, and -udp-seek-threshold.

If -udp-master is given, MPlayer sends a datagram to -udp-ip (default: 127.0.0.1) on -udp-port (default: 23867) just before playing each frame. The datagram indicates the master's position in the file. If -udp-slave is given, MPlayer listens on -udp-ip/-udp-port and matches the master's position. Setting -udp-ip to the master's broadcast address allows multiple slaves having the same broadcast address to sync to the master. Note that this feature assumes an ethernet-like low-latency network connection. Your mileage may vary on high latency networks.

For example, assume 8 computers are on a network, with IP addresses 192.168.0.1 through 192.168.0.8. Assume the first computer is to be the master. Running ifconfig on all the machines lists "Bcast:192.168.0.255". On the master, run:

Code:

mplayer -udp-master -udp-ip 192.168.0.255 video1.mpg
On each slave, run:

Code:

mplayer -udp-slave videoN.mpg
Seeking, pausing and even playback speed adjustment (see the -input option) can be done on the master, and all the slaves will follow. When the master exits, it sends out a "bye" message which causes the slaves to exit as well.

koos 2012-05-05 17:14

Re: mplayer port for N9 / Harmattan
 
For those still using mplayer from the kmplayer garage site, you may want to update to mplayer_1.0svn20120427-1 to get the latest mplayer/ffmpeg improvements.

ibrakalifa 2012-05-05 17:55

Re: mplayer port for N9 / Harmattan
 
wow thx, how to play video from cmd line?

ladoga 2012-05-05 19:06

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by koos (Post 1202287)
For those still using mplayer from the kmplayer garage site, you may want to update to mplayer_1.0svn20120427-1 to get the latest mplayer/ffmpeg improvements.

Thanks for info, grabbed it right away.

MPlayer is one of my all time favorite software, but the screen blanking prevents me from utilizing it fully. (and the KMPlayer doesn't offer wide range of playback options). Is there any known way to get rid of the screen blanking?

Quote:

Originally Posted by ibrakalifa
wow thx, how to play video from cmd line?

The most simple is:
$ mplayer <path to file>

But there's lots and lots optional flags to adjust playback from drawing the video with ASCII charachters to flipping around the image, selecting subtitles and whatever.

Few basic ones you see by typing mplayer --help The rest you can read from the manpages: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html

koos 2012-05-05 19:30

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by ladoga (Post 1202318)
MPlayer is one of my all time favorite software, but the screen blanking prevents me from utilizing it fully. (and the KMPlayer doesn't offer wide range of playback options). Is there any known way to get rid of the screen blanking?

Maybe a python guru may help you. In C the function to call is MeeGo::QmDisplayState::setBlankingPause(). A simple script that you start in the background might do the job.

ibrakalifa 2012-05-06 11:30

Re: mplayer port for N9 / Harmattan
 
latest kmplayer and mplayer dont have sound, weird, uninstall it already

ladoga 2012-05-12 06:35

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by koos (Post 1202324)
Maybe a python guru may help you. In C the function to call is MeeGo::QmDisplayState::setBlankingPause(). A simple script that you start in the background might do the job.

Thanks, though I already figured another way.
In case anyone else needs to disable or adjust screen blanking here it goes.

First to list available gconf options for the screen:
Code:

$ gconftool-2 -a /system/osso/dsm/display

 possible_display_dim_timeouts = [15,30,60,120,300]
 color_profile = Neutral
 use_low_power_mode = true
 display_blank_timeout = 5
 possible_display_blank_timeouts = [3,10,15]
 display_brightness = 3
 adaptive_display_dim_threshold = 3000
 display_brightness_level_step = 1
 display_dim_timeout = 30
 max_display_brightness_levels = 5
 inhibit_blank_mode = 0
 als_enabled = true
 use_adaptive_display_dimming = true

As you see there's quite many display related options you can tune from gconf.

For example we can add a new possible dim timeout of 10800sec (3 hours) to N9's display settings menu:
Code:

$ gconftool-2 --type list --list-type int --set /system/osso/dsm/display/possible_display_dim_timeouts [15,30,60,120,300,10800]
Done. That's it. Now you can go to N9's settings menu (Settings->Device->Display) and select the 180 minute timeout whenever you need it.

If you want to disable blank mode completely, try changing the respective value in gconf to 1:
Code:

$ gconftool-2 --type int --set /system/osso/dsm/display/inhibit_blank_mode 1
To enable screen blanking again, just return the value to 0:
Code:

$ gconftool-2 --type int --set /system/osso/dsm/display/inhibit_blank_mode 0
As usual at *nix CLI, you can get additinal info about the command by the --help flag:
Code:

gconftool-2 --help

Kabouik 2012-07-12 17:15

Re: mplayer port for N9 / Harmattan
 
I know this thread is burried since two months, but I'm really missing Sib from the N900 too. As we already have Mplayer working on the N9, and considering the similarities between Maemo 5 and Harmattan, would it be possible to port it? I really have difficulties in using only KMplayer, that GUI is definitely not for me. :/

Actually Sib would not be ideal without hardware keyboard. What about another GUI like SMplayer (there was a version for N900 also if I remember correctly)?

myname24 2012-10-18 12:26

Re: mplayer port for N9 / Harmattan
 
did anyone succeed in getting arabic subtitles work for Mplayer ?
It didn't work for me .

ssjmec 2012-11-07 08:26

Re: mplayer port for N9 / Harmattan
 
Can someone post a mirror link to mplayer download? The link seems to be broken. Ty

thedead1440 2012-11-07 08:41

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by ssjmec (Post 1291368)
Can someone post a mirror link to mplayer download? The link seems to be broken. Ty

get the latest kmplayer and mplayer from here

Dakota 2012-11-09 05:21

Re: mplayer port for N9 / Harmattan
 
I don't know why, but I can not download anything from https://garage.maemo.org/frs/?group_id=42
What should i do?

Dakota 2012-11-09 05:48

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by thedead1440 (Post 1291374)
get the latest kmplayer and mplayer from here


why this https://garage.maemo.org/frs/?group_id=42 doesn't work????

thedead1440 2012-11-09 05:59

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by Dakota (Post 1292178)

garage and wiki are currently down since 2days. wait till they are up and try then.


Edit: Try it now, garage seems to be working now ;)

PIDk 2012-11-09 06:51

Re: mplayer port for N9 / Harmattan
 
Does anybody know how I can get rid of grey background when I play 4:3 non-stretched videos through KMplayer+Mplayer?

Default N9 player uses black background for videos with non-native aspect ratios.

Dakota 2012-11-09 19:48

Re: mplayer port for N9 / Harmattan
 
now it works)

rakeshyadav 2012-12-13 16:26

Re: mplayer port for N9 / Harmattan
 
one solution is available from my self;solution is,
The command can be like below :

Code:

mplayer -vo x11 -framedrop -fs [filename]

But there is a easier way : you can select the player (GStreamer, mplayer , etc.),
you try
it just worked fine.

optimaxxx 2012-12-14 09:00

Re: mplayer port for N9 / Harmattan
 
Hey there, tried running mplayer *.amr
And I ran into this error: "dts mode not implemented, update ffmpeg"
It also prints "Not: libopen-core_armnb supports dtx" But I cannot find out (oh mighty google power) how to make it play?

Cheers

kodematem 2012-12-14 10:27

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by PIDk (Post 1292196)
Does anybody know how I can get rid of grey background when I play 4:3 non-stretched videos through KMplayer+Mplayer?

Default N9 player uses black background for videos with non-native aspect ratios.

same problem.

www.rzr.online.fr 2012-12-28 20:16

Re: mplayer port for N9 / Harmattan
 
do you suggest to fix this version :
https://build.pub.meego.com/package/...ttan%3Atesting

or work on recent released version ?

--
http://rzr.online.fr/q/mplayer

ladoga 2013-01-09 10:11

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by rakeshyadav (Post 1304209)
one solution is available from my self;solution is,
The command can be like below :

Code:

mplayer -vo x11 -framedrop -fs [filename]

But there is a easier way : you can select the player (GStreamer, mplayer , etc.),
you try
it just worked fine.

You can have those (and any other) options in ~/.mplayer/config and they will take effect in kmplayer + no need to then type them on the command line either.
Code:

vo=x11
framedrop=1
fs=1

BTW. Is there any advantage in using x11 rather than xv as video out method?

thedead1440 2013-01-09 10:25

Re: mplayer port for N9 / Harmattan
 
ladoga,

However doing that for 720p BP encoded videos still causes MPlayer to lag out-of-sync presumably due to HW acceleration as they work fine when GStreamer is used as the option instead...

ladoga 2013-01-10 07:43

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by thedead1440 (Post 1312673)
ladoga,

However doing that for 720p BP encoded videos still causes MPlayer to lag out-of-sync presumably due to HW acceleration as they work fine when GStreamer is used as the option instead...

Yes, I was just replying to parent poster. I don't use those settings myself.

Here's my config:
Code:

sub-fuzziness=1
slang=fi,fin,en,eng
utf8=1
double=1
framedrop=1

For a/v sync problems one could try adding mc=10 and autosync=30. I haven't really used those, but former should set max correction to 10 seconds and second should adjust autosync algorithm. You might have to play with those values a bit.

There seems to be just few vo alternatives built into this mplayer and usually my experience with vo=xv has been best. You can see what's available with mplayer -vo help.

kalilucho 2013-02-27 10:36

Re: mplayer port for N9 / Harmattan
 
Can anyone help me to set my KMPleyar/MPlayer displays subtitles in Bulgarian/Cyrillic
Help please!!!

Kozzi 2013-05-06 09:35

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by kalilucho (Post 1325622)
Can anyone help me to set my KMPleyar/MPlayer displays subtitles in Bulgarian/Cyrillic
Help please!!!

I don't think Kmplayer use an external config file so the only way to fix kmplayer is to modify the source. If you are okay with command line then you could use -utf8 tag:
mplayer -utf8 path/to/movie.avi

btw, could somebody compile mplayer 1.1 for Harmattan?
Thanks

koos 2013-05-18 09:33

Re: mplayer port for N9 / Harmattan
 
Quote:

Originally Posted by kalilucho (Post 1325622)
Can anyone help me to set my KMPleyar/MPlayer displays subtitles in Bulgarian/Cyrillic
Help please!!!

See http://mplayerhq.hu/DOCS/man/en/mplayer.1.html
You can create a config file in /home/user/.mplayer/
I would guess the option is utf8=1 but I'm not sure.


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

vBulletin® Version 3.8.8