Skip to content

Instantly share code, notes, and snippets.

View KalenXI's full-sized avatar

Kevin Vinck KalenXI

View GitHub Profile
@KalenXI
KalenXI / encode.sh
Created September 17, 2023 13:34
Encode Timelapse Video
#!/bin/bash
cd /home/kevin/traffic
date_dir=$(date +%F -d yesterday)
ffmpeg -framerate 25 -pattern_type glob -i '*.png' -c:v libx264 -crf 22 -y ${date_dir}.mp4
rm *.png
@KalenXI
KalenXI / traffic.py
Created September 17, 2023 13:28
Traffic Screenshots
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
def main():
CHROME_PATH = '/usr/bin/google-chrome'
CHROMEDRIVER_PATH = '/usr/bin/chromedriver'
WINDOW_SIZE = "1920,1080"
chrome_options = Options()