Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果不是从第一帧h264就开始推 #15

Open
maxdylan opened this issue Sep 14, 2017 · 7 comments
Open

如果不是从第一帧h264就开始推 #15

maxdylan opened this issue Sep 14, 2017 · 7 comments

Comments

@maxdylan
Copy link

如果不是从第一帧h264就开始推流,会不会有问题啊?因为项目的特殊性,camera的管理是用的某sdk,会自动反上来h264数据,但是并不是一开始反上来数据就开始推,要等通知。。。大神求指导

@runner365
Copy link
Owner

rtmp的特点,第一帧必须是pps和sps,不然播放器那边无法初始化.

@maxdylan
Copy link
Author

大神,我打印log发现在RtmpSessionManager里的264EncodeThread里面的_rtmpSession.RtmpConnect(_rtmpUrl);这个方法一直返回0,大概是什么原因呢?

@maxdylan
Copy link
Author

有一台设备是这样的,但是在我的手机上返回值就是很长一串,并且能正常直播

@runner365
Copy link
Owner

问题没有看懂啊,你到底是说rtmp connect不上,对吧?rtmp服务器是正常的吗?

@maxdylan
Copy link
Author

恩恩,rtmp connect不上,rtmp服务器应该是正常的,用的阿里云的服务器,demo在手机上用同一台服务器是可以用的,但是在另一台设备上,没用demo,用的lib,connect不上

@maxdylan
Copy link
Author

rtmp connect返回的-272080384这个值是正常的么?看起来和手机上的返回值不一样

@maxdylan
Copy link
Author

如果不推aac,只推h264的可以么?问题有点多,谢谢大神谢谢大神

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants