Does anyone have any advice on how to make this work? I am using a modified script found using google.
Running Ubuntu 11.10 with Unity
Code:
#Streaming screen to Justin.tv
streaming() {
INRES="1920x1080" # input resolution
OUTRES="1280x720"
FPS="30" # target FPS
QUAL="medium" # one of the many FFMPEG preset
STREAM_KEY="$1"
URL="rtmp://live.justin.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
#ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 22050\
# -f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" -level 30 -f mpegts \
# -acodec libmp3lame -ac 1 \
# -f flv "$URL"
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 96k \
-f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -vpre "$QUAL" -s "1280x720" \
-acodec libmp3lame -ar 44100 -threads 8 \
-f flv "$URL"
}
After modifying slighly I have it working, somewhat, it doesn't throw errors in the command line, but I don't get any video coming through when I load my channel on Juistin.tv.
Any sugestions? Pointers? and please don't say Webcamstudio, ffmpeg is far lighter weight, and all things considered easier to deal with. Aside from this little hiccup of course.
Bookmarks