All pastes #262436 Raw Edit

ipod mp4 - letterbox

public shellscript v1 · immutable
#262436 ·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.## 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=$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)"	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: $1echo Output: $output_dir/$output_file_name.movecho Start:  $datetime_startecho Finish: $datetime_endecho "-----=====<<<<<==========>>>>>=====-----"