I start streaming:
Code:
2013/12/26 18:14:06 [info] 1004#0: *1 client connected '192.168.0.2'
2013/12/26 18:14:06 [info] 1004#0: *1 connect: app='live1' args='' flashver='FMLE/3.0 (compatible; FMSc/1.0)' swf_url='rtmp://192.168.0.3/live1' tc_url='rtmp://192.168.0.3/live1' page_url='' acodecs=0 vcodecs=0 object_encoding=0, client: 192.168.0.2, server: 0.0.0.0:1935
2013/12/26 18:14:06 [info] 1004#0: *1 createStream, client: 192.168.0.2, server: 0.0.0.0:1935
2013/12/26 18:14:06 [info] 1004#0: *1 publish: name='1080' args='' type=live silent=0, client: 192.168.0.2, server: 0.0.0.0:1935
The exec gets called...
Code:
2013/12/26 18:14:06 [info] 1004#0: *1 exec: starting managed child 'ffmpeg', client: 192.168.0.2, server: 0.0.0.0:1935
...and connects as a new client to receive the stream...
Code:
2013/12/26 18:14:06 [info] 1004#0: *2 client connected '192.168.0.3'
2013/12/26 18:14:06 [info] 1004#0: *2 connect: app='live1' args='' flashver='LNX 9,0,124,2' swf_url='' tc_url='rtmp://192.168.0.3:1935/live1' page_url='' acodecs=4071 vcodecs=252 object_encoding=0, client: 192.168.0.3, server: 0.0.0.0:1935
2013/12/26 18:14:06 [info] 1004#0: *2 createStream, client: 192.168.0.3, server: 0.0.0.0:1935
2013/12/26 18:14:06 [info] 1004#0: *2 play: name='1080' args='' start=-2000 duration=0 reset=0 silent=0, client: 192.168.0.3, server: 0.0.0.0:1935
and then starts sending the stream with a second connection (Client3):
Code:
2013/12/26 18:14:08 [info] 1004#0: *3 client connected '192.168.0.3'
2013/12/26 18:14:08 [info] 1004#0: *3 connect: app='live2' args='' flashver='FMLE/3.0 (compatible; Lavf55.22' swf_url='' tc_url='rtmp://192.168.0.3:1935/live2' page_url='' acodecs=0 vcodecs=0 object_encoding=0, client: 192.168.0.3, server: 0.0.0.0:1935
2013/12/26 18:14:08 [info] 1004#0: *3 createStream, client: 192.168.0.3, server: 0.0.0.0:1935
2013/12/26 18:14:08 [info] 1004#0: *3 publish: name='720' args='' type=live silent=0, client: 192.168.0.3, server: 0.0.0.0:1935
both streams are running for around 3 minutes before I stop streaming with OBS:
Stream *1 gets deleted, exec is terminating ffmpeg, client is disconnected and deletestream send a second time, the notice and alert show ffmpeg closed
Code:
2013/12/26 18:17:05 [info] 1004#0: *1 deleteStream, client: 192.168.0.2, server: 0.0.0.0:1935
2013/12/26 18:17:05 [info] 1004#0: *1 exec: terminating child 2380, client: 192.168.0.2, server: 0.0.0.0:1935
2013/12/26 18:17:05 [info] 1004#0: *1 disconnect, client: 192.168.0.2, server: 0.0.0.0:1935
2013/12/26 18:17:05 [info] 1004#0: *1 deleteStream, client: 192.168.0.2, server: 0.0.0.0:1935
2013/12/26 18:17:05 [notice] 1004#0: signal 17 (SIGCHLD) received
2013/12/26 18:17:05 [alert] 1004#0: unknown process 2380 exited on signal 9
Now there is no client more watching on *2:
2013/12/26 18:17:05 [info] 1004#0: *2 recv() failed (104: Connection reset by peer), client: 192.168.0.3, server: 0.0.0.0:1935
And no client *3 streaming anymore, so both get disconnected and the streams deleted:
Code:
2013/12/26 18:17:05 [info] 1004#0: *3 disconnect, client: 192.168.0.3, server: 0.0.0.0:1935
2013/12/26 18:17:05 [info] 1004#0: *3 deleteStream, client: 192.168.0.3, server: 0.0.0.0:1935
2013/12/26 18:17:05 [info] 1004#0: *2 disconnect, client: 192.168.0.3, server: 0.0.0.0:1935
2013/12/26 18:17:05 [info] 1004#0: *2 deleteStream, client: 192.168.0.3, server: 0.0.0.0:1935
In your log I couldnt find the exec being called, although you have a second client connecting as a viewer, which should be your ffmpeg. It stops receiving after 3-4 seconds and a process exits, but then a client connects?! but its missing the play or publish info line.
I am not really sure whats wrong atm, you could upload us your whole config once (of course replace the
streamkeys) and maybe a new rtmp_error.log in text form (the screenshots are a bit hard to read)