arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.46k stars 3.51k forks source link

Support to multiple streams #438

Closed leandromoreira closed 10 years ago

leandromoreira commented 10 years ago

I tried to stream using FMLE using multiple streams and it didn't work.

kraiz commented 10 years ago

Seeing this, too. First stream "test_1" is fine, but "test_2" (an third, if used) fails.

2014/08/13 16:10:40 [info] 3127#0: *1 createStream, client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *1 publish: name='test_1' args='videoKeyframeFrequency=1&totalDatarate=350' type=live silent=0, client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *1 notify: publish 'localhost:8080/on_publish', client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *1 relay: create push name='test_1' app='' playpath='' url='192.168.56.54/live', client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *1 createStream, client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *1 publish: name='test_2' args='videoKeyframeFrequency=1&totalDatarate=800' type=live silent=0, client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *1 notify: publish 'localhost:8080/on_publish', client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *1 relay: create push name='test_2' app='' playpath='' url='192.168.56.54/live', client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [error] 3127#0: *1 relay: push failed name='test_2' app='' playpath='' url='192.168.56.54/live', client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:10:40 [info] 3127#0: *13 disconnect, client: 192.168.56.54/live, server: ngx-relay
2014/08/13 16:10:40 [info] 3127#0: *13 deleteStream, client: 192.168.56.54/live, server: ngx-relay
2014/08/13 16:11:07 [info] 3127#0: *1 closeStream, client: 192.168.149.51, server: 0.0.0.0:1935
2014/08/13 16:11:07 [info] 3127#0: *10 disconnect, client: 192.168.56.54/live, server: ngx-relay
2014/08/13 16:11:07 [info] 3127#0: *10 deleteStream, client: 192.168.56.54/live, server: ngx-relay

Multiple single streams (each in individual FMLE instance) are also fine. My RTMP knowledge lacks here. Does FMLE embed this 2 or 3 streams inside an RTMP stream or something like that?

leandromoreira commented 10 years ago

I think fmle sends all streams in a single connection, but they still continue to be individual rtmp connection.

arut commented 10 years ago

Only a single stream per connection is supported in the module.