...: nabster :...


contents

Showing posts with label scripts. Show all posts
Showing posts with label scripts. Show all posts

tif2xvid.sh

# ./tif2xvid.sh script # change the framerate if you need to # framerate=50 # # # create raw mpeg4 video file nice ffmpeg -r framerate -i $1%06d.tif -vcodec mpeg4 -b 4000k -s 1280x720 -pass 1 -passlogfile $1-xvid.passlog -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -bf 2 -r 100 -y -r framerate $1.m4v nice ffmpeg -r framerate -i $1%06d.tif -vcodec mpeg4 -b 4000k -s 1280x720 -pass 2 -passlogfile $1-xvid.passlog -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -bf 2 -r 100 -y -r framerate $1.m4v rm $1-xvid.passlog # # add in audio # nice ffmpeg -i $1.m4v -vcodec copy -i $1.mp3 -acodec copy $1.avi # audio re-encoding parameters if needed # -acodec libmp3lame -ac 2 -ar 44100 -ab 224k # chmod og+rw * # mount /media/usbstick cp $1.mpg /media/usbstick/video umount /media/usbstick # boot-game-os

djvu conversion scripts that I'm trying not to lose

Posting scripts publicly on the web seems like a sensible way of not losing them when your hard drive burns down. I used to do my scanning with xsane and convert the files later. I have since discovered gscan2pdf. 1. pnm2cjb2.sh Combines all bitonal pnm files in the current directory into a bundled .djvu document The losslevel of 63 can be varied from 0 (lossless) to 200 (most lossy). As the value increases, compression artefacts arise. The document starts to look like it's been re-typed on a wobbly typewriter, and then it gets letters like 'a', 'e' and 'c' mixed-up. 2. pnm2c44.sh Combines all colour pnm files in the current directory into a bundled .djvu document. This is a less well-written, condensed script. You need to scan in your pnm files with the prefix that you'd like your output djvu file to have, and specify that on the command line. .