PW Akshay

Generation

generate functionTue, 17 Jan 2023

create a python program to stream video from m3u8 url to youtube using python-ffmpeg-video-streaming module (do not create function)(do not use subprocess)

from ffmpy import FFmpeg input_filepath = 'http://172.18.0.4:8000/live/test' output_filepath = 'rtmp://a.rtmp.youtube.com/live2/x/y' ff = FFmpeg( inputs={input_filepath: None}, outputs={output_filepath: None} ) ff.run()

Questions about programming?Chat with your personal AI assistant