create a python program to stream video from m3u8 url to youtube using python-ffmpeg-video-streaming module (do not create function)(do not use subprocess)
from ffmpy3 import FFmpeg stream = FFmpeg( inputs={'http://10.0.0.1:8081/hls/stream.m3u8': None}, outputs={'rtmp://a.rtmp.youtube.com/live2/x/y': '-c:v libx264 -crf 23 -c:a aac -ar 44100 -ac 1 -b:a 128k -bufsize 512k -f flv'} ) stream.run()