diff --git a/companion_software/superpipe.py b/companion_software/superpipe.py index a9da1ed..cb5199d 100644 --- a/companion_software/superpipe.py +++ b/companion_software/superpipe.py @@ -4,12 +4,12 @@ import subprocess from PIL import Image, ImageDraw, ImageFont -fnt = ImageFont.truetype('/usr/share/fonts/noto/NotoSans-Regular.ttf', 15) +fnt = ImageFont.truetype('/usr/share/fonts/noto/NotoSans-Regular.ttf', 40) my_ffmpeg_process = subprocess.Popen("ffmpeg -y -i pipe: -r 30 -pix_fmt yuv420p video.webm".split(), stdin=subprocess.PIPE) for i in range(100): - img = Image.new('RGB', (130, 30), color=(73, 109, 137)) + img = Image.new('RGB', (1280, 720), color=(73, 109, 137)) d = ImageDraw.Draw(img) d.text((10, 10), str(i), font=fnt, fill=(255, 255, 0)) @@ -19,10 +19,10 @@ for i in range(100): print(i) for i in range(100): - img = Image.new('RGB', (130, 30), color=(73, 109, 137)) + img = Image.new('RGB', (1280, 720), color=(73, 109, 137)) d = ImageDraw.Draw(img) - d.text((10, 10), str("Thx u ali1234"), font=fnt, fill=(255, 255, 0)) + d.text((10, 10), str("Done with python!"), font=fnt, fill=(255, 255, 0)) img.save(my_ffmpeg_process.stdin, format='png') diff --git a/companion_software/video.webm b/companion_software/video.webm index 6e826ee..abed2ef 100644 Binary files a/companion_software/video.webm and b/companion_software/video.webm differ