开发者

Performance of ffmpeg decoding on android without neon support

I've compiled ffmpeg code on android and able to play the video without neon support and for armv5te. Decoding is good, the video plays,but the problem is the frame rate is really really bad. I getting a max of 5fps, which is horrible.

Is there anybody who has got success in playing the video without support with ffmpeg on android. Or is there anything that I am really missing?

EDIT : configuration I got it by running

./configu开发者_如何学运维re --enable-gpl --enable-libgsm --enable-libxvid \
--enable-libamr_nb --enable-libamr_wb --enable-libmp3lame --enable-libogg \
--enable-libvorbis --enable-libfaac --enable-libfaad --enable-shared


I've done substantial video decoding on the Galaxy Tab using ffmpeg with performance to spare to meet the 60fps glbuffer expects. I think that in theory I could use neon with the Tab, but I wasn't able to get it working.

Unfortunately, I can't speak for other devices.

Edit - my ffmpeg config line is:

--enable-static --disable-shared --disable-doc --disable-ffmpeg \
--disable-ffplay --disable-ffprobe --disable-ffserver \
--disable-avdevice --disable-neon --disable-network \
--disable-swscale-alpha --enable-zlib --enable-memalign-hack \
--disable-stripping --enable-cross-compile --arch=arm5te \
--enable-armv5te --target-os=linux --cc=arm-linux-androideabi-gcc \
--extra-cflags='-fPIC -DANDROID -D__thumb__ -mthumb'

I wonder if it's the armv5te that is giving me the boost.

I ran into problems trying to load the shared version from my Java code, and so I used a static version instead. I don't think this would impact performance, though.

Edit - I patterned my config line after this gist


I didn't get anything working without neon support. So I compiled with neon support and for armv7. I get better framerate now. Nearly 40fps, is very good enough for my app needs. Thanks matthew for your responses.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜