PW Akshay

Generation

generate functionMon, 05 Dec 2022

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')

Questions about programming?Chat with your personal AI assistant