c3d2-web/scripts/encode_mp4.sh

26 lines
489 B
Bash
Executable File

#!/bin/sh -e
if=$1
of=$2
# No. CPU cores:
threads=4
# Video bitrate:
vb=1600k
# Audio bitrate:
ab=128k
ffmpeg -i "$if" \
-f mp4 \
-metadata:s:a:0 language=deu -metadata title="IP-Debugging" -metadata album="Themenabend" -metadata artist="C3D2" -metadata year=2014 \
-acodec libfaac \
-ab $ab \
-threads $threads \
-vcodec libx264 \
-b:v $vb \
-profile:v baseline -level 3.0 \
-movflags +faststart \
-passlogfile "$of.ffmpeg2pass" \
-y "$of"