PW Akshay

Generation

generate functionSun, 04 Dec 2022

stream m3u8 url to rtmp in python with pyffmpeg

import ffmpeg from ffmpeg import * def stream_m3u8_to_rtmp(m3u8_url, rtmp_url): ff = FFmpeg( inputs={m3u8_url: None}, outputs={rtmp_url: None} ) ff.run() stream_m3u8_to_rtmp('http://192.168.0.23/hls/test.m3u8', 'rtmp://localhost/live/test')

Questions about programming?Chat with your personal AI assistant