Advertisement
Guest User

Untitled

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