combine_audio() takes very long when combining lengthy video and audio and downloading captions is executed only after finishing it.
Using async functions, downloading can be completed in a minute if the network connection is not bad.
Also each step(downloading video/audio/caption and combining them) can be easily separated and made optional if these functions are changed to async ones.
combine_audio()
takes very long when combining lengthy video and audio and downloading captions is executed only after finishing it. Using async functions, downloading can be completed in a minute if the network connection is not bad. Also each step(downloading video/audio/caption and combining them) can be easily separated and made optional if these functions are changed to async ones.