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 ffmpeg_streaming import Formats, Bitrate, Representation, Size video = ffmpeg.input("https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8") video = ffmpeg.output(video, "out.mp4") video = ffmpeg.overwrite_output(video) video = ffmpeg.run(video)

Questions about programming?Chat with your personal AI assistant