Howdy,
I'm wondering what settings you use for ffmpeg when encoding flash for the web?
Now with JW FLV Player 4.6 that supports bitrate switching we're thinking of starting to use this, to allow for the best possible quality for the bandwidth the user has. But even at higher bitrates there is often "block artefacts", particularly when there are lots of details or movements. I've heard there are postprocessing filters that could improve this, but not sure how to use them.
Our current settings are:
ffmpeg -i [sourcedir]/$1.mpg -b 700k -async 1 -ar 44100 -ab 128k -f flv -s 580x436 -y [targetdir]/$1.flv
What's your experience of using h.264 encoding for the web? Since it requires more CPU power from the user's machine the little experience I have is that there's a higher risk of "chopping". Since the quality is so much better, it would be great to be able to use h.264 all the way.

Comments
mencoder / ffmpeg
Hello, i was wonder what settings is better for video internet stream. Try ffmpeg and after that i use mencoder for create more quality, for bitrate switching. Here is settings what i was use:
320x180p - low quality for users whit realy bad internet connection
$: mencoder -msgcolor inputvideo.m2t -o outputvideo.mp4 -oac mp3lame -lameopts abr:br=64:mode=3 -srate 32000 -ovc x264 -x264encopts bitrate=96 -of lavf -lavfopts format=mp4 -vf scale=320:180640x360p - low HD quality
$: mencoder -msgcolor inputvideo.m2t -o outputvideo.mp4 -oac mp3lame -lameopts abr:br=64:mode=3 -srate 32000 -ovc x264 -x264encopts bitrate=384 -of lavf -lavfopts format=mp4 -vf scale=640:3601024x576p - pal widescreeen quality (use only if ai have source video only in DV quality)
$: mencoder -msgcolor inputvideo.m2t -o outputvideo.mp4 -oac mp3lame -lameopts abr:br=96:mode=3 -srate 32000 -ovc x264 -x264encopts bitrate=1248 -of lavf -lavfopts format=mp4 -vf scale=1024:5761280x720p - half HD quality
$: mencoder -msgcolor inputvideo.m2t -o outputvideo.mp4 -oac mp3lame -lameopts abr:br=96:mode=3 -srate 32000 -ovc x264 -x264encopts bitrate=1248 -of lavf -lavfopts format=mp4 -vf scale=1280:7201920x1080p - full HD quality
$: mencoder -msgcolor inputvideo.m2t -o outputvideo.mp4 -oac mp3lame -lameopts abr:br=128:mode=3 -srate 32000 -ovc x264 -x264encopts bitrate=2064 -of lavf -lavfopts format=mp4 -vf scale=1920:1080On input have all the time full HD video in m2t format from Adobe premiere CS3 and CS4 (windows users), Avid Xpress (windows users), and some time have any videos from Finalcut pro (mac os users). For more understud here is export settings full HD video form adobe premiere what i use:
video: mpeg2 1440x1080 progresive 16:9 (1.333) constant bit rate 25Mbps videoformat is PAL
audio: mpeg1 layer II stereo Sample size is 16bit Frequency 48kHz Bitrate 384kbps
multipexer: TS
I use this instalation/compilation menkoder & codec on Ubuntu server 9.10 (have one old machine for encoding all audio/video files):
$: sudo apt-get -y remove ffmpeg x264 libx264-dev mencoder #kick off old instalation;)$: sudo apt-get update;
sudo apt-get -y install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore4-dev zlib1g-dev;
cd;
git clone git://git.videolan.org/x264.git;
cd x264; ./configure;
make;
sudo checkinstall --pkgname=x264 --pkgversion "1:0.svn
date +%Y%m%d+git rev-list HEAD -n 1 | head -c 7" --backup=no --default;sudo apt-get -y install libogg-dev;
cd;
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz;
tar xzvf libtheora-1.1.1.tar.gz;
cd libtheora-1.1.1;
./configure --disable-shared;
make;
sudo checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --default;
sudo apt-get -y install mencoder
(im windows user then this work was be realy terrible work - found information, compile and use wia comand line;)
for windows users is maybe better use SUPER free audio / video converter http://www.erightsoft.com/S6Kg1.html
All videos is streamed from Flash media server 3.5 and this is used for non-comercial project about art Artycok.tv
And here is some example playlist whit bitrate switch for JWPlayer