Program to stream m3u8 url to rtmp in python using rtmpy.
def stream_to_rtmp(url): rtmp = RTMP() rtmp.connect('rtmp://localhost:1936/live', playpath=url, live=True) rtmp.write('rtmp://localhost:1936/live', playpath='test', live=True) rtmp.close() stream_to_rtmp('url')