PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to stream m3u8 url to rtmp in python using rtmpy.

import rtmpy # create the client client = rtmpy.Client() client.connect('rtmp://localhost/stream') # publish the stream client.publish('rtmp://streaming.server.com/stream.m3u8') # disconnect client.disconnect() # the default connection parameters are { 'app': 'stream', 'port': 1935, 'flash_ver': 'FMLE/3.0 (compatible; FMSc/1.0)', 'swf_url': 'http://streaming.server.com/example/stream.swf', 'tc_url': 'rtmp://streaming.server.com', 'page_url': 'http://streaming.server.com', 'video_size': (640, 480) }

Questions about programming?Chat with your personal AI assistant