Skip to content

Instantly share code, notes, and snippets.

@pplux
pplux / watermark.sh
Created August 28, 2020 14:14
Script to use ffmpeg to watermark a video
#!/bin/bash
VIDEO="video.mp4"
IMAGE="logo.png"
SIZE=200
OUTPUT="output.mp4"
OFFSET_X=50
OFFSET_Y=50
while getopts v:i:o:s:x:y: option
do case "${option}"
#include <iostream>
#include <assert.h>
#include <vector>
template<class T>
struct Func{};
// std::func replacement without dynamic memory allocation (captures are limited to 48 bytes)
// this could be extended to support captures >48 bytes... of course, with a bit more of logic
// and some state.
@pplux
pplux / blend_plugin.py
Last active November 7, 2016 22:15
Soliman
import bpy
render = bpy.context.scene.render
render.use_border = True
render.border_min_x = 0
render.border_max_x = 0.01
render.border_min_y = 0
render.border_max_y = 0.01
render.use_crop_to_border = True
bpy.context.scene.render.filepath="/tmp/test.png"