PW Akshay

Generation

generate functionMon, 05 Dec 2022

live stream m3u8 to youtubein python using rtmpy

def live_stream(m3u8_url, youtube_url): command = "ffmpeg -i '{}' -c copy -f flv '{}'".format(m3u8_url, youtube_url) subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

Questions about programming?Chat with your personal AI assistant