diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-01 21:18:35 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-01 21:18:35 +0100 |
commit | fe47edf80461100e9584adcb40ec13f38c9e8a43 (patch) | |
tree | dd6e02e88cc2ecbfbc797da60e2f4a10e460dcff | |
parent | 589e0e3679e6b8ff737ee95e8064af272865e813 (diff) | |
download | bin-fe47edf80461100e9584adcb40ec13f38c9e8a43.tar.gz bin-fe47edf80461100e9584adcb40ec13f38c9e8a43.tar.xz |
added convert2mp4 script
-rwxr-xr-x | convert2mp4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/convert2mp4 b/convert2mp4 new file mode 100755 index 0000000..60a82a1 --- /dev/null +++ b/convert2mp4 @@ -0,0 +1,23 @@ +#!/bin/sh +#---------------------------------------------------- +# Version: 0.1.0 +# Author: Florian "Bluewind" Pritz <f-p@gmx.at> +# +# Copyright (C) 2009 Florian Pritz +# +# Licensed under GNU General Public License v3 +# (see COPYING for full license text) +# +#---------------------------------------------------- +# Converts a file to an MP4 which can be played in a flash movie +# Video: H264 +# Audio: MPEG-4 AAC +#---------------------------------------------------- + +cd "$(dirname $1)" + +file="$(basename $1)" +file_mp4="$(echo ${file} | sed 's/\(.*\)\..*/\1/').mp4" + +ffmpeg -i "$file" -b 400000 -deinterlace -vcodec libx264 -s 720x576 -r 25 -g 250 -keyint_min 25 -coder ac -me_range 16 -subq 5 -sc_threshold 40 -acodec libfaac -ab 160000 -ar 44100 -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -b_strategy 1 -threads 2 -crf 30 -y "$file_mp4" +qt-faststart "$file_mp4" "upload_$file_mp4" |