有没有方法可以在red5服务器的实时流中打印元数据信息

时间:2015-11-11 08:07:18

标签: rtmp red5

所有 因为我发现我们的实时流不流畅,我怀疑它是由发布流引起的。所以我想获得我发布的流的细节。 就像使用演示播放显示我的mp4文件一样。

15:54:13:160 - Playback - NetStream.Play.Start
15:54:15:584 - Metadata - avclevel: 30
15:54:15:584 - Metadata - aacaot: 1
15:54:15:584 - Metadata - height: 480
15:54:15:585 - Metadata - canSeekToEnd: true
15:54:15:585 - Metadata - audiosamplerate: 44100
15:54:15:585 - Metadata - audiocodecid: mp4a
15:54:15:585 - Metadata - videocodecid: avc1
15:54:15:585 - Metadata - videoframerate: 15.999947776588245
15:54:15:585 - Metadata - avcprofile: 100
15:54:15:585 - Metadata - trackinfo: ,
15:54:15:585 - Metadata - width: 860
15:54:15:585 - Metadata - duration: 153.188
15:54:15:585 - Metadata - audiochannels: 2
15:54:15:585 - Metadata - seekpoints: 0,1688,4813,7500,8500,10125,11438,12563,14438,16313,18188,20813,23313,25563,26563,27563,28563,29938,32688,34063,36563,38000,39750,41250,42313,43313,45000,47250,48500,49875,52063,53188,56438,58563,62875,64313,65625,66750,68063,69250,70375,71938,73125,75375,77313,78938,81375,83063,86875,89000,90125,93063,94188,95563,100125,102563,103938,104938,106500,108438,109875,111063,112313,115063,116563,117938,119125,120250,121250,122625,123625,125313,126813,127875,129500,131875,135500,144063,149438

所以,我怎么能得到它? 我在streamPublishStart和streamRecordStart方法中找到了IBroadcastStream参数,如果我使用IBroadcastStream参数在thoes方法中编码会有帮助吗?

1 个答案:

答案 0 :(得分:0)

您必须创建自己的侦听器,例如documentation并拦截数据;一旦你获得包含元数据的Notify类型,你就可以随心所欲地处理数据了。