Skip to content

Instantly share code, notes, and snippets.

View simivar's full-sized avatar
👋

Krystian Marcisz simivar

👋
View GitHub Profile
@simivar
simivar / ffmpeg_gif_timelapse_timestamp.md
Last active April 19, 2023 12:32
ffmpeg - GIF timelapse with timestamp clock

ffmpeg - GIF timelapse with timestamp clock

First frame of our input movie: First frame of our Input movie

Add timestamp clock to video

ffmpeg -i input.mov -vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf:expansion=normal: text='%{pts \\: hms}': fontcolor=white:fontsize=48: x=(w-text_w)/2: y=h-th-10: box=1: boxcolor=black: boxborderw=5: line_spacing=32" -vcodec libx264 -vb 2600k -strict -2 -preset slower -f mp4 -an timestamp_clock.mp4

In the first step we take our input movie input.mov and add at bottom center a black box with white timestamp

@simivar
simivar / print_r_reverse.php
Last active November 4, 2023 23:27
PHP function to reverse print_r function
<?php
/**
* I've published a fully-tested Composer library with type-casting.
* @see https://github.com/simivar/reverse-print-r
*/
/**
* Matt: core
* Trixor: object handling
* lech: Windows suppport