PW Akshay

Generation

generate functionSun, 04 Dec 2022

stream m3u8 url to rtmp in python with pyffmpeg

def stream(m3u8_url, rtmp_url): command = [ 'ffmpeg', '-i', m3u8_url, '-c', 'copy', '-f', 'flv', rtmp_url ] subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

Questions about programming?Chat with your personal AI assistant