Example config with two channels with rtmp sources.
----- Config
Code: Select all
new ch3 broadcast enabled loop
setup ch3 input "rtmp://xxx.xxx.xxx.xxx:6001/file/stream"
setup ch3 output #rtp{mux=ts,dst=224.80.0.1,port=5004,proto=udp,ttl=2}
control ch3 play
new ch4 broadcast enabled loop
setup ch4 input "rtmp://xxx.xxx.xxx.xxx:6002/file/stream"
setup ch4 output #rtp{mux=ts,dst=224.80.0.2,port=5004,proto=udp,ttl=2}
control ch4 play
------- Errors in log output
Code: Select all
[0x7fb110000c58] [Media: ch4] access_avio access error: Module aready in use
[0x7fb11c000e18] [Media: ch4] main input error: open of `rtmp://xxx.xxx.xxx.xxx:6002/file/stream' failed
[0x7fb11c000e18] [Media: ch4] main input error: Your input can't be opened
[0x7fb11c000e18] [Media: ch4] main input error: VLC is unable to open the MRL 'rtmp://xxx.xxx.xxx.xxx:6002/file/stream'. Check the log for details.
ACCESS_AVIO module error "Module already in use" seems say then no more then only one rtmp input can be configured.
But I need above 50 RTMP channel to stream to UDP (