Media ingestion snippets

rename GoPro clips according to creation dates:

for f in *.MP4; do mv -n "$f" "$(date -r "$f" +"%Y%m%d_%H%M%S").mp4"; done

change picture names according to exif data:

exiftool -r '-FileName<CreateDate' -d '%Y-%m-%d %H.%M.%S%%-c.%%le' .

make timelapse video from JPG snapshots using Intel Quick Sync:

ffmpeg -r 12 -pattern_type glob -y -i '*.jpg' -vcodec mjpeg_qsv -crf 0 "output.mp4"

make timelapse video from normal video with some motion blur using Intel QuickSync:

ffmpeg -i input.mkv -filter:v "tblend=average,framestep=2,setpts=0.1*PTS" -r 96 -b:v 30M -crf 10 -vcodec h264_qsv -an -y output.mkv

merge video files without transcoding them:

ffmpeg -safe 0 -f concat -i <(find . -type f -name '*MP4' -printf "file '$PWD/%p'\n" | sort) -c copy output.mkv

Sort pictures to camera directories:

exiftool -d '.' '-directory<${model;}/$datetimeoriginal' *.jpg

Sort pictures to Year/Month direcotires:


exiftool -d '%Y/%m' '-directory<$CreateDate' *.jpg

Homelab: Dewey

Specs:
– CPU: Intel Core i7-7700k
– Motherboard: Z270 GAMING M3 (MS-7A62)
– GPU: ASUS GeForce GTX960
– RAM: Kingston HyperX 3x8GB DDR4 2.4GHz
– Storage: 2x Corsair MP500 m.2 240G SSDs in mdadm RAID0, 1x WD Black 1TB for storage. 100GB LVM volume as writeback cache for HDD
– Fans: NOCTUA

Roles:
– Docker host
– gaming in virtual machine
– general workstation

Runs:
– ArchLinux

Homelab: node0

Specs:
– 1 x86 64bit Core
– 1.5GB Memory
– 25GB SSD Disk

Roles:
– mysql
– xmpp
– nginx cdn
– Frontend for services in Dockers

Runs:
– Debian testing
– WordPress blog
– Piwik
– Prosody
– TT-RSS

Homelab: TOOR

Specs:
– Intel J1900
– 8 GB of DDR3 non-ecc memory
– 2x WD Blue WD30EZRZ-00Z5HB0 3 TB
– chassis: Fractal Design Node804

Roles:
– Docker host
– backup replication
– backup sync

Runs:
– Debian testing

Docks:

– kanboard/kanboard:stable
– linuxserver/duplicati
– linuxserver/sickbeard
– linuxserver/couchpotato
– guacamole/guacamole
– jenkins
– diameter/rtorrent-rutorrent:latest
– gogs/gogs
– guacamole/guacd
– linuxserver/headphones
– homeassistant/home-assistant

Homelab: wyvern

Specs:
– Intel I3-3220
– 16GB of DDR3 non-ecc memory
– 2x Seagate ST1000DM003-9YN162 1 TB
– Chassis: NZXT Source 210

Roles:
– VM hypervisor
– backup replication

runs:
– Debian testing
– torrents
– virtualized proxmox
– random stuff