Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # load file
- stream_input = ffmpeg.input(target_path + clip["slug"] + ".mp4")
- audio = stream_input.audio
- stream = stream_input.drawtext(text=clip["broadcaster"]["display_name"], x="w-tw-10", y="h-th-10", fontsize=30,
- font="Arial", fontcolor="white", borderw=2, bordercolor="black")
- joined = ffmpeg.concat(stream, audio)
- out = ffmpeg.output(joined, target_path + clip["slug"] + "_rendered" + ".mp4", acodec="aac")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement