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