Program to stream m3u8 url to youtube in python
from subprocess import run def stream(url, name, privacy): run(["ffmpeg", "-i", url, "-acodec", "copy", "-vcodec", "copy", "-f", "flv", "rtmp://a.rtmp.youtube.com/live2/" + name + "?privacyStatus=" + privacy])