Skip to content

Instantly share code, notes, and snippets.

View jhill1's full-sized avatar

Jon Hill jhill1

View GitHub Profile
@jhill1
jhill1 / ffmpeg.sh
Created January 22, 2020 11:38
Create a single video by overlaying 4 separate videos using ffmpeg
# takes four input videos, createa "blank" video of a set size, then scales the input videos to
# be the four quadrants, overlaying them at the right coordinates.
# Alter the size and coordinates appropriately.
ffmpeg \
-i ythan_restored.avi -i ythan_spit0.1.avi -i ythan_spit0.2.avi -i ythan_spit0.5.avi \
-filter_complex \
"nullsrc=size=1580x936 [base];
[0:v] setpts=PTS-STARTPTS, scale=790x468 [upperleft];
[1:v] setpts=PTS-STARTPTS, scale=790x468 [upperright];
[2:v] setpts=PTS-STARTPTS, scale=790x468 [lowerleft];
#!/bin/sh
#
# This script is used on a QNAP TS-269 PRO. https://www.en0ch.se/qnap-and-rsync/
#
# You have to change:
# 1. $SHAREUSR
# 2. $EXCLUDES (if you want o change the name of the file servername.excludes)
# 3. $SOURCE & $DESTINATION
# 4. user@yourserver.se for the mysqldump
# 5. --password=SUPERSECRET