SMP865X广告机之RMFP(libsample v2)

作者 QQ: 35327864,msn: fgwf1@hotmail.com,mail: agooou@gmail.com

sigma-designs之前的libsample扩展性差,难以维护,难以使用。在libsample基础上做应用极其复杂。为了改变这种现象,逐步推出了libsample v2,简化了应用的开发。libsample v2即是RMFP库。
应用程序可以用RMFP库来播放各种类型的流。
libsamplev1的不足:
• multiple playback instances
• seamless output reconfiguration
• code reuse
• more flexible resource control
• notification of several conditions
• more flexible input stream control
• set and be notified of RUA events regarding the decoders

为了解决这些不足,编写了libsample2。
libsample2 (或称为 RMFP, REALMagic File Player),内部架构不同与libsample1。
• detection will be provided by the new detection API rmdetector3
• playback will be provided by libplay
• resource control will be handled by the application (or internally if the application does nothing)
结构图请直接看文档,LibSampleV2

对比libsamples1新支持的特性:
• Internal indexing of program and transport streams (you can also use externally created indexes)
• Seek in libsamples2 is accurate: when you seek on specify time, playback restart on picture corresponding to specified time (not on IFrame only as previously)
• You can specify all resources used by video decoder, audio decoder, demux, etc.
• Support for external text subtitles : SRT, SUB, SSA/ASS with colors/fonts/size/positioning using Freetype2
• Support for external DVD like subtitles (sub/idx)
• Support for Matroska MKV container (including embedded subtitles, chapters and attachments)
• Can be used in multi threaded mode
• Add/Remove RUA events
• Several types of very useful notifications, stream properties, metadata, playback status, command status, etc.

RMFP API的用法:
详见文档LibSampleV2

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值