engine icon indicating copy to clipboard operation
engine copied to clipboard

rtsp拉流报错:invalid nalu size

Open Johonnyr opened this issue 1 year ago • 9 comments

如图,现场用vlc播放monibuca转码后的flv地址时,会间歇性卡顿,看到控制台有如下错误,请教大佬应该如何解决 f68af2a3ca05ed395edf61cb436ed36

Johonnyr avatar Oct 21 '24 00:10 Johonnyr

配置文件发出来看看

langhuihui avatar Oct 21 '24 00:10 langhuihui

好的,config.yaml如下: 1729473312(1)

Johonnyr avatar Oct 21 '24 01:10 Johonnyr

有一点比较奇怪的是,在公司用录像机测试过rtsp拉流,是流畅显示的,现场的摄像头拉流有问题,是某些摄像头的配置会有影响吗

Johonnyr avatar Oct 21 '24 01:10 Johonnyr

配置里面没有看到 rtsp 流啊

langhuihui avatar Oct 21 '24 01:10 langhuihui

这个是rtsp.yaml的配置,也没有特殊配置过什么东西 4f5c17f06a8c031ca528ddfbaf7d144

Johonnyr avatar Oct 21 '24 02:10 Johonnyr

现场测试将流改为h265编码,转换后不报错也可以正常播放,但是改到h264就会有上述问题

Johonnyr avatar Oct 22 '24 08:10 Johonnyr

看上去是信令里面是 265 实际传输的是 264 导致的

langhuihui avatar Oct 22 '24 08:10 langhuihui

得抓包看了

langhuihui avatar Oct 22 '24 08:10 langhuihui

嗯啊,感谢大佬回复,我们也在看能不能有条件抓包看看。现场是一批摄像头都这样,包括海康和宇视,测试了下都是265编码可以264不行,播放时会卡顿或重载

Johonnyr avatar Oct 22 '24 08:10 Johonnyr