[MPlayer-dev-eng] why my mplayer-android porting have lower performance than many other players ?
compn
tempn at twmi.rr.com
Sun Aug 26 21:34:57 CEST 2012
ffmpeg-mt was merged with ffmpeg already.
mplayer can use it by -lavdopts threads=4
or lavdopts=threads=2 in the config.
you want to try not to scale from yuv to rgb. yuv>rgb scaling means that
your video output is incorrect, and will make things really slow.
i'm not sure why ffplay is faster. they should be the same speed. check
what video that ffplay is using and get mplayer to use it. is it opengl
or xv or something else?
-compn
On Sun, 26 Aug 2012 19:37:47 +0800, lean fu wrote:
>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
>>
>_______________________________________________
>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