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


All times are GMT. The time now is 14:42.

vBulletin® Version 3.8.8