File size: 321 Bytes
10e5df5
9d6eb99
10e5df5
 
 
1d70448
9d6eb99
4a5397d
9d6eb99
1
2
3
4
5
6
7
8
9
import ffmpeg
import os

def join_artifacts():
    audio_in = ffmpeg.input('audio_out.mp3')
    video_in = ffmpeg.input('video_out.mp4')
    ffmpeg.concat(video_in.filter("subtitles", "audio_out.srt"), audio_in, v=1, a=1).output('av_out.mp4').run()
    av_path = os.path.join(os.getcwd(), "av_out.mp4")
    return av_path