没有 neon 支持的 Android 上 ffmpeg 解码的性能
我已经在 android 上编译了 ffmpeg 代码,并且能够在没有 neon 支持和 armv5te 的情况下播放视频。解码很好,视频可以播放,但问题是帧速率真的很糟糕。我的最高帧率为 5 fps,这太可怕了。
有没有人在 Android 上不支持 ffmpeg 的情况下成功播放视频。或者我真的缺少什么吗?
编辑:配置我通过运行得到它
./configure --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 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
./configure --enable-gpl --enable-libgsm --enable-libxvid \
--enable-libamr_nb --enable-libamr_wb --enable-libmp3lame --enable-libogg \
--enable-libvorbis --enable-libfaac --enable-libfaad --enable-shared
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 ffmpeg 在 Galaxy Tab 上完成了大量视频解码,其性能足以满足 60fps glbuffer 的期望。我认为理论上我可以在 Tab 上使用 neon,但我无法让它工作。
不幸的是,我不能谈论其他设备。
编辑 - 我的 ffmpeg 配置行是:
我想知道是否是 armv5te 给了我动力。
我在尝试从 Java 代码加载共享版本时遇到了问题,因此我使用了静态版本。不过,我认为这不会影响性能。
编辑 - 我在这个要点之后设计了我的配置行
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:
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
没有霓虹灯的支持,我什么也做不了。所以我用 neon 支持和 armv7 进行编译。我现在得到了更好的帧率。接近 40fps,足以满足我的应用程序需求。感谢马修的回复。
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.