Program to live stream m3u8 to rtmp in python by PyChunkedEncode.
def live_stream_m3u8_to_rtmp(): format = "rtmp://%s/%s/%s" % ( live_stream_server_info['ip'], live_stream_server_info['app'], live_stream_server_info['stream_name'] ) chunked_encoder = PyChunkedEncode( format, live_stream_server_info['username'], live_stream_server_info['password'], live_stream_server_info['key'], live_stream_server_info['log_level']) chunked_encoder.start() chunked_encoder.join()