]> git.phdru.name Git - audio-cdr-video.git/blob - video/tc_encode_comments
Do not shift an empty list of arguments
[audio-cdr-video.git] / video / tc_encode_comments
1 #! /bin/sh
2
3 if [ -z "$2" ]; then
4    echo "Usage: $0 input title [transcode options]" >&2
5    exit 1
6 fi
7
8 input="$1"
9 title="$2"
10 shift 2
11
12 echo "INAM $title" | iconv -f koi8-r -t utf-8 >avi_comments.txt
13 echo "ICMT Codec: FFmpeg (DivX5)" >>avi_comments.txt
14
15 tc_encode "$input" --avi_comments=avi_comments.txt "$@" &&
16 mv output.avi "$title".avi &&
17 exec rm avi_comments.txt divx4.log