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 HLSStream stream = HLSStream( ffmpeg_path=r'C:\Users\Nancy\AppData\Local\Programs\Python\Python36\Scripts\ffmpeg.exe', input_path='https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8', output=r'C:\Users\Nancy\Desktop\ffmpeg_streaming-master\output.mp4', format='mp4') stream.stream()

Questions about programming?Chat with your personal AI assistant