How to encode all your old videos in Unix like systems.

1. First of all go to the directory where encode.sh script is located.
2. Make this script executable:
	chmod a+x encode.sh
3. Go to the Coppermine albums directory. For example: /home/www/localhost/htdocs/albums
4. Run the encode script like this:
	find $PWD/upload/ \( -name "*.mov" -o -name "*.avi" \) -type f -exec ~/encode.sh {} \;
	This will affect only mov and avi files. Add any extentions you need to encode.
	For example:
	find $PWD/upload/ \( -name "*.mov" -o -name "*.mp4" -o -name "*.3gp" -o -name "*.avi" \) -type f -exec ~/encode.sh {} \;
5. After this encode.sh creates (by default in you home directory) ConvertTask.sh script file. This script will contain all necessary jobs to do all encoding work for you.
6. Run ConvertTask.sh like this:
	./ConvertTask.sh

---------------------------------------

Setting encoding process variables up

encode.sh have some variables you can set up.
1. audioRate - it's the discretization rate of audio stream in your flv video
2. thumbSS - this is a size of thumbnail screenshot from your video file
3. audioCodec - witch codec to use to encode audio: mp3 or libmp3ame
4. sstime - time from video timeline when to make thumbnail screenshots. from 01 to 59 seconds.