Transform your Lolcommits photos into amazing video recaps! This tool automatically organizes your git commit selfies into monthly videos and a complete timeline, helping you relive your coding journey.
English | 简体中文
- Automatically scans all Lolcommits photos in
~/.lolcommits
- Organizes photos by year and month
- Generates individual monthly recap videos
- Creates a complete video summary with all photos
- Displays timestamp for each photo in the video
- Supports multiple image formats (jpg, jpeg, png, gif)
- Automatically adjusts image size for optimal display
- Python 3.6+
- OpenCV
- Pillow
- NumPy
- Clone this repository:
git clone [repository-url]
cd lolcommits_recap
- Install Python dependencies:
pip install -r requirements.txt
- Make sure you have Lolcommits installed and configured.
# Generate video recaps for all lolcommits photos
python lolcommits_recap.py
# View the generated video
open output_videos/final_summary.mp4
-
Ensure you have Lolcommits installed and have some photos in
~/.lolcommits
. -
Run the script:
python lolcommits_recap.py
- Find the generated videos in the
output_videos
directory:photos_YYYY-MM.mp4
: Individual monthly videosfinal_summary.mp4
: Complete video summary with all photos
- Resolution: 1920x1080 (1080p)
- Frame Rate: 1 fps (each photo shows for 1 second)
- Format: MP4
- Codec: H.264
Lolcommits takes a photo every time you make a git commit. This video generator helps you:
- Review your coding journey
- Track time spent on different projects
- Create an interesting development timeline
- Share your coding story
For best results with Lolcommits:
- Ensure good lighting conditions
- Adjust camera angle appropriately
- Regularly clean up unnecessary photos
- Set different Lolcommits configs for different projects
You can adjust the following parameters:
fps
: Increate_video()
function to control photo display durationtarget_size
: Increate_video()
function to control video resolutionimage_patterns
: Inorganize_images_by_date()
function to support more image formats
-
Q: Video playback is too fast/slow? A: Modify the
fps
parameter inlolcommits_recap.py
. -
Q: How to change video resolution? A: Modify the
target_size
parameter in thecreate_video()
function. -
Q: What image formats are supported? A: Currently supports jpg, jpeg, png, and gif formats. You can add more formats in the
image_patterns
list.
Issues and Pull Requests are welcome!
MIT License