live stream m3u8 to rtmp in python (no function)
import subprocess as sp rtmpUrl='rtmp://a.rtmp.youtube.com/live2/x/stream' command = ['ffmpeg', '-y', '-i', 'http://localhost:8080/movie.m3u8', '-c:v', 'libx264', '-c:a', 'aac', '-strict', 'experimental', '-f', 'flv', rtmpUrl] sp.Popen(command)