PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to stream m3u8 url to youtube in python using Avcon .

def stream_to_youtube(m3u8_url, title, description, category, tags, output_path=None): """ :param m3u8_url: url of m3u8 file :param title: video title :param description: video description :param category: video category :param tags: video tags (list) :param output_path: path for the output file (default=None) :return: output_filename (if output_path=None) or True """ # modify the avconv command with your own configuration command = [ "avconv", "-i", m3u8_url, "-c:v", "libx264", "-c:a", "copy", "-threads", "0", "-b:v", "1000k", "-b:a", "64k", "-r", "25", "-f", "mp4", "-movflags", "frag_keyframe+empty_moov",

Questions about programming?Chat with your personal AI assistant