live stream m3u8 to youtubein python using rtmpdump
import subprocess import shlex def play_m3u8_youtube(url): cmd = 'ffmpeg -i "{}" -vcodec copy -acodec copy -f flv rtmp://x.rtmp.youtube.com/live2/{}'.format(url, youtube_key) subprocess.call(shlex.split(cmd))