All pastes #262437 Raw Edit

ipod mp4 - encode

public shellscript v1 · immutable
#262437 ·published 2006-11-30 14:47 UTC
rendered paste body
#!/bin/bash## ipodvidenc - The iPod Video Encoder for Linux.## Created by Eric Hewitt, January 9, 2006.## Some minor modifications by DaCapn## Released under the GPL.  Go nuts.input_file=$1echo "Output file name (without extension):"read output_file_nameecho "$output_file_name will be located in $PWD. Save output here? [y/n]"read output_file_loc_permisif [ $output_file_loc_permis = 'n' ] || [ $output_file_loc_permis = 'N' ]then	echo "New Destination for $output_file_name.mov:"	read output_direlse	output_dir=$PWDfi	datetime_start="$(date)"	ffmpeg -i "${input_file}" -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 -r 25 "${output_dir}/${output_file_name}.mov"	datetime_end="$(date)"echo "-----=====[ File Information ]=====-----"echo Source: $1echo Output: $output_dir/$output_file_name.movecho Start:  $datetime_startecho Finish: $datetime_endecho "-----=====<<<<<==========>>>>>=====-----"