trying my own video player
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.



September 21st, 2008 at 8:55 pm
Still waiting on those command lines :-D
September 21st, 2008 at 9:07 pm
#!/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 +parti8×8+parti4×4+partp8×8+partp4×4+partb8×8 -flags2 +brdo+dct8×8+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 +parti8×8+parti4×4+partp8×8+partp4×4+partb8×8 -flags2 +brdo+dct8×8+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
October 1st, 2008 at 12:18 pm
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.
October 23rd, 2008 at 9:42 pm
now with audio/video sync
$FFMPEG -i $1 -ab 96k -pass 1 -vcodec libx264 -s $RES -b $BR -flags +loop -cmp +chroma -partitions +parti8×8+parti4×4+partp8×8+partp4×4+partb8×8 -flags2 +brdo+dct8×8+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 +parti8×8+parti4×4+partp8×8+partp4×4+partb8×8 -flags2 +brdo+dct8×8+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