#!/bin/bash ## ipodvidenc - The iPod Video Encoder for Linux. ## Created by Eric Hewitt, January 9, 2006. ## 10/22/2006 - Edit by DaCapn: Basically just changed this script to a letterboxing script for transcode and ffmpeg ## GNU GPL, all that good stuff. input_file=$1 echo "Output file name (without extension):" read output_file_name echo "$output_file_name will be located in $PWD. Save output here? [y/n]" read output_file_loc_permis if [ $output_file_loc_permis = 'n' ] || [ $output_file_loc_permis = 'N' ] then echo "New Destination for $output_file_name.mov:" read output_dir else output_dir=$PWD fi datetime_start="$(date)" echo "Provide the height of the letterbox in pixels." read lbox_height transcode -i "${input_file}" -V -y ffmpeg -F mpeg4 -Y -"${lbox_height}",0,-"${lbox_height}",0 -E 44100 -b 128 -o "${output_dir}/${output_file_name}.mov" #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: $1 echo Output: $output_dir/$output_file_name.mov echo Start: $datetime_start echo Finish: $datetime_end echo "-----=====<<<<<==========>>>>>=====-----"