android和Vitamio使用比较

本文探讨了在使用Vitamio和VLC播放UDP组播时遇到的声音和画面卡顿问题,深入分析原因后发现是设备底层驱动问题。通过调整声音输出比特率等配置,最终解决了问题,并对比了两个工具的优缺点。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在开始接触udp组播的时候先使用的Vitamio,播放时候声音卡顿 画面也会出现卡顿,后来又使用了VLC,画面挺好,,但是声音卡顿。最后不断测试发现是由于设备底层驱动处理视频部分有问题,导致程序播出的效果不太好, 后来经过底层更改了声音的输出比特率等一些配置,再进行测试发现两个都可以使用,效果都不错。但是对两个长时间测试整理了以下。Vitamio:

优点:对H264的视频,支持硬解MPEG2的不能硬解

缺点:对直播一小段视频不能重复的播放,直播完,再继续播放时候会停止。可能程序还需要设置一下。这个问题应该不难。具体可以参考官网给的API进行设置 https://www.vitamio.org/docs/API/2013/0508/10.html

VLC:

优点:程序打开可以一直播放UDP组播流,如果一段播放完还可以重复播放,对播放事件处理比较好。

缺点:对设备版本在4.4 下不支持硬解 。有时候在释放资源时候会出现无法释放现象。

Vitamio =============== Vitamio is an open multimedia framework for Android and iOS, with full and real hardware accelerated decoder and renderer. New features ------------ Only few important features are listed here, we have fix many bugs and may introduce some new bugs. 1. The latest FFmpeg 2.0 git version, which should fix most playback issues, or bring some issues. 2. Support most FFmpeg AVOptions, which enables custom HTTP headers support. 3. Support more hardwares, e.g. X86 or MIPS. 4. Improve streaming, especially support adaptive bitrate streaming, you need open manually. 5. OpenSSL included, so some SSL related protocols, such as https, tls, rtmps, rtmpts, are supported. 6. Playback speed control from 0.5x to 2.0x. 7. Audio amplify to 2x volume. 8. Improved subtitle support, including external bitmap subtitles. 9. Cache online video to local storage and can be reused until you delete the cache file. 10. More MediaPlayer API, e.g. `getMetadata`, `getVideoTrack`. 11. The full Java code is open to all developers, modify and contribute is welcome. 12. Support RGBA\_8888 rendering, spport switching RGB\_565 or RGBA\_8888 to video rendering. 13. Enhance the hardware decoding in Android 16+. 14. Support ARMV6 CPU, may have some bugs. How to use ---------- please see [the website](https://github.com/yixia/VitamioBundle/wiki) License ------- Please see [License](http://www.vitamio.org/en/License) ## Google+ Vitamio Developers Community on Google+ [http://goo.gl/fhCDTD](http://goo.gl/fhCDTD)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值