[MPlayer-dev-eng] why my mplayer-android porting have lower performance than many other players ?

lean fu fulean at gmail.com
Sun Aug 26 13:37:47 CEST 2012


most of  other video playback apps on android are based on ffmpeg, NOT
mplayer.like Vplayer and monoplayer, both have better performance than my
mplayer port.

i want to know if mplayer not suitable for android ,and if it's single
thread mechanism is not as good as multithread mechanism (
decode,demux,refresh in different thread ) ?

another question, are there some version of mplayer integrated ffmpeg-mt
successfully ? i want to port the mplayer with fmpeg-mt,and hope the
performance can be great improved,

 when i followed this thread :
http://ubuntuforums.org/showthread.php?t=1049449  to build mplayer with
ffmpeg-mt,there're some compile errors ,eg :

libmpcodecs/vd_ffmpeg.c:274:51: error: 'AV_EF_COMPLIANT' undeclared (first
use in this function)
libmpcodecs/vd_ffmpeg.c:274:69: error: 'AV_EF_CAREFUL' undeclared (first
use in this function)
libmpcodecs/vd_ffmpeg.c:278:14: error: 'AVCodecContext' has no member named
'err_recognition'
libmpcodecs/vd_ffmpeg.c:278:35: error: 'AV_EF_AGGRESSIVE' undeclared (first
use in this function)
libmpcodecs/vd_ffmpeg.c:281:14: error: 'AVCodecContext' has no member named
'err_recognition'
libmpcodecs/vd_ffmpeg.c:284:14: error: 'AVCodecContext' has no member named
'err_recognition'
libmpcodecs/vd_ffmpeg.c:405:5: warning: implicit declaration of function
'avcodec_open2' [-Wimplicit-function-declaration]
libmpcodecs/vd_ffmpeg.c: In function 'get_buffer':
libmpcodecs/vd_ffmpeg.c:672:8: error: 'AVFrame' has no member named 'width'
libmpcodecs/vd_ffmpeg.c:673:8: error: 'AVFrame' has no member named 'height'
libmpcodecs/vd_ffmpeg.c:674:8: error: 'AVFrame' has no member named 'format'
libmpcodecs/vd_ffmpeg.c: In function 'decode':
libmpcodecs/vd_ffmpeg.c:887:6: warning: return discards 'const' qualifier
from pointer target type [enabled by default]
libmpcodecs/vd_ffmpeg.c:900:12: error: 'AVFrame' has no member named 'width'
libmpcodecs/vd_ffmpeg.c:900:24: error: 'AVFrame' has no member named
'height'
libmpcodecs/vd_ffmpeg.c:906:22: error: 'AVFrame' has no member named 'width'
libmpcodecs/vd_ffmpeg.c:906:46: error: 'AVFrame' has no member named
'height'
libmpcodecs/vd_ffmpeg.c:907:12: error: 'AVFrame' has no member named 'width'

could anybody point me a right way to compile mplayer with ffmpeg-mt ? and
could anybody point me a right derection to optimize my mplayer-android
port ? thanks!

(eg: should i replace  the low performance sws_scale with some highly
optimized funtion when doing yuv2rgb conversion,how i can find out the
 bottle-neck,etc)


2012/8/26 compn <tempn at twmi.rr.com>

> On Sat, 25 Aug 2012 13:20:21 +0200, Reimar Döffinger wrote:
> >On Thu, Aug 23, 2012 at 04:00:58PM -0400, compn wrote:
> >> note that on some systems , if you scale the video to a lower res, it
> will display faster, due to slow video output.
> >
> >If your video output uses more than a few % of CPU time that means that
> >either
> >1) You are doing something very wrong/badly
> >2) Your system is really unsuitable for video playback of any kind
>
> i think his actual question is why does his mplayer-android port slower
> than the other mplayer-based android ports in the app store.
>
> i think the answer is that other mplayer ports have coded up android
> video hardware accelerators but that they havent shared that accel in
> gpl code.
>
> hopefully they are following gpl license...
>
> -compn
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>


More information about the MPlayer-dev-eng mailing list