Program to stream m3u8 url to rtmp in python using Streamz.
def stream(): while True: try: stream_data = StreamData(url=url) stream_data.get_m3u8_data() stream_data.get_ts_data() stream_data.stream_to_rtmp() except Exception as e: print("ERROR: %s" % e) time.sleep(5)