PW Akshay


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)

import time import ffmpeg ( ffmpeg .input('') .output('pipe:', format='mpegts') .overwrite_output() .global_args('-nostats', '-loglevel', '0') .run_async(pipe_stdout=True, pipe_stderr=True) .pipe(ffmpeg .input('pipe:') .output('rtmp://', format='flv', vcodec='copy', acodec='copy', rtmp_live='live', rtmp_pageurl='', rtmp_buffer='50000', rtmp_conn='S:

Questions about programming?Chat with your personal AI assistant