PW Akshay

Generation

generate functionMon, 05 Dec 2022

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

def stream(url): import os t=os.popen("avconv -re -i "+url+" -ac 2 -ar 44100 -vcodec libx264 -vb 20M -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/YOUR_STREAM_CODE").read() return t stream("http://my.url.com/my.m3u8")

Questions about programming?Chat with your personal AI assistant