• 0 Posts
  • 71 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle








  • Requires ffmpeg and imagemagick

    #!/bin/bash
    
    # Check if input video file is provided and exists
    if [ $# -lt 1 ]; then
        echo "Usage: $0 <input_video>"
        exit 1
    fi
    
    input_video="$1"
    
    if [ ! -f "$input_video" ]; then
        echo "Error: Input video file not found."
        exit 1
    fi
    
    # Get video duration in seconds (floating-point)
    duration=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$input_video")
    
    # Check if the duration was successfully extracted
    if [ -z "$duration" ]; then
        echo "Error: Could not retrieve video duration."
        exit 1
    fi
    
    # Calculate fps as 20 frames divided by the duration
    fps=$(echo "20 / $duration" | bc -l)
    
    # Create a directory to store frames
    mkdir -p frames
    
    
    # Extract 20 frames from the video using the fps filter
    ffmpeg -i "$input_video" -vf "fps=$fps,scale=200:-1" -frames:v 20 "frames/frame_%02d.jpg" -loglevel error
    
    # Create the collage using ImageMagick's montage tool
    montage -mode concatenate -tile 5x4 -geometry +2+2 frames/frame_*.jpg output_collage.jpg
    
    # Clean up temporary files (delete frames directory)
    rm -r frames
    
    echo "Collage created: output_collage.jpg"
    
    











  • Living in SE Texas, I’m used to so many spiders just building webs in my face height and nearly walking through them, so I am pretty familiar with spiders. A lot of golden orb weavers, brown and black widows, lots of jumping spiders, even cute little crab spiders. Big mama wolf spiders with their babies on their backs.

    The single time I have seen a brown recluse in person, it was living in a lock at my storage. Lock has been on there a while I guess. Unlocked and removed it from the latch, and as I look down, I see the fleshy legs start to climb out like the most horrifying version of my nightmares and just yeeted that lock clear into the field next door.

    Those bitches are revolting and my whole body rejected being near it after being warned so much and finding one IN MY HAND.