PW Akshay

Generation

generate functionMon, 05 Dec 2022

live stream m3u8 to rtmp in python (no function)

import subprocess import time while True: process = subprocess.Popen('ffmpeg -i "http://streaming.mrt.ac.lk/live/tv1/playlist.m3u8" -c copy -f flv "rtmp://xxxxxxxxxx"', shell=True, stdout=subprocess.PIPE) time.sleep(1)

Questions about programming?Chat with your personal AI assistant