PW Akshay


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)

import ffmpeg_streaming import ffmpeg stream = ffmpeg_streaming.Stream(url="") file_name = "big_buck_bunny_720p_10mb.mp4" with open(file_name, 'wb') as f: for data in stream.iter_content(): f.write(data) input = ffmpeg.input(file_name) input = ffmpeg.output(file_name)

Questions about programming?Chat with your personal AI assistant