Program to stream m3u8 url to youtube in python using Avcon .
import os import time def stream(): os.system("ffmpeg -i http://192.168.43.1:8080/hls/test.m3u8 -vcodec copy -acodec copy -absf aac_adtstoasc -f flv rtmp://a.rtmp.youtube.com/live2/x/") stream()