]> git.phdru.name Git - audio-cdr-video.git/blob - video/m_encode_comments
Initail import
[audio-cdr-video.git] / video / m_encode_comments
1 #! /bin/sh
2
3 if [ -z "$1" ]; then
4    echo "Usage: $0 title [mencoder options]" >&2
5    exit 1
6 fi
7
8 title="$1"
9 shift
10
11 echo "$title" | iconv -f koi8-r -t utf-8 >avi_name.txt
12 echo "Codec FFmpeg (DivX5)" >avi_comment.txt
13
14 m_encode -info "name=$(cat avi_name.txt):comment=$(cat avi_comment.txt)" "$@" &&
15 mv output.avi "$title".avi &&
16 exec rm avi_name.txt avi_comment.txt divx2pass.log