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

RTMP pull not working #101

Open
chetandhembre opened this issue Mar 9, 2018 · 1 comment
Open

RTMP pull not working #101

chetandhembre opened this issue Mar 9, 2018 · 1 comment

Comments

@chetandhembre
Copy link

Hi,

I tried to use BLSS basically for RTMP Edge server. so I am just pulling from my origin server.
here is my configuration

"""
worker_processes 1;
relay_stream hash;

error_log logs/error.log debug;

events {
worker_connections 1024;
}

rtmp {
server {
listen 1935 reuseport;

    service cctv {
        hostname pub rtmp my_origin_server;      # match rtmp push domain
        hostname sub rtmp 52.66.143.134;
        application live {
            live on;
            gop_cache on;
            gop_cache_count 5;  # cache 5 GOPs
        }
    }
}

}
"""

I am streaming my origin server using OBS. no problem at that end.

I enabled debug mode here is errors I am getting

"""

2018/03/09 15:14:25 [debug] 14853#0: epoll: fd:4 ev:0001 d:000000000194B558
2018/03/09 15:14:25 [debug] 14853#0: *4 recv: eof:0, avail:1
2018/03/09 15:14:25 [debug] 14853#0: *4 recv: fd:4 42 of 146
2018/03/09 15:14:25 [debug] 14853#0: *4 RTMP bheader fmt=1 csid=3
2018/03/09 15:14:25 [debug] 14853#0: *4 RTMP mheader fmt=1 amf_cmd (20) time=0+0 mlen=34 len=0 msid=0
2018/03/09 15:14:25 [debug] 14853#0: *4 RTMP recv amf_cmd (20) csid=3 timestamp=0 mlen=34 msid=0 nbufs=1
2018/03/09 15:14:25 [debug] 14853#0: *4 nhandlers: 1
2018/03/09 15:14:25 [debug] 14853#0: *4 calling handler 0
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (1) 02 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (2) 00 0C '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (12) 64 65 6C 65 74 65 53 74 72 65 61 6D 'deleteStream'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF func 'deletestream' passed to handler 0/1
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (1) 00 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (8) 40 10 00 00 00 00 00 00 '@???????'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (1) 05 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (1) 00 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF read (8) 3F F0 00 00 00 00 00 00 '????????'
2018/03/09 15:14:25 [info] 14853#0: *4 deleteStream, client: 14.143.32.2, server: 0.0.0.0:1935
2018/03/09 15:14:25 [debug] 14853#0: *4 live: leave 'dryruncont'
2018/03/09 15:14:25 [debug] 14853#0: *4 live: delete empty stream 'dryruncont'
2018/03/09 15:14:25 [debug] 14853#0: *4 create: status code='NetStream.Play.Stop' level='status' desc='Stop live'
2018/03/09 15:14:25 [debug] 14853#0: *4 create: amf nelts=4
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 02 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 08 '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (8) 6F 6E 53 74 61 74 75 73 'onStatus'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 00 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (8) 00 00 00 00 00 00 00 00 '????????'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 05 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 03 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 05 '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (5) 6C 65 76 65 6C 'level'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 02 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 06 '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (6) 73 74 61 74 75 73 'status'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 04 '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (4) 63 6F 64 65 'code'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 02 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 13 '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (19) 4E 65 74 53 74 72 65 61 6D 2E 50 6C 61 79 2E 53 'NetStream.Play.S'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 0B '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (11) 64 65 73 63 72 69 70 74 69 6F 6E 'description'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 02 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 09 '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (9) 53 74 6F 70 20 6C 69 76 65 'Stop live'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (2) 00 00 '??'
2018/03/09 15:14:25 [debug] 14853#0: *4 AMF write (1) 09 '?'
2018/03/09 15:14:25 [debug] 14853#0: *4 RTMP prep amf_cmd (20) fmt=0 csid=5 timestamp=0 mlen=94 msid=1 nbufs=1
2018/03/09 15:14:25 [debug] 14853#0: *4 RTMP send nmsg=1, priority=0 #8
2018/03/09 15:14:25 [debug] 14853#0: *4 send: fd:4 106 of 106
2018/03/09 15:14:25 [debug] 14853#0: *4 record: close_stream
2018/03/09 15:14:25 [debug] 14853#0: *4 recv: eof:0, avail:0
2018/03/09 15:14:25 [debug] 14853#0: timer delta: 30067
2018/03/09 15:14:25 [debug] 14853#0: worker cycle
2018/03/09 15:14:25 [debug] 14853#0: epoll timer: 29827
2018/03/09 15:14:25 [debug] 14853#0: epoll: fd:4 ev:2001 d:000000000194B558
2018/03/09 15:14:25 [debug] 14853#0: *4 recv: eof:1, avail:1
2018/03/09 15:14:25 [debug] 14853#0: *4 recv: fd:4 0 of 146
2018/03/09 15:14:25 [debug] 14853#0: *4 finalize session
2018/03/09 15:14:25 [debug] 14853#0: *4 post event 000000000193C2E8
2018/03/09 15:14:25 [debug] 14853#0: timer delta: 0
2018/03/09 15:14:25 [debug] 14853#0: posted event 000000000193C2E8
2018/03/09 15:14:25 [debug] 14853#0: *4 delete posted event 000000000193C2E8
2018/03/09 15:14:25 [debug] 14853#0: *4 close session
2018/03/09 15:14:25 [info] 14853#0: *4 disconnect, client: 14.143.32.2, server: 0.0.0.0:1935
2018/03/09 15:14:25 [info] 14853#0: *4 deleteStream, client: 14.143.32.2, server: 0.0.0.0:1935
2018/03/09 15:14:25 [debug] 14853#0: *4 live: not joined
2018/03/09 15:14:25 [debug] 14853#0: *4 record: close_stream
2018/03/09 15:14:25 [debug] 14853#0: *4 event timer del: 4: 1520608495233
2018/03/09 15:14:25 [debug] 14853#0: *4 free: 000000000191B480, unused: 3526
2018/03/09 15:14:25 [debug] 14853#0: *4 close connection
2018/03/09 15:14:25 [debug] 14853#0: *4 reusable connection: 0
2018/03/09 15:14:25 [debug] 14853#0: *4 free: 000000000193C220, unused: 128
2018/03/09 15:14:25 [debug] 14853#0: *4 free: 00000000019264D0, unused: 1617
2018/03/09 15:14:25 [debug] 14853#0: worker cycle
2018/03/09 15:14:25 [debug] 14853#0: epoll timer: -1

"""

Can you help me debug this?

I am using ubuntu 14.04

@chetandhembre chetandhembre changed the title RTMP push not working RTMP pull not working Mar 9, 2018
@gnolizuh
Copy link
Owner

According to your configuration, the rtmp push url will be rtmp://my_origin_server/live/streamname and the pull url will be rtmp://52.66.143.134/live/streamname.

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