0

I would like to know how I can add padding so that it does not touch the edges of the video. This is my current code.

            text_clip = TextClip(text, size=[1080, 1920], fontsize=70,
                                 stroke_color='black', stroke_width=2, color='white',
                                 method='caption', font='Copper')
            text_clip = text_clip.set_start(t)
            text_clip = text_clip.set_pos(('center', 'top')).set_duration(AudioFileClip(f"assets/temp/{id}/mp3/{i}.mp3").duration)
            t += AudioFileClip(f"assets/temp/{id}/mp3/{i}.mp3").duration
            text_clips.append(text_clip) 

Also another issue I have is that it the 'set_pos' does not work

0 Answers0