In the interest of being thorough, I’m also trying out my very own video player. Please let me know if this video looks better/worse than the Motionbox variety. Interestingly, it’s actually going to be easier to create a video of this kind because I can automate it.
Thanks to:
Either way, I’ll post my conversion command lines, and any other support tools/configurations.


Still waiting on those command lines :-D
#!/bin/sh
if [ ! -f "$1" ] ; then
echo “./enc2.sh input.mp4″
exit ;
fi
FFMPEG=/usr/local/bin/ffmpeg
FILE=$1
BASE=`basename $1 .MP4`
PATH=`dirname $1`
TMP=tmp.mp4
OUT=$PATH/$BASE-web.mp4
OUTJPG=$PATH/$BASE-web.jpg
RES=480×360
BR=700k
$FFMPEG -i $1 -ab 96k -pass 1 -vcodec libx264 -s $RES -b $BR -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 -flags2 +brdo+dct8x8+wpred+bpyramid+mixed_refs -subq 7 -trellis 1 -refs 6 -bf 16 -directpred 3 -b_strategy 1 -bidir_refine 1 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 700k -rc_eq ‘blurCplx^(1-qComp)’ -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -y $TMP
$FFMPEG -i $1 -ab 96k -pass 2 -vcodec libx264 -s $RES -b $BR -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 -flags2 +brdo+dct8x8+wpred+bpyramid+mixed_refs -subq 7 -trellis 1 -refs 6 -bf 16 -directpred 3 -b_strategy 1 -bidir_refine 1 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 700k -rc_eq ‘blurCplx^(1-qComp)’ -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -y $TMP
/home/rasch/ffmpeg/qt-faststart $TMP $OUT
/bin/rm $TMP
/bin/rm ffmpeg2*.log x264*.log
$FFMPEG -i $OUT -an -ss 00:00:10 -f mjpeg -r 1 -vframes 1 -y $OUTJPG
Hey, hope you enjoy the Simple Flash Video player plugin. We are currently working on the new 1.6 release which has some much needed features. If you have any feedback it is greatly appreciated.
now with audio/video sync
$FFMPEG -i $1 -ab 96k -pass 1 -vcodec libx264 -s $RES -b $BR -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 -flags2 +brdo+dct8x8+wpred+bpyramid+mixed_refs -subq 7 -trellis 1 -refs 6 -bf 16 -directpred 3 -b_strategy 1 -bidir_refine 1 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 700k -rc_eq ‘blurCplx^(1-qComp)’ -qcomp 0.6 -qmin
10 -qmax 51 -qdiff 4 -async 5 -y $TMP
$FFMPEG -i $1 -ab 96k -pass 2 -vcodec libx264 -s $RES -b $BR -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 -flags2 +brdo+dct8x8+wpred+bpyramid+mixed_refs -subq 7 -trellis 1 -refs 6 -bf 16 -directpred 3 -b_strategy 1 -bidir_refine 1 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 700k -rc_eq ‘blurCplx^(1-qComp)’ -qcomp 0.6 -qmin
10 -qmax 51 -qdiff 4 -async 5 -y $TMP