#!/bin/sh # If ffmpeg is not in your path, uncomment and modify this line: #FFPATH="/storage/builds/ffmpeg/" if [ $# -ne 2 ] then echo "Usage: sh convert_psp.sh " exit 0 fi ${FFPATH}ffmpeg -y -i $1 -f psp -s 320x240 -r 29.97 -b 384k -ar 24000 -ab 64 -acodec aac -ac 2 $2.mp4 ${FFPATH}ffmpeg -y -i $1 -f image2 -ss 5 -vframes 1 -s 160x120 -an $2.thm