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 from ffmpeg_streaming import HLS, DASH stream = HLS( Formats.h264(), Size(width=1280, height=720), Bitrate(128, 128), Representation(720, 1080) ) stream.add_input("https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8").output("../output.m3u8").run()

Questions about programming?Chat with your personal AI assistant