Program to stream m3u8 url to rtmp in python using Streamlink.
def streamlink(url, quality): # get the streamlink streams = streamlink.streams(url) # get the stream of best quality stream = streams[quality] # get streams url url = stream.to_url() # return streams url return url