PW Akshay

Generation

generate functionSun, 04 Dec 2022

stream m3u8 url to rtmp in python with pyffmpeg

def m3u8_to_rtmp(m3u8_url, rtmp_url, timeout=300): ff = FFmpeg( inputs={m3u8_url: None}, outputs={rtmp_url: '-c copy -map 0'}) ff.run(cmd='ffmpeg', timeout=timeout)

Questions about programming?Chat with your personal AI assistant