This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageDraw, ImageFont, ImageColor | |
class TextCaption: | |
def __init__(self, **kwargs): | |
self.kwargs = kwargs | |
# Create a new image with a white background | |
self.max_width = self.kwargs['max_width'] | |
# Load a font |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For simple mouse and keyboard automation, PyAutoGUI or Pynput are great choices. | |
For Windows-specific applications, pywinauto is highly effective. | |
For image-based automation, consider using SikuliX. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import subprocess | |
import ffmpeg | |
def gen_filter(segments): | |
""" | |
https://stackoverflow.com/questions/63553906/merging-multiple-video-files-with-ffmpeg-and-xfade-filter | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facebook video + audio url by id | |
https://www.facebook.com/video/playback/dash_mpd_debug.mpd?v=894439638740714 |