PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to stream m3u8 urlto rtmp in python using FLVStream .

import subprocess rtmp_url = 'rtmp://192.168.2.2/live/test' m3u8_url = 'http://example.com/playlist.m3u8' cmd = "ffmpeg -i '{0}' -c copy -f flv '{1}'".format(m3u8_url, rtmp_url) p = subprocess.Popen(cmd, shell=True) p.wait()

Questions about programming?Chat with your personal AI assistant