live stream m3u8 to youtubein python using rtmpy
import subprocess import sys import os import rtmpy #youtube key rtmpy.publish( "rtmp://a.rtmp.youtube.com/live2/[youtube key]", source = "http://[your ip]:[port]/[your m3u8]", live = True, start = True )