Skip to content

Instantly share code, notes, and snippets.

@daald
daald / scaledown-HD-video-to-DVBcut-compatible-SD-mpeg.sh
Created May 17, 2016 23:49
Script for scaling down HD movie after recording using TVheadend to a DVBcut compatible SD movie for archiving
#!/bin/sh
set -x -e
q=3.5
# q3.4 = 324354 bytes/s
# q3.5 = 251931 bytes/s -> best choice
infile="$1" # testrec-hd.ts
outfile="${1%.ts}.mpeg" # testrec-sd-q$q.mpeg"