欢迎来到天天文库
浏览记录
ID:20427940
大小:832.50 KB
页数:14页
时间:2018-10-13
《librtmp使用扩展时间戳时服务器会将连接断开解释》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、rtmpdump的librtmp时间戳有问题,服务器会断开连接分类:ffmpegc++linuxopen-source2013-10-2821:49700人阅读评论(7)收藏举报#header0x440xff0xff0xff0x000x010x190x08#extendedtimestamp0x7f0xff0xf80x00#body0xaf0x010x010x400x220x800xa30x7f0xf80x850x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x
2、2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2
3、d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d#header0xc4#extendedtimestamp#errorhere#body0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d
4、0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d0x2d对于0xC这种后续的chunk包的extendedtimestamp该不该
5、发,rtmp协议中说是不发,但是FMLE是发的,推流超过4.5小时就需要用extendedtimestamp了。rtmpdump里面的librtmp,不会发这个包,(ffmpeg里面用--enable-librtmp就会使用这个rtmp的库),而且是在开始就会发这个包。6.1.3.ExtendedTimestamp[plain]viewplaincopyprint?1Thisfieldistransmittedonlywhenthenormaltimestampinthe2chunkmessageheaderissetto0x00ffffff.Ifnormaltimest
6、ampis3settoanyvaluelessthan0x00ffffff,thisfieldMUSTNOTbe4present.ThisfieldMUSTNOTbepresentifthetimestampfieldisnot5present.Type3chunksMUSTNOThavethisfield.Thisfieldistransmittedonlywhenthenormaltimestampinthechunkmessageheaderissetto0x00ffffff.Ifnor
7、maltimestampissettoanyvaluelessthan0x00ffffff,thisfieldMUSTNOTbepresent.ThisfieldMUSTNOTbepresentifthetimestampfieldisnotpresent.Type3chunksMUSTNOThavethisfield.有可能是adobe变更了这个协议,也就是说,FMLE给FMS,FMS给flash-player,都是带这个时间戳的。收包时,服务器端则需要检测下,若接下来的4字节不是extendedtimestamp,那么就忽
此文档下载收益归作者所有