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

ERROR: PILI_RTMP_ReadPacket, failed to read PILI_RTMP packet header #174

Open
Sachinsaris0912 opened this issue Feb 10, 2017 · 5 comments
Open

Comments

@Sachinsaris0912
Copy link

I am getting this error when i am trying to stream video but got this error,
this is my code
LFLiveStreamInfo *stream = [LFLiveStreamInfo new];
stream.url = @"rtmp://xxx.xxx.xx.xxx:1935/live/myStream";
[self.session startLive:stream];

@nathanhosselton
Copy link

nathanhosselton commented Feb 21, 2017

I was having this problem, which was fixed by the suggestion in #127. Admittedly your issue may not be related as mine was due to using the streamId property.

@rhedgpeth
Copy link

I am also facing this issue. Why doesn't this library just use whatever comes after "..live/" as the stream key?

For instance if use my url:
rtmp://xxx.xxx.xx.xxx:1935/live/myStream
I receive the error.

However, if I simply tack on a character (or string of characters)
"rtmp://xxx.xxx.xx.xxx:1935/live/myStream/1"
it works.

But why? And does it simply use the character(s) at the end for some kind of local stream organization and strip it before connecting? Because It claims it connects.

@Qu000
Copy link

Qu000 commented Nov 3, 2017

I tried everything!!But it was always a mistake
this is my code:

LFLiveStreamInfo *stream = [LFLiveStreamInfo new];
stream.url = @"rtmp://live.hkstv.hk.lxdns.com:1935/live/FEMH";
[self.session startLive:stream];

But why? whatever,Xcode is always ------ failed to read PILI_RTMP packet header
Please!

@timeview
Copy link

I also had the same issues and did what rhedgpth said of putting a single character after stream name and it worked - This must be an issue with the packet header reader parser

@biyu6
Copy link

biyu6 commented Mar 5, 2019

原因是连接失败。您可以尝试将URL更改为您自己的服务器的URL; 或者试试这个:(rtmp://116.196.87.91:1935 / live / VC000099)注意“VC000099”是自定义的,不要与其他人重复。推荐两个测试软件:OBS,VLC

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

6 participants