'How can I combine these three ffmpeg commands?

I want to combine the following three commands into one command, if possible.

a = f'''ffmpeg -i {footage} -vcodec libx264 -acodec aac {mov_path}'''
b = f'''ffmpeg -i {mov_path} -vf "drawtext=text=' {hostname}\n {socket.gethostbyname(hostname)}\n {getpass.getuser()}':x=10:y=H-th-10:fontfile=KhmerOS.ttf:fontsize=50:fontcolor=black:shadowcolor=black:shadowx=2:shadowy=2" {watermark_path}'''
c = f'''ffmpeg -i {watermark_path} -vf "drawtext=fontfile=KhmerOS.ttf: text='%{{frame_num}}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=50: box=1: boxcolor=white: boxborderw=5" -c:a copy {current_frame} '''

I want a single output video because I don't want to use unnecessary variables like b,c,watermark_path, and current_frame I want only one resultant video with mov_path



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source