有什么方法可以在 red5 服务器的实时流中打印元数据信息
Is there any method that I can print the metadata info in live stream in red5 server
全部
因为我发现我们的live Stream不流畅,我怀疑是publish stream造成的。所以我想获取我发布的流的详细信息。
就像用demo播放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,如果我在 thoes 方法中使用 IBroadcastStream 参数进行编码是否有帮助?
你必须像RecordingListener一样创建自己的侦听器并拦截数据;一旦你获得了带有元数据的通知类型,你就可以对数据做任何你想做的事情。
全部 因为我发现我们的live Stream不流畅,我怀疑是publish stream造成的。所以我想获取我发布的流的详细信息。 就像用demo播放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,如果我在 thoes 方法中使用 IBroadcastStream 参数进行编码是否有帮助?
你必须像RecordingListener一样创建自己的侦听器并拦截数据;一旦你获得了带有元数据的通知类型,你就可以对数据做任何你想做的事情。