I have a streaming m3u8 links (one for video and one for audio)that I want to merge.
I've been doing this command line to do so:
ffmpeg -i <audio> -i <video? -async 1 -c copy output.mp4
and it works just like I want, the problem is I am trying to do this for 100 different link, and I would like to write a code instead of doing this manually for each link. I know that this can be done in python, but I don't know how to translate an ffmpeg command to a python code.
os.system("ffmpeg -i <audio> -i <video> -async 1 -c copy output.mp4")