PW Akshay

Generation

generate functionMon, 05 Dec 2022

live stream m3u8 to rtmp in python (no function)

import subprocess import os import time #ffmpeg -i 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8' -c copy -bsf:a aac_adtstoasc -f flv rtmp://a.rtmp.youtube.com/live2/zpc3-3uq3-9x7p-g5q6 ffmpegCmd = 'ffmpeg -re -i "http://live.chosun.gscdn.com/live/tvchosun1.m3u8" -c copy -bsf:a aac_adtstoasc -f flv rtmp://a.rtmp.youtube.com/live2/zpc3-3uq3-9x7p-g5q6' subprocess.run(ffmpegCmd, shell=True)

Questions about programming?Chat with your personal AI assistant