cmd = 'ffmpeg -loop 1 -i image.jpg -i message.mp3 -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4' subprocess.check_output(cmd, shell=True) subprocess.call(cmd, shell=True)