:) I don't think that there is an Linux application for video streaming that fullfills my needs)
About
twitch.tv streaming. Some time ago I created a script fot stream starting. Maybe it can give you some ideas about supporting this:
#!/bin/bash
source streamkey-twitch
#AINPUT=pulse
AINPUT=hw:0,0
ffmpeg -f x11grab -s 1366x768 -r 40 -i :0.0 -f alsa -ac 2 -i $AINPUT \
-vcodec libx264 -vprofile high -preset faster -b:v 350k \
-bufsize 1000k -threads 0 -acodec libvo_aacenc -b:a 64k \
-f flv "$STREAM_KEY flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
Best wishes,
Kakadu