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)