作者 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
SMP865X广告机之RMFP(libsample v2)
最新推荐文章于 2013-08-30 18:20:26 发布