[LINUX/MAC/WINDOWS] MPlayer porting to XBMC for Linux/Mac/Windows?
#12
pike Wrote:It means we won't put much effort into trying to make mplayer into what we want (for above listed reasons), instead we will extend and improve our "dvdplayer core".

A couple of thoughts on trying to use mplayer in a way that doesn't require giving it the window handle directly. Note, it's been 3-4 years since I've done real digging into linking/dynamic linking semantics, so this may just be conjecture, but I think the following are sensible suggestions.

1) What about loading mplayer into a seaprate process and dumping the data back via a shared memory segment or a pipe? This would avoid the whole PIC issue. You might need to dig into mplayer somewhat to make it undrestand an IPC object as an output target, but that sounds much more easy than making the assembly respect PIC.

2) What about liking in the non-PIC mplayer anyways? IIRC, you can actually link non-pic code via a shared object and still be guaranteed correct behavior (could be wrong here...but I think ld.so knows how to handle this). What you trade is efficiency, but assuming you don't load 2 non-PIC segments that conflict cause they map into the same space, I don't think this becomes a "real" issue.

3) If you staticaly link, I think this this all goes away.

4) You could also statically link mplayer, and dynamically load other modules. The possible issue this creates is that you create 2 symbol namespaces, one that's visible during static link, and one that's visible during dynamic link. This can cause multiple copies of the same code (or worse, different version of the same code if your static binary is version skewed from yoru dynamic libraries). However, unless your shared libraries are expecting to resolve to one another, this won't actually cause an additional problems to what you'd have with version skew across .sos.


Ofcourse this is all working on the assumption that there is some intrinsic value to using mplayer over something like gstreamer. I mean, why do people relaly want mplayer? Format compability, efficiency, and reliability usually I think. Thus far, I personally still find mplayer superior to the alternatives, but that superiority doesn't have a very large margin.
Reply


Messages In This Thread
[No subject] - by runstop - 2007-10-24, 15:16
[No subject] - by spiff - 2007-10-24, 15:18
further explanation - by rrambo - 2007-10-24, 15:25
[No subject] - by spiff - 2007-10-24, 15:30
Thanks Spiff - by rrambo - 2007-10-24, 15:53
[No subject] - by stickman - 2007-10-25, 02:07
[No subject] - by ashlar - 2007-10-25, 15:26
[No subject] - by pike - 2007-10-25, 15:31
[No subject] - by ashlar - 2007-10-26, 16:29
[No subject] - by Phobia - 2007-10-27, 21:36
[No subject] - by terran101 - 2007-11-05, 23:16
[No subject] - by d4rk - 2007-11-06, 00:15
Win32 DLL loader - by Gamester17 - 2007-11-06, 11:26
[No subject] - by topfs2 - 2007-12-23, 23:12
[No subject] - by yuvalt - 2007-12-25, 22:30
[No subject] - by rodalpho - 2007-12-26, 02:29
[No subject] - by spiff - 2007-12-26, 02:34
[No subject] - by rodalpho - 2007-12-26, 03:01
[No subject] - by spiff - 2007-12-26, 03:15
[No subject] - by rodalpho - 2007-12-26, 03:58
[No subject] - by Jezz_X - 2007-12-26, 04:16
[No subject] - by d4rk - 2007-12-26, 11:22
[No subject] - by topfs2 - 2007-12-27, 01:49
[No subject] - by pike - 2008-01-21, 12:47
[No subject] - by amode - 2008-01-21, 13:34
[No subject] - by pike - 2008-01-21, 13:41
[No subject] - by Jezz_X - 2008-01-21, 13:43
[No subject] - by amode - 2008-01-21, 13:45
[No subject] - by elupus - 2008-01-21, 15:28
[No subject] - by amode - 2008-01-21, 15:42
[No subject] - by Gamester17 - 2008-01-21, 15:50
[No subject] - by gateway69 - 2008-01-21, 19:11
[No subject] - by elupus - 2008-01-21, 20:23
[No subject] - by amode - 2008-01-21, 22:19
[No subject] - by elupus - 2008-01-22, 00:14
[No subject] - by BLKMGK - 2008-01-22, 01:03
[No subject] - by elupus - 2008-01-22, 01:16
[No subject] - by BLKMGK - 2008-01-22, 01:22
[No subject] - by gateway69 - 2008-01-22, 07:09
[No subject] - by amode - 2008-01-22, 11:24
[No subject] - by topfs2 - 2008-01-22, 11:57
[No subject] - by spiff - 2008-01-22, 14:31
[No subject] - by gateway69 - 2008-01-22, 20:18
[No subject] - by rodalpho - 2008-01-22, 20:32
[No subject] - by spiff - 2008-01-23, 13:44
[No subject] - by C-Quel - 2008-01-23, 13:48
[No subject] - by spiff - 2008-01-23, 13:53
[No subject] - by gateway69 - 2008-01-23, 20:35
[No subject] - by amode - 2008-01-23, 20:52
[No subject] - by Gamester17 - 2008-01-23, 21:02
[No subject] - by rodalpho - 2008-01-23, 21:08
[No subject] - by topfs2 - 2008-01-23, 21:28
[No subject] - by rodalpho - 2008-01-23, 22:35
[No subject] - by gateway69 - 2008-01-23, 23:14
[No subject] - by gateway69 - 2008-01-23, 23:16
[No subject] - by topfs2 - 2008-01-24, 14:49
[No subject] - by emel - 2008-01-31, 16:09
[No subject] - by gateway69 - 2008-02-06, 21:46
[No subject] - by johnny utah - 2008-07-30, 17:52
[No subject] - by Gamester17 - 2008-07-30, 17:56
[No subject] - by johnny utah - 2008-07-30, 21:00
[No subject] - by marlboroman1 - 2008-07-30, 21:10
[No subject] - by johnny utah - 2008-07-30, 22:15
[No subject] - by CrazyIvan - 2008-07-31, 16:24
My opinion - by realn - 2008-10-13, 19:39
[No subject] - by jmarshall - 2008-10-13, 22:43
[No subject] - by realn - 2008-10-14, 15:49
[No subject] - by arnova - 2008-10-14, 16:11
[No subject] - by jmarshall - 2008-10-14, 22:02
Done - by realn - 2008-10-14, 23:00
[No subject] - by jmarshall - 2008-10-14, 23:04
[No subject] - by realn - 2008-10-15, 10:33
Off-topic - by Gamester17 - 2008-10-15, 18:09
[No subject] - by realn - 2008-10-30, 18:39
[No subject] - by jmarshall - 2008-10-31, 01:36
[No subject] - by ps3killer - 2008-10-31, 02:39
[No subject] - by mrkrad - 2008-11-03, 00:37
[No subject] - by mrkrad - 2008-11-03, 00:56
[No subject] - by realn - 2009-01-19, 13:49
[No subject] - by spiff - 2009-01-19, 14:50
[No subject] - by barf.nz - 2009-02-19, 00:54
At least two mPlayer pros - by lapoz - 2009-02-22, 23:45
[No subject] - by renatoriolino - 2009-03-12, 19:20
[No subject] - by spiff - 2009-03-12, 19:44
[No subject] - by motd2k - 2009-03-12, 19:59
[No subject] - by davilla - 2009-03-12, 22:29
[No subject] - by renatoriolino - 2009-03-12, 22:52
[No subject] - by davilla - 2009-03-12, 23:12
Logout Mark Read Team Forum Stats Members Help
[LINUX/MAC/WINDOWS] MPlayer porting to XBMC for Linux/Mac/Windows?0