| Paste number 23244: | FFMpeg reencoder |
| Pasted by: | Richard |
| When: | 2 years, 11 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+HXO |
| Channel: | None |
| Paste contents: |
## Set the Path to read in from and write out to
MPATH="/Volumes/Media Archive/Directory/"
##########################
## Change to the dir
cd "${MPATH}"
for moo in *;
do
## Skip all preencoded files (they have a .ff. in the filename)
echo ${moo} | grep -q ".ff."
if [ $? -eq 0 ];
then
continue
fi
## Encode!
/Users/richard/MediaEncoding/ffmpeg -i "${moo}" -threads 2 -map 0.0:0.0 -f avi -vcodec mpeg4 -aspect 16:9 -b 1265 -s 640x352 -r pal -g 240 -me epzs -qmin 2 -qmax 9 -acodec mp3 -ab 128 -ar 48000 -ac 2 -map 0.1:0.1 -benchmark "${moo}.ff.avi"
done
This paste has no annotations.