summaryrefslogtreecommitdiffstats
path: root/tools/convert2theora
diff options
context:
space:
mode:
Diffstat (limited to 'tools/convert2theora')
-rwxr-xr-xtools/convert2theora14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/convert2theora b/tools/convert2theora
index 495da56..887718d 100755
--- a/tools/convert2theora
+++ b/tools/convert2theora
@@ -15,12 +15,16 @@ LOCATION=`./csv $2 $1 location`
TITLE=`./csv $2 $1 title`
NAME=`./csv $2 $1 name`
LICENSE=`./csv $2 $1 license`
+ORGANIZATION=`./csv $2 $1 organization`
+CONTACT=`./csv $2 $1 contact`
if [ -z "$1" ]; then
echo "Usage: $0 <video-file> [<csv-file>]"
exit 1
fi
+# todo: pass på å behold 4:3/16:9 i x:y..
+
if [ ! -f "$BASENAME.ogv" ] ; then
echo "Generating $BASENAME.ogv"
@@ -31,15 +35,11 @@ if [ ! -f "$BASENAME.ogv" ] ; then
--title "$TITLE" \
--date "$DATE" \
--location "$LOCATION" \
+ --organization "$ORGANIZATION" \
+ --copyright "$COPYRIGHT" \
--license "$LICENSE" \
+ --contact "$CONTACT" \
> "$BASENAME.ogv-compresslog" 2>&1
-
-# NUUG:http://nuug.no/ alltid første URL?
-# --organization # Name of organization (studio)
-# --copyright # Copyright
-# --license $LICENSE \
-# --contact # Contact link
-
else
ffmpeg2theora $1 -o $BASENAME.ogv
# --width 384 --height 288