PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to live stream m3u8 to rtmp in python (no ffmpeg and no function)

import requests import subprocess def m3u8_to_rtmp(m3u8_url,rtmp_url): subprocess.call(["ffmpeg", "-i", m3u8_url, "-c", "copy", "-bsf:a", "aac_adtstoasc", "-f", "flv", rtmp_url]) m3u8_to_rtmp("m3u8_url","rtmp_url")

Questions about programming?Chat with your personal AI assistant