#!/bin/sh # # (c) 2006 Holger Levsen # This is script is free software licenced under the GPLv2 # # # # # # This script is also a hack. Have fun, take care. # # # # # # md5sums * > MD5SUMS.txt TARGET=debian-edu-erkelenz export TARGET #mkdir ${TARGET}/xvid && cd dv && time for i in *.mov ; do time nice -n 19 mencoder $i -of avi -ovc xvid -xvidencopts bitrate=900 -oac mp3lame -srate 48000 -o ../$TARGET/xvid/${i%.mov}.avi ; done && cd .. #date | mail -s "xvids fertig" holger # this take 25h for 12 dv files with 80gb mkdir -p ${TARGET}/ogg_theora/720x576 && cd dv && time for i in *.mov ; do time nice -n 19 ffmpeg2theora -x 720 -y 576 --inputfps 25 -V 1200 -H 48000 -a 3 -c 2 $i -o ../$TARGET/ogg_theora/720x576/${i%.mov}.ogg ; done && cd .. ### --inputfps is strange # --artist # Name of artist (director) # --title # Title # --date Date # --location # Location # --organization # Name of organization (studio). # --copyright # Copyright. # --license # License. date | mail -s "oggs fertig" holger #mkdir -p ${TARGET}/mpeg/384x288 && cd dv && time for i in *.mov ; do time nice -n 19 ffmpeg -i $i -vcodec mpeg1video -b 150 -g 48 -ac 2 -ab 64 -ar 48000 -s 384x288 ../$TARGET/mpeg/384x288/${i%.mov}.mpeg ; done && cd .. #date | mail -s "mpeg1 fertig" holger #mkdir -p ${TARGET}/mpeg/720x576 && cd dv && time for i in *.mov ; do time nice -n 19 ffmpeg -i $i -target pal-dvd -b 450 ../$TARGET/mpeg/720x576/${i%.mov}.mpeg ; done && cd .. #date | mail -s "mpeg2 fertig" holger #mencoder erkelenz-band.m2t -ovc xvid -xvidencopts bitrate=2500 -vf scale=1280:720 -oac mp3lame -srate 48000 -o erkelenz-band.avi #mencoder erkelenz-band.m2t -ovc xvid -xvidencopts bitrate=1500 -vf scale=1024:576 -oac mp3lame -srate 48000 -o erkelenz-band_1024x576.avi #ffmpeg -i erkelenz-band.m2t -vcodec mpeg1video -b 150 -g 48 -ac 2 -ab 64 -ar 48000 -s 512x288 erkelenz-band_384x288.mpeg #ffmpeg -i erkelenz-band.m2t -target pal-dvd -aspect 16:9 -b 900 erkelenz-band_dvd.mpeg #ffmpeg2theora -x 1024 -y 576 -v 8 -V 2000 -H 48000 -a 3 -c 2 --aspect 16:9 erkelenz-band.m2t -o erkelenz-band_1024x576.ogg