I finally tested nginx with rtmp-module for the flash and a handmaded/automated solution with a script and a cronjob and the following ffmpeg-syntax for hls:
ffmpeg -i input.m4v -acodec copy -bsf:a h264_mp4toannexb -g 105 -vcodec libx264 -vprofile baseline -bf 0 -maxrate 850k -bufsize 850k -s 960x540 -bsf:v dump_extra -map 0 -f segment -segment_format mpegts -segment_list "abc.m3u8" -segment_time 2 abc-%d.ts
note that this is for linux based systems and it is necessary to escape the % under windows like abc-%%d.ts.