PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to live stream m3u8 to rtmp in python by PyChunkedEncode.

def stream(url, rtmp): while True: try: with PyChunkedEncode(url) as encoder: encoder.output(rtmp) except Exception as e: import traceback traceback.print_exc() print(e) time.sleep(2)

Questions about programming?Chat with your personal AI assistant