Category Archives: Okategoriserade

Davinci resolve script for generating videos that can be imported


#!/bin/bash
DIRPATH=$1
OLDIFS=$IFS
IFS=$'\n'

if [ -z “$DIRPATH” ]
then
exit 1
fi

mkdir -p processed

FILES=$(ls $DIRPATH)

for i in $FILES
do
if [ -d “$FILES” ]
then
continue
fi

NEW_NAME=$(echo $i | sed ‘s/\.[^.]*$/.mov/’)
#NEW
ffmpeg -i “$i” -vcodec dnxhd -profile:v dnxhr_hq -r 25 -pix_fmt yuv422p -s 3840×2160 -c:a pcm_s16le “processed/$NEW_NAME”
#OLD
#ffmpeg -i “$i” -vcodec dnxhd -acodec pcm_s16le -s 1920×1080 -r 30000/1001 -b:v 36M -pix_fmt yuv422p -f mov “processed/$NEW_NAME”
done

Espressobin – install nginx and php

Espressobin is my new toy which eventually be my new bridge to the internet while it hosts my connected home. Eventually it will be hosting Home Assistant, OpenVPN and be the WLAN Access Point.

The Espressobin has all the “horse power” i need, it is equipped with 1 gigabyte of ram and a dual core ARM Cortex A53 processor with a clock speed up to 1.2GHz. Which will be plenty enough for my setup. Technical details about the Espressobin is available on their homepage: http://espressobin.net/tech-spec/

Continue reading Espressobin – install nginx and php