superpipe being weird
This commit is contained in:
parent
0bc1af6c3a
commit
1968799404
|
@ -4,12 +4,12 @@ import subprocess
|
||||||
from PIL import Image, ImageDraw, ImageFont
|
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)
|
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):
|
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 = ImageDraw.Draw(img)
|
||||||
d.text((10, 10), str(i), font=fnt, fill=(255, 255, 0))
|
d.text((10, 10), str(i), font=fnt, fill=(255, 255, 0))
|
||||||
|
@ -19,10 +19,10 @@ for i in range(100):
|
||||||
print(i)
|
print(i)
|
||||||
|
|
||||||
for i in range(100):
|
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 = 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')
|
img.save(my_ffmpeg_process.stdin, format='png')
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue