PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to live stream m3u8 to rtmp in python

import subprocess import os def live_stream(m3u8_url,rtmp_url): cmd = "ffmpeg -i '"+ m3u8_url +"' -c copy -f flv '"+ rtmp_url +"'" os.system(cmd)

Questions about programming?Chat with your personal AI assistant