PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to stream m3u8 urlto rtmp in python using Videostream .

import videostream import subprocess def stream(url, rtmp): stream = videostream.VideoStream(url) stream.open() stream.stream(rtmp) print ('Streaming to rtmp') #Streaming to rtmp stream('https://my-domain.com/playlist.m3u8', 'rtmp://my-domain.com/live/stream')

Questions about programming?Chat with your personal AI assistant